分机组管理 - 根据成员查询坐席组
接口说明
根据坐席账号查询坐席所在的坐席组
请求方式
POST,form-data格式
请求参数
| 参数名 | 类型 | 是否必须 | 说明 |
|---|---|---|---|
| service | string | 是 | App.Sip_Extgroup.GetAllExtGroup |
| token | string | 是 | 通过授权接口获取的token |
| extnumber | string | 是 | 坐席账号 |
接口请求示例(PHP)
<?php
$apiUrl = 'http://127.0.0.1:8080';
$postFields = [
'service' => 'App.Sip_Extgroup.GetAllExtGroup',
'token' => 'ABCDEFG',
'extnumber' => '7001',
];
$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);
?>
返回数据结构示例
{
"ret": 200,
"data": {
"status": 0,
"desc": "成功",
"result": {
"totalitems": 1,
"currentpage": 1,
"itemsperpage": 20,
"groups": [
{
"name": "kefu01"
}
]
},
"reqtime": 1789611195,
"rsptime": 1789611195
},
"msg": ""
}
返回字段说明
| 字段 | 类型 | 说明 |
|---|---|---|
| result | object | 分机成员信息 |
| -totalitems | int | 分机总数 |
| -currentpage | int | 当前页码 |
| -itemsperpage | int | 每页默认值 |
| -groups | array | 分机组列表数组 |
| —name | string | 分机组名 |