POST /api/v0.0.1/queuestatus/query?token={token}&type={type}
名称 | 是否必需 | 类型 | 描述 |
queueid | 是 | Int | 队列号码。 |
名称 | 类型 | 描述 |
queues | Object | 队列。 |
queuenumber | Int | 队列号码。 |
queuestatus | Object | 队列状态。 |
callercount | Int | 当前队列等候人数。 |
members | Object | 队列成员。 |
agent | Int | 坐席号码。 |
agentstatus | Int |
坐席状态。
|
请求示例
POST /api/v0.0.1/queuestatus/query?token=813b621cfe8eecf445a2ce1f4a079ffe&type=json HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
{
"queueid":"9998"
}
POST /api/v0.0.1/queuestatus/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>9998</queueid>
</xml>
响应示例
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
"status": "Success",
"queue": {
"queuenumber": "9998",
"queuestatus": {
"members": [
{
"agent": "102",
"agentstatus": "1"
},
{
"agent": "101",
"agentstatus": "6"
},
{
"agent": "6000",
"agentstatus": "1"
}
],
"callercount": 0
}
}
}
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>
<queue>
<queuenumber>9998</queuenumber>
<queuestatus>
<members>
<item id="0">
<agent>102</agent>
<agentstatus>1</agentstatus>
</item>
<item id="1">
<agent>101</agent>
<agentstatus>5</agentstatus>
</item>
<item id="2">
<agent>6000</agent>
<agentstatus>1</agentstatus>
</item>
</members>
<callercount>0</callercount>
</queuestatus>
</queue>
</xml>