功能描述:获取指定队列或所有队列的详细信息。
接口地址:http://IP/admin/skd/index/queueinfo/
调用方式:GET请求。
接口参数:
* queue:队列号码,不传递该参数时将获取所有队列信息。
调用实例:http://IP/admin/sdk/index/queueinfo/?queue=90
返回值:
操作成功:
{"result":"1","data":{"90":{"queue":"90","name":"sales","ringtype":"\\u8bb0\\u5fc6\\u632f\\u94c3","max":"unlimited","wait":"0","maxwaittime":"00:00","maxwaittimetag":"0","holdtime":"3","weight":"0","abandoned":"3","completed":"3","servicelevel":"60","servicelevelperf":"100.0%","agents":{"6103":{"exten":"6103","dnd":"-1","status":"0"},"6107":{"exten":"6107","dnd":"-1","status":"0"},"6106":{"exten":"6106","dnd":"-1","status":"0"}}}},"error":0},
data值转换成数组如下:
```
Array
(
[90] => Array ----队列号码
(
[queue] => 90 ----队列号码
[name] => sales ----队列名称
[ringtype] => 记忆振铃 ----振铃策略
[max] => unlimited ----最大等待人数
[wait] => 0 ----当前等待人数
[maxwaittime] => 00:00 ----当前等待人数
[maxwaittimetag] => 0 ----队列中是否有人在等待
[holdtime] => 3 ----平均等待时间
[weight] => 0 ----队列权重
[abandoned] => 3 ----未接来电
[completed] => 3 ----已接来电
[servicelevel] => 60 ----服务级别时间
[servicelevelperf] => 100.0% ----服务级别时间内接通率
[agents] => Array ----表示里面为队列成员信息
(
[6103] => Array ----队列成员分机号码
(
[exten] => 6103 ----分机号码
[dnd] => -1 ----示忙状态,-1为示闲,其余为示忙
[status] => 0 ----分机状态,0为空闲
)
[6107] => Array
(
[exten] => 6107
[dnd] => -1
[status] => 0
)
[6106] => Array
(
[exten] => 6106
[dnd] => -1
[status] => 0
)
)
)
)
```
操作失败:{"result":"0","data":"","error":0}