Query Queue Status
Query user agents’ status in a specific queue.
Endpoint
POST /api/v0.0.1/queuestatus/query?token={token}&type={type}
Request Parameters
Parameter Name | Importance | Type | Description |
queueid | Required | Int | Queue number. |
Response Parameters
Name | Type | Description |
queues | Object | Queue. |
queuenumber | Int | Queue number. |
queuestatus | Object | Queue status. |
callercount | Int | The number of callers who are waiting for answering. |
members | Object | Queue members. |
agent | Int | The agent’s number. |
agentstatus | Int | The agent status.
|
Examples
Request Example
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>
Response Example
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>