رفتن به مطلب اصلی
Version: v6.2.0 مرکز‌تماس

Announce Search

از این سرویس برای جستجو آوا استفاده می‌شود.

پارامتر‌ها#

توضیحاتداده های تعریف شدهداده های نمونهپارامترهای ضروری[**]/منطقی[*]پارامترها
جستجو موارد مشابهtrue/falsetrue**alike
نام آوا--conditions->name

نمونه خروجی درخواست#

{    "success": 1,    "message": "",    "data": [        {            "_id": "6045d7bd095d846433440144",            "filename": "file-20210308075228-82244-file-201906271006-40_.wav",            "name": "welcome-to-simotel",            "description": "",            "date": "1399-12-18 11:22:29"        },        {            "_id": "6045e187095d84661f6d1c30",            "name": "test_sound",            "filename": "file-20200825065434-58826-bbc-farsi-pargarmp3_.wav",            "description": "Just for test",            "date": "1399-12-18 12:04:15"        },        {            "_id": "6045e6bb095d840c2e47707f",            "name": "test_sound1",            "filename": "file-20200825065434-58826-bbc-farsi-pargarmp3_.wav",            "description": "Just for test",            "date": "1399-12-18 12:26:27"        }    ]}

نمونه فراخوانی#

<?php
$curl = curl_init();
curl_setopt_array($curl, array(  CURLOPT_URL => 'http://192.168.51.21//api/v3/autodialer/announcements',  CURLOPT_RETURNTRANSFER => true,  CURLOPT_ENCODING => '',  CURLOPT_MAXREDIRS => 10,  CURLOPT_TIMEOUT => 0,  CURLOPT_FOLLOWLOCATION => true,  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,  CURLOPT_CUSTOMREQUEST => 'GET',  CURLOPT_POSTFIELDS =>'{    "alike":"true",    "conditions":{"name":""}}',  CURLOPT_HTTPHEADER => array(    'X-APIKEY: vZKtIKWsld0egNlkzHo8i5LVBqLNBSWARCQsPOSgDjFmAHM3tG',    'Authorization: Basic dGVzdDpBYTEyMzQ1Ng==',    'Content-Type: application/json'  ),));


$response = curl_exec($curl);
    if (!curl_errno($curl)) {    $httpcode = curl_getinfo($curl, CURLINFO_HTTP_CODE);    echo 'response code:'.$httpcode, '<br/>';}
curl_close($curl);echo $response;