POST /api/v0.0.1/ivr/query?token={token}&type={type}
名称 | 是否必需 | 类型 | 描述 |
name | 否 | String |
IVR号码。
例如:“name”:“6500”
例如:“name”:“6500,6501,6502”
|
名称 | 类型 | 描述 |
ivrname | String | IVR 名称。 |
prompt | String | IVR 提示音。 |
promptrepeat | String | 提示音播放次数。 |
responsetimeout | Int | 响应超时时间。 |
请求示例
查询 IVR 名称为test_ivr。
POST /api/v0.0.1/ivr/query?token=813b621cfe8eecf445a2ce1f4a079ffe&type=json HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
{
"name": "test_ivr"
}
POST /api/v0.0.1/ivr/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>
<name>test_ivr</name>
</xml>
查询所有IVR。
POST /api/v0.0.1/ivr/query?token=813b621cfe8eecf445a2ce1f4a079ffe HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 192.168.5.150
响应示例
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
"status": "Success",
"ivr": [
{
"ivrid": "4",
"promptrepeat": "3",
"responsetimeout": "5",
"ivrname": "test_ivr",
"prompt": "haruhi3"
}
]
}
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>
<ivr>
<item id="0">
<ivrid>4</ivrid>
<promptrepeat>3</promptrepeat>
<responsetimeout>5</responsetimeout>
<ivrname>test_ivr</ivrname>
<prompt>haruhi3</prompt>
</item>
</ivr>
</xml>