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

taobao.live.game.interact.detail.get (获取淘宝直播游戏互动明细)

获取淘宝直播游戏互动明细

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
game_detail_range_query GameDetailRangeQuery 可选 请求信息
  • └ page_size
  • Number
  • 可选
  • 50
  • 分页获取数量,最大 50
  • └ end_timestamp
  • Number
  • 可选
  • 1700136839508
  • 结束时间,毫秒级时间戳,开始时间和结束时间差值不能超过 30 秒
  • └ page_num
  • Number
  • 可选
  • 1
  • 页码,从 1 开始
  • └ start_timestamp
  • Number
  • 可选
  • 1700136839508
  • 开始时间,毫秒级时间戳,开始时间和结束时间差值不能超过 30 秒
  • └ token
  • String
  • 可选
  • adfrg
  • 游戏连接 Token

响应参数

名称 类型 示例值 描述
total_num Number 10 总数据条数
data_list LiveGameEventVO [] 数据列表
  • └ data_type
  • String
  • comment
  • 业务类型
  • └ app_id
  • Number
  • 1
  • 游戏 ID
  • user_info
  • UserVO
  • 用户信息
  • └ user_id
  • String
  • 用户 ID
  • 用户 ID
  • └ user_nick
  • String
  • 用户昵称
  • 用户昵称
  • └ head_img
  • String
  • 用户头像
  • 用户头像
  • anchor_info
  • AnchorVO
  • 主播信息
  • └ anchor_id
  • String
  • 主播 ID
  • 主播 ID
  • └ anchor_nick
  • String
  • 主播昵称
  • 主播昵称
  • └ anchor_head_img
  • String
  • 主播头像
  • 主播头像
  • live_info
  • LiveVO
  • 直播信息
  • └ live_id
  • String
  • liveId
  • 直播 ID
  • └ title
  • String
  • 直播标题
  • 直播标题
  • biz_info
  • BizVO
  • 业务信息
  • └ biz_id
  • String
  • 业务 ID
  • 业务 ID
  • └ biz_type
  • String
  • 业务类型
  • 业务类型
  • └ timestamp
  • Number
  • 1700136839508
  • 业务时间
  • └ data
  • Number
  • 详细数据
  • 详细数据

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LiveGameInteractDetailGetRequest req = new LiveGameInteractDetailGetRequest();
LiveGameInteractDetailGetRequest.GameDetailRangeQuery obj1 = new LiveGameInteractDetailGetRequest.GameDetailRangeQuery();
obj1.setPageSize(50L);
obj1.setEndTimestamp(1700136839508L);
obj1.setPageNum(1L);
obj1.setStartTimestamp(1700136839508L);
obj1.setToken("adfrg");
req.setGameDetailRangeQuery(obj1);
LiveGameInteractDetailGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<live_game_interact_detail_get_response>
    <total_num>10</total_num>
    <data_list>
        <live_game_event_v_o>
            <data_type>comment</data_type>
            <app_id>1</app_id>
            <user_info>
                <user_id>用户 ID</user_id>
                <user_nick>用户昵称</user_nick>
                <head_img>用户头像</head_img>
            </user_info>
            <anchor_info>
                <anchor_id>主播 ID</anchor_id>
                <anchor_nick>主播昵称</anchor_nick>
                <anchor_head_img>主播头像</anchor_head_img>
            </anchor_info>
            <live_info>
                <live_id>liveId</live_id>
                <title>直播标题</title>
            </live_info>
            <biz_info>
                <biz_id>业务 ID</biz_id>
                <biz_type>业务类型</biz_type>
                <timestamp>1700136839508</timestamp>
                <data>详细数据</data>
            </biz_info>
        </live_game_event_v_o>
    </data_list>
</live_game_interact_detail_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

返回
顶部