Read Feature Project Voice Campaign
Pobranie ustawień kampanii głosowych dla projektu. .
GET /project/{project_id}/feature/voice_campaign
URL Parameters
Nazwa | Rodzaj | Przykład | Opis |
---|---|---|---|
project_id | <STRING> |
18 | Identyfikator systemowy projektu |
Response Body
{
"data": <ProjectFeatureVoiceCampaign>
}
Nazwa | Rodzaj | Opis | Zasób |
---|---|---|---|
data | <FeatureProjectVoiceCampaign> |
Obiekt ustawień kampanii głosowych. | FeatureProjectVoiceCampaign |
Response Code
Status | Opis |
---|---|
200 | Rekord został pobrany pomyślnie |
403 | Nie można wykonać takiej akcji |
404 | Nie znaleziono zasobu |
Example
curl -X GET \
$CONPEEK_URL/project/6/feature/voice_campaign \
-H 'Authorization: '$CONPEEK_KEY \
-H 'Content-Type: application/json'
import requests
import os
from urllib import parse
url = parse.urljoin(os.environ["CONPEEK_URL"], "/project/%(project_id)s/feature/voice_campaign" % {
"project_id": "18"
})
headers = {
'Content-Type': "application/json",
'Authorization': os.environ["CONPEEK_KEY"]
}
response = requests.request("GET", url, headers=headers)
print(response.text)
<?php
$curl = curl_init();
$project = "18";
curl_setopt_array($curl, array(
CURLOPT_URL => getenv("CONPEEK_URL")."/project/$project/feature/voice_campaign",
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;
}
Response
200 OK
{
"data": {
"active": 1,
"preview_auto_answer": 1,
"predictive_auto_answer": 0,
"user_reservation_timeout_enabled": 1,
"user_reservation_retry_interval": 1800,
"user_reservation_attempts": 5,
"project_id": 18,
...
}
}