Log in a Queue
Through this interface, a dynamic agent can log in a queue.
Endpoint
POST /api/v0.0.1/queue/add_dynamicagent?token={token}&type={type}
Request Parameters
Name | Importance | Type | Description |
queueid | Required | Int | The queue number. |
extid | Required | Int | The dynamic agent’s number. |
password | Optional | Int | The password of the queue. |
Examples
Request Example
Add the extension 6000 to the queue 9998, and the password is 666666.
POST /api/v0.0.1/queue/add_dynamicagent?token=813b621cfe8eecf445a2ce1f4a079ffe&type=json HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
{
“queueid”: “9998”,
“extid”: “6000”,
“password”: “666666”
}
POST /api/v0.0.1/queue/add_dynamicagent?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>
<extid>6000</extid>
<password>666666</password>
</xml>
Response Example
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
“status”: “Success”
}
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>
</xml>