咨询热线:0755-33548988
语音通知记录查询接口
1.请求地址

  /{softVersion}/Accounts/{accountSid}/VoiceNotify/queryRecord

REST API是通过HTTPS POST方式请求。

3.请求包体
属性 类型 约束 说明
appId String 必选 应用ID
requestId String 必选 语音通知请求ID
to String 必选 语音通知被叫号码

参数说明:

(1).appId:应用ID
(2).requestId:语音通知请求ID
(3).to:语音通知被叫号码

请求示例

JSON请求示例
      POST
      /2016-01-01/Accounts/798b9ec0eaa94142852aa2c402570146/VoiceNotify/queryRecord?sig=
      6949C5F977B304EC5BB969FD8838D345HTTP/1.1
      Host:127.0.0.1:9080
      content-length: 272
      Accept: application/json;
      Content-Type: application/json;charset=utf-8;
      Authorization: Nzk4YjllYzBlYWE5NDE0Mjg1MjYwMmM0AAI1NzAxNDY6MjAxNjAzMjQxNTE3MDE=
      {
        "req": {
           "appId": "feff3cbd52c041a1baab0492bee56423",
           "requestId": "c4beeda21dd34792a488f55b707d9ba8",
           "to": "13512341234"
        }
      }
                            
XML请求示例
      POST
      /2016-01-01/Accounts/798b9ec0eaa94142852aa2c402570146/VoiceNotify/queryRecord?sig=
      230AB7B77C951C9DB5FECD55B3AFB3CFHTTP/1.1
      Host:127.0.0.1:9080
      content-length: 357
      Accept: application/xml;
      Content-Type: application/xml;charset=utf-8;
      Authorization: Nzk4YjllYzBlYWE5NDE0Mjg1MjYwMmMAADI1NzAxNDY6MjAxNjAzMjQxNjA2MjI=
      <?xml version='1.0' encoding='utf-8'?>
      <req>
          <appId>feff3cbd52c041a1bd5aa492bee56423</appId>
          <requestId>c4beeda21dd34792a488f55b707d9ba8</requestId>
          <to>13512341234</to>
      </req>
                            
4.响应包体
属性 类型 约束 说明
statusCode String 必选 请求状态码,取值000000(成功),可参考 Rest 错误代码
dateCreated String 必选 响应时间:格式"yyyy/MM/dd HH:mm:ss"。如:2016/01/01 12:00:00
represent String 可选 错误描述,报错时返回,正常时不返回
voiceNotify VoiceNotify 可选 回调信息数据结构, 正常返回,报错时不返回

响应示例

JSON响应示例
      HTTP/1.1 200 OK 
      Content-Length: 126
      {
      "resp": {
          "statusCode": "000000",
          "dateCreated": "2016/03/24 15:36:52",
          "voiceNotify": {
	      "action":" VoiceNotify ",
              "dtmfFlag":"0",
              "dtmfNum":"",
              "orderFlag":"0",
              "orderTime":"2016/10/13|17:40:00",
              "callTime":"20161024140807",
              "requestId":" bb64b1497dcf4350948b07a260831cf4",
              "to":"18617069172",
              "byeType":"16",
              "displayNum":"02062913466"
            }
        }
      }
                            
XML响应示例
      HTTP/1.1 200 OK 
      Content-Length: 197
      <?xml version='1.0'?>
      <resp>
          <statusCode>000000</statusCode>
          <dateCreated>2016/03/24 16:12:44</dateCreated>
          <voiceNotify>
                <action>VoiceNotify</action>
                <dtmfFlag>0</dtmfFlag>
                <dtmfNum></dtmfNum>
                <orderFlag>0</orderFlag>
                <orderTime>2016/10/13|17:40:00</orderTime>
                <callTime>20161024140807</callTime>
                <requestId>bb64b1497dcf4350948b07a260831cf4</requestId>
                <to>18617069172</to>
                <byeType>16</byeType>
                <displayNum>02062913466</displayNum>
          </voiceNotify>
      </resp>
                            

1 请求地址

2 请求包头

3 请求包体

4 响应包体


在线客服

在线语音

点击呼叫

音频设备正常
点击"呼叫"立即接通客服
麦克风设备未准备好
请检查设备后再点击"呼叫"
音频设备未准备好
请检查设备后再点击"呼叫"
呼叫中……
请耐心等待
00:00
通话中
通话已结束
时长: 00:00
通话未接通
非常抱歉!客服未能接通。请再次呼叫或在官网下方留下您的联系方式,我们将尽快与您沟通。

电话咨询
0755-33548988

回到顶部