The WiFi Motion Core APIs facilitate the creation, configuration, and management of WiFi Motion networks via RESTful APIs. Additionally, it offers interfaces for accessing topologies, events, and motion data. The only difference is that the Core APIs do not specifically reference a user, and instead provide you with the ability to query the data from any network that is available in the environment.
Cognitive Systems App Core API
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/history/state
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/history/state?from=0&to=0&bucket=3600' \
-H 'Authorization: YOUR_API_KEY_HERE'
200 - OK
State values indicate the following:
0
Not armed and not tripped1
Not armed and tripped2
Armed and not tripped3
Armed and tripped
integer(State)
State values indicate the following:
0
Not armed and not tripped1
Not armed and tripped2
Armed and not tripped3
Armed and tripped
Enum0123
Response
application/json
[ [ 0, 1709316000 ], [ 1, 1709319600 ], [ 1, 1709323200 ], [ 2, 1709326800 ], [ 3, 1709330400 ], [ 4, 1709334000 ] ]
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/history/intensity
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/history/intensity?from=0&to=0&bucket=0&sumfunc=max' \
-H 'Authorization: YOUR_API_KEY_HERE'
Response
application/json
[ [ [ … ], [ … ], [ … ], [ … ], [ … ], [ … ] ] ]
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/history/density
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/history/density?from=0&to=0&bucket=3600' \
-H 'Authorization: YOUR_API_KEY_HERE'
Response
application/json
[ [ [ … ], [ … ], [ … ], [ … ], [ … ], [ … ] ] ]