注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 阿里大于通信能力包

alibaba.aliqin.fc.voice.getdetail (获取呼叫详情)

通过呼叫id获取呼叫相关的数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
call_id String 必须 123^123 呼叫唯一ID
query_date Number 必须 153567892 Unix时间戳,会查询这个时间点对应那一天的记录(单位毫秒)
prod_id Number 必须 11010000138001 语音通知为:11000000300006, 语音验证码为:11010000138001, IVR为:11000000300005, 点击拨号为:11000000300004, SIP为:11000000300009

响应参数

名称 类型 示例值 描述
alicom_code String isv.SYSTEM_ERROR 错误码
alicom_msg String 成功 错误信息
model String { caller: "18767130000", startDate: ””, stateDesc: ”502”, duration: 0, callerShowNumber: ”05344750000”, gmtCreate: ”2017 - 11 - 27 20: 09: 06”, state: ”502”, endDate: ””, calleeShowNumber: ”05344750000”, callee: ”13735460000”, recordFile: "http://xxx" } 返回值,在没有结果时为空。recordFile表示的是录音文件地址
alicom_success Boolean false 请求是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAliqinFcVoiceGetdetailRequest req = new AlibabaAliqinFcVoiceGetdetailRequest();
req.setCallId("123^123");
req.setQueryDate(153567892L);
req.setProdId(11010000138001L);
AlibabaAliqinFcVoiceGetdetailResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_aliqin_fc_voice_getdetail_response>
    <alicom_code>isv.SYSTEM_ERROR</alicom_code>
    <alicom_msg>成功</alicom_msg>
    <model>{   caller: &quot;18767130000&quot;,   startDate: ””,   stateDesc: ”502”,   duration: 0,   callerShowNumber: ”05344750000”,   gmtCreate: ”2017 - 11 - 27 20: 09: 06”,   state: ”502”,   endDate: ””,   calleeShowNumber: ”05344750000”,   callee: ”13735460000”,   recordFile: &quot;http://xxx&quot; }</model>
    <alicom_success>false</alicom_success>
</alibaba_aliqin_fc_voice_getdetail_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部