Group Access - Get group extension information
Get group extension information
Interface Description:
Create a task group required before creating a predictive outbound task。
Request method: POST, form-data format
request parameters
parameter name |
type |
Is it necessary |
illustrate |
service |
string |
yes |
App.Sip_Extgroup.GetGroupExt |
token |
string |
yes |
The token obtained through the authorization interface |
name |
string |
yes |
group name |
extnumber |
string |
no |
Ext |
Interface request example(PHP)
<?php
$apiUrl = 'http://127.0.0.1:8080';
$postFields = [
'service' => 'App.Sip_Extgroup.GetGroupExt',
'token' => 'ABCDEFG',
'name' => 'queue-1',
];
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $apiUrl);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $postFields);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($curl);
$curlError = curl_error($curl);
curl_close($curl);
var_dump($response);
?>
return data structure example
{
"ret": 200,
"data": [
{
"name": "test2",
"extnumber": "701005",
"status": "hangup",
"state": "idle"
}
],
"msg": "",
}
Return parameter description
parameter name |
type |
illustrate |
desc |
string |
result description |