POST /api/v0.0.1/extension/whisper?token={token}&type={type}
名称 | 是否必需 | 类型 | 描述 |
whisperer | 是 | Int | 密语监听的分机号。 |
whisperedext | 是 | Int | 被监听的分机号。 |
请求示例
POST /api/v1.1.0/extension/whisper?token=813b621cfe8eecf445a2ce1f4a079ffe&type=json HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
{
"whisperer": "101",
"whisperedext": "106"
}
POST /api/v1.1.0/extension/whisper?token=813b621cfe8eecf445a2ce1f4a079ffe&type=xml HTTP/1.1
Content-Type:application/xml; charset=utf-8
Host: 172.16.6.150
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<whisperer>101</whisperer>
<whisperedext>106</whisperedext>
</xml>
响应示例
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>