Camera preview
By default, it returns a link to the live preview. However, if the «date» parameter is provided, it will return an archive preview. If «download=true» (as a string, because it is a GET parameter), it will return a download link with the «Content-Disposition» header set to «attachment». The «date» and «download» parameters can be combined. (The decktop client only uses archive previews.)
GET/api/v1/cameras/{camera}/previewHeaders | |||||||||
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 | |||||||
daterequired | datetime | Date for archive preview | |||||||
downloadrequired | string | Flag to add the «Content-Disposition» header |
Response | |||||||||
200 | The preview link is available in the «preview» field, and the «is_need_token» field is used for Flussonic to add the user's bearer token (only used in web) | ||||||||
JSON
| |||||||||
401 | Authorization token not provided or invalid, see Obtaining a token | ||||||||
403 | If access to the camera is temporarily blocked, a 403 error will be returned with the same response body as a 422 error | ||||||||
422 | Returns a JSON object with an error, see Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|