-
Notifications
You must be signed in to change notification settings - Fork 7
Postman Setup for Cassia RESTful API
https://www.getpostman.com/downloads
For this guide, we are using: Postman Version 7.13.0
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.)
This is an example of a plain Postman workspace after you open the application for the first time:
At the top-left corner, there should be a "New" button. Click on it and click on "Request".
A pop-up window may ask for you to save this request into a collection. Create a collection and save the request into it.
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:
This section is coming soon...
Copyright © 2021 Cassia Networks, Inc.
RESTful API
-
Traffic Related API
- Scan Bluetooth Devices
- Filter Scanned Data based on Device MAC, RSSI, Name, and UUID
- Enhanced Scan Filter (v2.0 and above)
- Connect/Disconnect to a Target Device
- Batch Connect to a Target Device (v2.0 and above)
- Discover GATT Services and Characteristics
- Read/Write the Value of a Specific Characteristic
- Send Advertise Data
- Get Device Connection Status
- Receive Notification and Indication
- Get RSSI for BLE Connection (v2.0 and above)
-
Secure Pairing API
-
Router Auto-Selection API