Using Postman as a CRUD
Install Postman
Postman is available as native apps (with support for Mac OS 10.10+, Linux and Windows 7+), as well as through a Google Chrome app. Head over to their website, select your preferred version and install it.
Import our collection
You need to import our 2600Hz Kazoo APIs (OSS)
Postman collection to your local install of Postman.
-
First, copy this collection link by right-clicking on it and select
Copy link
. -
Open Postman and click on the
Import
button at the top left. -
In the popup, click on the
Import From Link
tab and paste in the collection link. -
Click the orange
Import
button and you will see the collection appear in the sidebar, on the left.
Configure your environment
The last thing to do before you are able to make requests is to define Global Variables
to automate the authentication process.
-
First, copy this environment link by right-clicking on it and select
Copy link
. -
In Postman, click the
Import
button at the top left, paste in the environment link in theImport From Link
tab, and clickImport
. -
In the dropdown at the top right, select your new
2600Hz Kazoo APIs (OSS)
environment. -
Click on the eye icon next to the dropdown and select
Edit
for your newly added environment. -
Define the first four variables as follow:
base_url
: server URL where Kazoo is running (no trailing slash)username
: username to login to your accountpassword
: password to login to your accountaccount_name
: name of the account to login to
-
Once those variables are defined, just click the
Update
button at the bottom of the popup and close the subsequent popup.
Generate a token
Now that you have imported the collection and set up your environment variables, you need to generate an authentication token. For you convenience, you will only need to generate this token once per session as it will be stored as an environment variable.
-
Click on the collection in the sidebar, then on the
user_auth
folder and select theuser_auth.create
endpoint to load it in the request builder. -
To run the collection, you just have to click the
Send
button.- If the request does not go through, it might be because your server is using a
Self-Signed SSL Certificate
. To fix this, turn off theSSL certificate verification
toggle in Settings > General.
- If the request does not go through, it might be because your server is using a
-
You can now play with the list of endpoints in the collection! If your token expires, you just have to run the
use_auth.create
endpoint again to generate a new one.