Download Dialog Recording
Pobranie danych konkretnego spotkania
GET /av_recording/{recording_id}/download
URL Parameters
Nazwa | Rodzaj | Przykład | Opis |
---|---|---|---|
recording_id | <STRING> |
5dfa304df03d6415af54b966 | Identyfikator nagrania |
Response Body
``` audio/video
Response Code
Status | Opis |
---|---|
200 | Rekordy zostały pobrane pomyślnie |
404 | Nie znaleziono zasobu |
Example
curl -X GET \
$CONPEEK_URL/av_recording/5dfa304df03d6415af54b966/download \
-H 'Authorization: '$CONPEEK_KEY \
-H 'Content-Type: application/json'
import requests
import os
from urllib import parse
url = parse.urljoin(os.environ["CONPEEK_URL"], "/av_recording/%(recording_id)s/download" % {
"recording_id": "5dfa304df03d6415af54b966"
})
headers = {
'Content-Type': "application/json",
'Authorization': os.environ["CONPEEK_KEY"]
}
response = requests.request("GET", url, headers=headers)
print(response.text)
<?php
$curl = curl_init();
$recording_id = "5dfa304df03d6415af54b966";
curl_setopt_array($curl, array(
CURLOPT_URL => getenv("CONPEEK_URL")."/av_recording/$recording_id/download",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"Authorization: ".getenv("CONPEEK_KEY"),
"Content-Type: application/json"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}