文档中心 > API类目 > 淘宝直播AI开放

taobao.live.digitalanchor.livedetail.get (直播数字人isv直播场次计划获取)

直播数字人isv直播场次计划获取

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_request DigitalAnchorLiveInfoQueryRequest 必须 请求
  • └ live_id
  • Number
  • 必须
  • 123
  • 直播间id

响应参数

名称 类型 示例值 描述
result Result true 结果
  • └ success
  • Boolean
  • true
  • 成功
  • └ msg_code
  • String
  • ILLEGAL_ARGUMENT
  • 错误码
  • └ msg_info
  • String
  • 参数不合法
  • 错误信息
  • data
  • DigitalAnchorIsvLiveInfoDTO
  • 直播信息
  • └ live_id
  • Number
  • 123
  • 直播间id
  • └ is_auto_start_end
  • Boolean
  • true
  • 是否自动开关播
  • └ start_time
  • Number
  • 1784721180000
  • 直播开始时间,毫秒值
  • └ duration
  • Number
  • 1440
  • 直播计划持续时常,分钟

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LiveDigitalanchorLivedetailGetRequest req = new LiveDigitalanchorLivedetailGetRequest();
LiveDigitalanchorLivedetailGetRequest.DigitalAnchorLiveInfoQueryRequest obj1 = new LiveDigitalanchorLivedetailGetRequest.DigitalAnchorLiveInfoQueryRequest();
obj1.setLiveId(123L);
req.setQueryRequest(obj1);
LiveDigitalanchorLivedetailGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<live_digitalanchor_livedetail_get_response>
    <result>
        <success>true</success>
        <msg_code>ILLEGAL_ARGUMENT</msg_code>
        <msg_info>参数不合法</msg_info>
        <data>
            <live_id>123</live_id>
            <is_auto_start_end>true</is_auto_start_end>
            <start_time>1784721180000</start_time>
            <duration>1440</duration>
        </data>
    </result>
</live_digitalanchor_livedetail_get_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

返回
顶部