Breadcrumbs

Get a link to watch Live, Archive

The method and parameters

Get a link to watch Live, Archive.

GET  /api/v1/billing/cameras/url

Parameters

string start, Start date of archive viewing


array cameras  required , Array of camera identifiers for which links should be obtained. Maximum 30 elements


string source, For which protocol it is necessary to generate a link, possible values: hls, rtsp


string type, Type of video stream from which you want to get the link, possible values: low, high

200  OK

Successful response

JSON
{
    "stream_uuid": "https://domain.com/somestream?token=sometoken"
}

401  Unauthorized

Authorization token not sent or not valid

422  Unprocessable Entity

Returns a JSON object with an error. VMS Billing/General information/External system validation

JSON
{
    "message": "There will be no informative message here",
    "errors": {
        "any_key": [
            "The cause of the error will be described here"
        ]
    }
}
cURL
Bash
curl -k --request POST \
	--url 'https://your-domain/api/v1/billing/cameras/url' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "start": "string",
    "cameras": [],
    "source": "string",
    "type": "string"
}'
PHP
PHP
$data = array (
  'start' => 'string',
  'cameras' => 
  array (
  ),
  'source' => 'string',
  'type' => 'string',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'GET',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/v1/billing/cameras/url', false, $context);