文档中心 > API类目 > 法务服务API

alibaba.lvms.lvr.receivecallrecord (接受通话记录)

接受通话记录

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
rpc_context Json 可选 {} RpcContext
ivr_call_record_d_t_o IvrCallRecordDto 可选 ivrCallRecordDTO
  • └ call_record_id
  • Number
  • 可选
  • 3
  • 通话记录id
  • └ robot_call_job_id
  • Number
  • 可选
  • 3
  • 任务id
  • └ called_phone_number
  • String
  • 可选
  • xxxxx
  • 电话号码
  • └ result_status
  • String
  • 可选
  • xxxxx
  • 通话结果
  • └ full_audio_url
  • String
  • 可选
  • xxxxx
  • 用户和AI合成的录音
  • └ chat_duration
  • Number
  • 可选
  • 3
  • 通话时长(单位秒)
  • └ start_time
  • Date
  • 可选
  • 2000-01-01 00:00:00
  • 拨打开始时间
  • └ end_time
  • Date
  • 可选
  • 2000-01-01 00:00:00
  • 拨打结束时间
  • └ name
  • String
  • 可选
  • xxxxx
  • 姓名
  • └ properties
  • String
  • 可选
  • xxxxx
  • 自定义字段
  • └ intent_level_detail_name
  • String
  • 可选
  • xxxxx
  • 客户意向标签名称
  • └ tenant_phone_number_id
  • Number
  • 可选
  • 3
  • 线路Id
  • └ phone_number
  • String
  • 可选
  • xxxxx
  • 主叫号码
  • └ intent_level_code
  • Number
  • 可选
  • 3
  • 意向标签组code
  • └ intent_level_tag_id
  • Number
  • 可选
  • 3
  • 意向标签分组id

响应参数

名称 类型 示例值 描述
lvms_result_d_t_o LvmsResultDto lvmsResultDTO
  • └ count
  • Number
  • 10
  • 返回数量
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ code
  • String
  • xxxxx
  • 操作编码
  • └ message
  • String
  • xxxxx
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaLvmsLvrReceivecallrecordRequest req = new AlibabaLvmsLvrReceivecallrecordRequest();
req.setRpcContextString("{}");
AlibabaLvmsLvrReceivecallrecordRequest.IvrCallRecordDto obj1 = new AlibabaLvmsLvrReceivecallrecordRequest.IvrCallRecordDto();
obj1.setCallRecordId(3L);
obj1.setRobotCallJobId(3L);
obj1.setCalledPhoneNumber("xxxxx");
obj1.setResultStatus("xxxxx");
obj1.setFullAudioUrl("xxxxx");
obj1.setChatDuration(3L);
obj1.setStartTime(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj1.setEndTime(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj1.setName("xxxxx");
obj1.setProperties("xxxxx");
obj1.setIntentLevelDetailName("xxxxx");
obj1.setTenantPhoneNumberId(3L);
obj1.setPhoneNumber("xxxxx");
obj1.setIntentLevelCode(3L);
obj1.setIntentLevelTagId(3L);
req.setIvrCallRecordDTO(obj1);
AlibabaLvmsLvrReceivecallrecordResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_lvms_lvr_receivecallrecord_response>
    <lvms_result_d_t_o>
        <count>10</count>
        <success>false</success>
        <code>xxxxx</code>
        <message>xxxxx</message>
    </lvms_result_d_t_o>
</alibaba_lvms_lvr_receivecallrecord_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

返回
顶部