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

taobao.live.virtualanchor.get.live.detail (淘宝直播数字人开放ISV获取直播间信息接口)

淘宝直播数字人开放ISV获取直播间信息接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
live_detail_req LiveDetailReq 必须 请求request
  • └ live_id
  • String
  • 必须
  • 1
  • 直播间Id

响应参数

名称 类型 示例值 描述
trace_id String 1 traceId
data LiveDetailDTO 返回数据对象
  • └ audio_id
  • String
  • 1
  • 音色Id
  • └ mode_id
  • String
  • 1
  • 数字人信息
  • live_param
  • LiveParam
  • 直播设置参数信息,比如麦克风参数
  • └ microphone_message
  • String
  • ""
  • 麦克风信息
  • items
  • LiveItemInfo []
  • 商品集合列表
  • └ sound_url
  • String
  • ""
  • 音频素材链接地址
  • └ tts_id
  • Number
  • 1
  • 文案转成音频记录Id
  • └ sort
  • Number
  • 1
  • 介绍商品排列顺序
  • └ item_id
  • String
  • 1
  • 商品Id
  • └ type
  • Number
  • 1
  • 数字人直播模式:1、无人开播;2、真人开播(阿凡达模式)
business_success Boolean true 执行是否成功 business_success:成功;false:失败
result_code String 200 错误码code
info String “” 文案信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LiveVirtualanchorGetLiveDetailRequest req = new LiveVirtualanchorGetLiveDetailRequest();
LiveVirtualanchorGetLiveDetailRequest.LiveDetailReq obj1 = new LiveVirtualanchorGetLiveDetailRequest.LiveDetailReq();
obj1.setLiveId("1");
req.setLiveDetailReq(obj1);
LiveVirtualanchorGetLiveDetailResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<live_virtualanchor_get_live_detail_response>
    <trace_id>1</trace_id>
    <data>
        <audio_id>1</audio_id>
        <mode_id>1</mode_id>
        <live_param>
            <microphone_message>&quot;&quot;</microphone_message>
        </live_param>
        <items>
            <live_item_info>
                <sound_url>&quot;&quot;</sound_url>
                <tts_id>1</tts_id>
                <sort>1</sort>
                <item_id>1</item_id>
            </live_item_info>
        </items>
        <type>1</type>
    </data>
    <business_success>true</business_success>
    <result_code>200</result_code>
    <info>“”</info>
</live_virtualanchor_get_live_detail_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

返回
顶部