语音通知按键通知

最近更新时间:2020-12-24 16:12:08

我的收藏

接口描述

功能描述

配置事件回调 后,通知业务方被叫用户按下的键。

URL 示例

POST https://example.com/voice/callback

请求参数

{
"voicekey_callback": {
"call_from": "",
"callid": "xxxxxx",
"keypress": "2",
"mobile": "13xxxxxxxxx",
"nationcode": "86"
}
}


参数
必选
类型
描述
voicekey_callback
object
通知按键通知回调,详细参数说明请参见下方表格。
参数voicekey_callback
参数
必选
类型
描述
call_from
string
呼入号码。
callid
string
标识本次发送 ID。
keypress
string
用户按下的键。
mobile
string
手机号码。
nationcode
string
国家(或地区)码。

响应参数

{
"result": 0,
"errmsg": "OK"
}
参数
必选
类型
描述
result
number
错误码,0表示成功,非0表示失败。
errmsg
string
错误消息,result 非0时的具体错误信息。

Demo

腾讯云语音消息为您提供了 Java SDKPHP SDKPython SDKNode.js SDKC# SDK 供您参考,欢迎查阅。