How to View a Camera's List of Events
Getting list of events using API requests
Cameras can support different types of events, the full list of supported events for a certain camera can be obtained with GET/cameras/{CAMID}/event_processing/events/
request. In the examples below, ACCESS_TOKEN
should be replaced with an actual access token of the selected channel with "all" permission.
For example:
CODE
curl -X GET "https://web.skyvr.videoexpertsgroup.com:443/api/v2/cameras/237863/event_processing/events/"
-H "accept: application/json"
-H "Authorization: Acc ACCESS_TOKEN"
The response contains the list of all supported events along with the capabilities:
CODE
{
"meta": {
"limit": 20,
"next": null,
"offset": 0,
"previous": null,
"total_count": 3
},
"objects": [
{
"caps": {
"can_be_triggered": false,
"can_record": true,
"can_snapshot": true,
"is_periodic": false
},
"generate_images": false,
"name": "motion",
"notify": true,
"receive": true,
"record": true,
"snapshot": true
},
{
"caps": {
"can_be_triggered": false,
"can_record": false,
"can_snapshot": false,
"is_periodic": false
},
"generate_images": false,
"name": "net",
"notify": true,
"receive": true
},
{
"caps": {
"can_be_triggered": false,
"can_record": false,
"can_snapshot": true,
"is_periodic": true
},
"generate_images": false,
"name": "snapshot",
"notify": true,
"period": 0,
"receive": false,
"snapshot": true
}
]
}