Postman Setup for Cassia RESTful API - CassiaNetworks/CassiaSDKGuide GitHub Wiki
Setting Up Postman for AC-Managed Cassia RESTful API
Download Postman
https://www.getpostman.com/downloads
For this guide, we are using: Postman Version 7.13.0
Postman Initial Setup
Once Postman is finished installing, open the application. A screen asking to create an account or sign in will appear. (It is optional to sign in or not.)
Request a Cassia AC RESTful API Access Token
At the top-left corner, there should be a "New" button. Click on it and click on "Request".
This is an example of saving a Postman request into a collection called "Authorization":
A new tab should appear in the workspace. Change the default "GET" request type to "POST".
Then, fill in the settings like in the following screenshots:
In Postman, use Basic Auth to get an OAuth 2.0 bearer token.
This will set the HTTP Authorization header.
Just enter the Developer Key and Secret in the Postman Basic Auth fields.
Setting the Authorization header manually is also fine.
To do this, use a base64 encoding tool to generate an encoding based on the the Developer Key and Secret (key:secret).
Here is an example Python script to generate the base64 encoding for Basic Auth:
import base64
id_secret = 'tester:10b83f9a2e823c47'
encoded_id_secret = base64.b64encode(id_secret.encode())
print(encoded_id_secret.decode())
Now, set the rest of the settings like the following screenshots:
Alternatively, you can set the Authorization header like so to access the AC RESTful API:
Setting Up Postman for Standalone (Local) Cassia RESTful API
This section is coming soon...