接口描述
功能描述
URL 示例
POST https://example.com/voice/callback
请求参数
{"voicecode_callback": {"result": "0","accept_time": "1470196835","call_from": "075583763333","callid": "xxxxxx","end_calltime": "1470196843","fee": "1","mobile": "13xxxxxxxxx","nationcode": "86","start_calltime": "1470196821"}}
参数 | 必选 | 类型 | 描述 |
voicecode_callback | 是 | object | 验证码状态回调,详细参数说明请参见下方表格。 |
参数
voicecode_callback
:参数 | 必选 | 类型 | 描述 |
result | 是 | string | 错误码,0表示用户正常接听, 1表示用户未接听, 2表示呼叫异常。 |
accept_time | 是 | string | 用户接听时间。 |
call_from | 是 | string | 呼入号码。 |
callid | 是 | string | 标识本次发送 ID。 |
end_calltime | 是 | string | 结束语音验证呼叫时间。 |
fee | 是 | string | 计费时长,单位为分钟。 |
mobile | 是 | string | 手机号码。 |
nationcode | 是 | string | 国家(或地区)码。 |
start_calltime | 是 | string | 开始发起语音验证呼叫时间。 |
响应参数
{"result": 0,"errmsg": "OK"}
参数 | 必选 | 类型 | 描述 |
result | 是 | number | 错误码,0表示成功,非0表示失败。 |
errmsg | 是 | string | 错误消息,result 非0时的具体错误信息。 |
Demo