POST /api/v1.1.0/queue/query?token={token}&type={type}
名称 | 是否必需 | 类型 | 描述 |
queueid | 否 | String |
队列号码。
例如:“queueid”:“6700”
例如:“queueid”: “6700,6701,6702”
|
名称 | 类型 | 描述 |
queues | Object | 对象参数。 |
queuenumber | Int | 队列号码。 |
queuename | String | 队列号码。 |
password | String | 加入动态坐席的密码。 |
ringstrategy | String |
响铃策略。
|
agents | String | 固定坐席。 |
dynamicagents | String | 动态坐席。 |
agenttimeout | String | 坐席响铃时间。 |
agentannounce | String | 坐席应答提示音。 |
wrapuptime | Int | 休息时间。 |
retry | Int | 重试间隔时间。 |
musiconhold | String | 等待音乐。 |
maxwaittime | Int | 最大等待时间。 |
joinempty | String |
无座席时允许呼入。
|
leavewhenempty | String |
无座席时结束等待。
|
announcepos | String |
公告当前位置。
|
announcefreq | String | 用户公告频率。 |
announceholdtime | Int | 公告等待时间。 |
请求示例
查询队列9999,9998。
POST /api/v0.0.1/queue/query?token=813b621cfe8eecf445a2ce1f4a079ffe&type=json HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
{
"queueid": "9999,9998"
}
POST /api/v0.0.1/queue/query?token=813b621cfe8eecf445a2ce1f4a079ffe&type=xml HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<queueid>9999,9998</queueid>
</xml>
查询所有队列。
POST /api/v0.0.1/queue/query?token=813b621cfe8eecf445a2ce1f4a079ffe HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
响应示例
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
"status": "Success",
"queues": [
{
"queuenumber": "9998",
"queuename": "queue_xiaoshao",
"password": "666666",
"agents": "101",
"announcefreq": "300",
"announceholdtime": "off",
"announcepos": "off",
"joinempty": "on",
"leavewhenempty": "off",
"retry": "10",
"ringstrategy": "Ring All",
"agenttimeout": "20",
"wrapuptime": "10",
"dynamicagents": "6000",
"agentannounce": "",
"musiconhold": "Inherit",
"maxwaittime": "600"
},
{
"queuenumber": "9999",
"queuename": "queue_test",
"password": "123456",
"agents": "101,103,104",
"announcefreq": "0",
"announceholdtime": "off",
"announcepos": "off",
"joinempty": "on",
"leavewhenempty": "off",
"retry": "5",
"ringstrategy": "Ring All",
"agenttimeout": "15",
"wrapuptime": "60",
"dynamicagents": "",
"agentannounce": "",
"musiconhold": "Inherit",
"maxwaittime": "5"
}
]
}
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
<?xml version="1.0" encoding="utf-8"?>
<xml>
<status>Success</status>
<queues>
<item id="0">
<queuenumber>9998</queuenumber>
<queuename>queue_xiaoshao</queuename>
<password>666666</password>
<agents>101</agents>
<announcefreq>300</announcefreq>
<announceholdtime>off</announceholdtime>
<announcepos>off</announcepos>
<joinempty>on</joinempty>
<leavewhenempty>off</leavewhenempty>
<retry>10</retry>
<ringstrategy>Ring All</ringstrategy>
<agenttimeout>20</agenttimeout>
<wrapuptime>10</wrapuptime>
<dynamicagents>6000</dynamicagents>
<agentannounce></agentannounce>
<musiconhold>Inherit</musiconhold>
<maxwaittime>600</maxwaittime>
</item>
<item id="1">
<queuenumber>9999</queuenumber>
<queuename>queue_test</queuename>
<password>123456</password>
<agents>101,103,104</agents>
<announcefreq>0</announcefreq>
<announceholdtime>off</announceholdtime>
<announcepos>off</announcepos>
<joinempty>on</joinempty>
<leavewhenempty>off</leavewhenempty>
<retry>5</retry>
<ringstrategy>Ring All</ringstrategy>
<agenttimeout>15</agenttimeout>
<wrapuptime>60</wrapuptime>
<dynamicagents></dynamicagents>
<agentannounce></agentannounce>
<musiconhold>Inherit</musiconhold>
<maxwaittime>5</maxwaittime>
</item>
</queues>
</xml>