Getting links to view the archive
Headers | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
cameraoptional | int | Camera identifier | |||||||
startrequired | string | Start date for archive viewing | |||||||
durationrequired | int | Duration of the archive in seconds | |||||||
sourcerequired | string | Stream type for which we want to obtain the URL |
Response | |||||||||
200 | The main URL is stored in the «url» field, while the «fallback_url» is used in the web if the player required for the URL is not available in the current browser. If the end date is earlier than the start date of the archive, the «move_to» field will contain a date to which the timeline should be adjusted, and the archive link will start from that date | ||||||||
JSON
| |||||||||
401 | Authorization token not provided or invalid, see Obtaining a token | ||||||||
403 | If temporary access to the camera is blocked, an error with a 403 status code will be returned, with a response body similar to a 422 error | ||||||||
422 | Returns a JSON object with an error, see Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|