文档中心 > API类目 > 智能设备

taobao.ailab.aicloud.call.log.aggregated.call.log.info.list.query (分页查询聚合通话记录)

查询开放通讯录列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
service_name String 必须 test_china_unicom_voip_call 接入通话的服务名称,同一个服务名称下的设备之间才允许通话,品key,由天猫精灵分配给三方(测试和线上环境不同)
owner_ext_user_id String 必须 01MLnDVSANVwCRaIMp2cfryQ 三方用户唯一标识
owner_product_key String 必须 b1ZLOhA9rF7 产品key,由天猫精灵分配给三方,每个设备类型分配一个
owner_device_name String 必须 00-16-EA-AE-3C-40 设备名称,DeviceName通常与ProductKey组合使用,用作标识具体的唯一设备。
offset Number 必须 0 偏移量
limit Number 必须 10 单次查询数据量

响应参数

名称 类型 示例值 描述
aggregated_call_log_info_list AggregatedCallLogInfo [] [] 开放通讯录列表
  • └ answer_state
  • String
  • 接通状态。可取值:已接通:ACCEPTED;未接通:NOT_ACCEPTED;
  • └ answer_time
  • Date
  • 应答时间。可能为 null
  • └ call_direction
  • String
  • 通话方向。呼入:IN,呼出:OUT
  • └ call_duration
  • Number
  • 实际通话时长(单位:秒)
  • └ call_mode
  • String
  • 通话模式。可取值:VOIP / PSTN
  • └ call_start_time
  • Date
  • 发起呼叫时间
  • └ call_type
  • String
  • 通话类型。可取值:语音:AUDIO;视频:VIDEO
  • └ callee_device_name
  • String
  • 被叫deviceName
  • └ callee_ext_user_id
  • String
  • 被叫三方用户唯一标识
  • └ callee_img
  • String
  • 呼出:被叫头像,呼入:null
  • └ callee_nickname
  • String
  • 呼出:被叫昵称,呼入:null
  • └ callee_phone_num
  • String
  • 当callMode为PSTN时,且callDirection为OUT时的去电号码,其余场景为null
  • └ callee_product_key
  • String
  • 被叫产品key
  • └ caller_device_name
  • String
  • 主叫deviceName
  • └ caller_ext_user_id
  • String
  • 主叫三方用户唯一标识
  • └ caller_img
  • String
  • 呼出:null,呼入:主叫头像
  • └ caller_nickname
  • String
  • 呼出:null,呼入:主叫昵称
  • └ caller_phone_num
  • String
  • 当callMode为PSTN时,且callDirection为IN时的来电号码,其余场景为null
  • └ caller_product_key
  • String
  • 主叫产品key
  • └ ext
  • String
  • 扩展信息
  • └ last_leave_time
  • Date
  • 通话结束时间。可能为 null
  • └ owner_device_name
  • String
  • 设备deviceName
  • └ owner_ext_user_id
  • String
  • 三方用户唯一标识
  • └ owner_product_key
  • String
  • 产品productKey
  • └ real_call_log_count
  • Number
  • 聚合数量(本条聚合记录包含的真实的通话数量)
  • └ service_name
  • String
  • 接入通话的服务名称,同一个服务名称下的设备之间才允许通话,如china_unicom_voip_call

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AilabAicloudCallLogAggregatedCallLogInfoListQueryRequest req = new AilabAicloudCallLogAggregatedCallLogInfoListQueryRequest();
req.setServiceName("test_china_unicom_voip_call");
req.setOwnerExtUserId("01MLnDVSANVwCRaIMp2cfryQ");
req.setOwnerProductKey("b1ZLOhA9rF7");
req.setOwnerDeviceName("00-16-EA-AE-3C-40");
req.setOffset(0L);
req.setLimit(10L);
AilabAicloudCallLogAggregatedCallLogInfoListQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<ailab_aicloud_call_log_aggregated_call_log_info_list_query_response>
    <aggregated_call_log_info_list>
        <aggregated_call_log_info>
            <answer_state></answer_state>
            <answer_time></answer_time>
            <call_direction></call_direction>
            <call_duration></call_duration>
            <call_mode></call_mode>
            <call_start_time></call_start_time>
            <call_type></call_type>
            <callee_device_name></callee_device_name>
            <callee_ext_user_id></callee_ext_user_id>
            <callee_img></callee_img>
            <callee_nickname></callee_nickname>
            <callee_phone_num></callee_phone_num>
            <callee_product_key></callee_product_key>
            <caller_device_name></caller_device_name>
            <caller_ext_user_id></caller_ext_user_id>
            <caller_img></caller_img>
            <caller_nickname></caller_nickname>
            <caller_phone_num></caller_phone_num>
            <caller_product_key></caller_product_key>
            <ext></ext>
            <last_leave_time></last_leave_time>
            <owner_device_name></owner_device_name>
            <owner_ext_user_id></owner_ext_user_id>
            <owner_product_key></owner_product_key>
            <real_call_log_count></real_call_log_count>
            <service_name></service_name>
        </aggregated_call_log_info>
    </aggregated_call_log_info_list>
</ailab_aicloud_call_log_aggregated_call_log_info_list_query_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

返回
顶部