App Cloud APIs are used by mobile applications.
https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/
https://docs.cognitivesystems.com/api/v1/
https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/event_tag
https://docs.cognitivesystems.com/api/v1/event_tag
curl -i -X POST \
https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/event_tag \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"network_id": 1,
"eventid": "abc123",
"tag": "False"
}'
{ "id": "string", "guardian_id": "string", "network_id": 0, "timestamp": 0, "event_type": "string", "event_category": "string", "link_id": "string", "icon_url": "string", "text": "string", "tag": "string", "data": { "property1": "string", "property2": "string" } }
Returns historical motion densities for a given period of time. Densities are percentages representing how many samples within a bucket-size had motion values greater than zero.
For example, if the bucket size was 60 seconds, and 11 of the 12 possible 5s buckets had motion then a value of 91.6 would be returned.
It should be noted that data is stored in two resolutions:
1s intervals for the last 24 hours. 5s intervals for the last week. Which means that densities computed on data within the last 24 hours may be retrieved with this request at sub 5s bucket sizes.
This request may return data at a coarser resolution than the requested bucket size, if data at that resolution is not available.
Timestamp ranges are limited by Halo Home to only include times over which the network was last claimed.
https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/motion_history_densities
https://docs.cognitivesystems.com/api/v1/motion_history_densities
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/motion_history_densities?bucket=1&from=0&last=400&network_id=1&to=0' \
-H 'Authorization: YOUR_API_KEY_HERE'
[ [ 0.02777777777777778, 1591686000 ], [ 0, 1591686900 ], [ 0.016666666666666666, 1591687800 ] ]
https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/network_statuses
https://docs.cognitivesystems.com/api/v1/network_statuses
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/network_statuses?network_id=1' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "last_motion": 0, "motion_tripped": 0 }