- Edit main.py file and enter the email and password of the system you are using. Update the CLOUD_SPACE url with the one where your system belongs.
- Open command prompt (cmd in Windows) or Terminal in Ubuntu
- In cmd window, get to the folder location using "cd C:\Users\xyz\Downloads\api-code-samples"
- Make sure your system has python and pip installed and setup
- Run "pip install -r requirements.txt"
- Run "python main.py" or "python3 main.py"
- To call other apis uncomment or comment lines with print statement as required in the code "motion.py"
Documentation URL: https://api-docs.qatools.csc.wifimotion.ca/docs/app-cloud/v1-5-x.html#tag/Sounding-v2
From the documentation URL given above you will be able to find the apis given below:
[Logging In]
- POST Login and Begin Session
[Family Aware BETA] - To get / update sleep and activity data
- GET Sleep-Wake Settings
- POST Sleep-Wake Settings
- GET Household Sleep-Wake Times Data
- GET Household Activity
- GET Live Motion Websocket
[Firebase Notifications] - To enable fcm notifications, send your device token to app cloud
- POST Store Device Push Token
[Universal Alerting] - To get / update Caregiver Aware Alerts
- GET Get alerts from network
- POST Create a single custom alert.
- GET Get Universal Alert Status
- GET Get universal alert
- DEL Delete Universal Alert
- PATCH Update of Single Alert
- PATCH Universal Alert Bulk Enable
Note: Caregiver aware MVP is not limited to the APIs provided above. It also uses general apis from other sections in documentation
[Network Settings] - To get / update timezone
- GET Show General Settings (With ID)
- PUT Update General Settings
[Sounding v2] - To get / update motion sensitivity
- GET Get Global Settings
- PATCH Update Global Settings