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

alibaba.taobao.live.recommend.alipay.right.query (支付宝会场直播权益查询)

支付宝会场直播权益查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
alipay_venue_right_param AlipayVenueRightParam 必须 参数
  • └ stress_test
  • Boolean
  • 必须
  • false
  • 是否压测标
  • └ tabao_user_id
  • Number
  • 必须
  • 2215137213881
  • 淘宝用户id
  • └ live_source
  • String
  • 必须
  • zhifubao1111.bigpop
  • 直播渠道
  • └ ttid
  • String
  • 必须
  • 600000@taobao_android_10.52.10.7306
  • 设备信息
  • └ request_id
  • String
  • 必须
  • toprighttest1234
  • 唯一请求id
  • └ anchor_id_list
  • Number []
  • 必须
  • 1667651824
  • 主播id列表

响应参数

名称 类型 示例值 描述
buiness_code Number 0 code
data AlipayVenueRightResponse 权益结果
  • alipay_venue_right_list
  • AlipayVenueRightDTO []
  • 权益集合
  • account_info
  • AccountInfoDTO
  • 主播信息
  • └ account_name
  • String
  • 主播昵称
  • 主播名称
  • └ account_head_img
  • String
  • //img.alicdn.com/imgextra/i4/201749140/O1CN01sXLxf62HOAZwwtu2a_!!201749140-0-beehive-scenes.jpg
  • 主播头像
  • └ account_id
  • Number
  • 121221
  • 主播id
  • live_info
  • LiveInfoDTO
  • 直播间信息
  • └ live_id
  • Number
  • 122313
  • 直播id
  • unified_benefit_infos
  • UnifiedBenefitInfo []
  • 权益结果
  • └ benefit_type_code
  • String
  • universalRedPacket
  • 权益类型
  • └ priority
  • Number
  • 1
  • 优先级
  • benefit_list
  • BenefitItemInfo []
  • 权益明细
  • └ amount
  • Number
  • 1212
  • 金额,分
  • └ threshold
  • Number
  • 1232
  • 门槛
  • └ red_packet_type
  • String
  • universal
  • 红包类型
  • └ status
  • String
  • 0
  • 状态
  • └ effective_start
  • Number
  • 1213234
  • 有效开始时间
  • └ effective_end
  • Number
  • 1213234
  • 有效结束时间
  • └ discount
  • Number
  • 100
  • 折扣
  • └ discount_yuan
  • String
  • 9.0
  • 折扣文案
is_success Boolean true 调用是否成功
error_message String "系统错误" 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTaobaoLiveRecommendAlipayRightQueryRequest req = new AlibabaTaobaoLiveRecommendAlipayRightQueryRequest();
AlibabaTaobaoLiveRecommendAlipayRightQueryRequest.AlipayVenueRightParam obj1 = new AlibabaTaobaoLiveRecommendAlipayRightQueryRequest.AlipayVenueRightParam();
obj1.setStressTest(false);
obj1.setTabaoUserId(2215137213881L);
obj1.setLiveSource("zhifubao1111.bigpop");
obj1.setTtid("600000@taobao_android_10.52.10.7306");
obj1.setRequestId("toprighttest1234");
obj1.setAnchorIdList(new Long[] { 1667651824 };
);
req.setAlipayVenueRightParam(obj1);
AlibabaTaobaoLiveRecommendAlipayRightQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_taobao_live_recommend_alipay_right_query_response>
    <buiness_code>0</buiness_code>
    <data>
        <alipay_venue_right_list>
            <alipay_venue_right_d_t_o>
                <account_info>
                    <account_name>主播昵称</account_name>
                    <account_head_img>//img.alicdn.com/imgextra/i4/201749140/O1CN01sXLxf62HOAZwwtu2a_!!201749140-0-beehive-scenes.jpg</account_head_img>
                    <account_id>121221</account_id>
                </account_info>
                <live_info>
                    <live_id>122313</live_id>
                </live_info>
                <unified_benefit_infos>
                    <unified_benefit_info>
                        <benefit_type_code>universalRedPacket</benefit_type_code>
                        <priority>1</priority>
                        <benefit_list>
                            <benefit_item_info>
                                <amount>1212</amount>
                                <threshold>1232</threshold>
                                <red_packet_type>universal</red_packet_type>
                                <status>0</status>
                                <effective_start>1213234</effective_start>
                                <effective_end>1213234</effective_end>
                                <discount>100</discount>
                                <discount_yuan>9.0</discount_yuan>
                            </benefit_item_info>
                        </benefit_list>
                    </unified_benefit_info>
                </unified_benefit_infos>
            </alipay_venue_right_d_t_o>
        </alipay_venue_right_list>
    </data>
    <is_success>true</is_success>
    <error_message>&quot;系统错误&quot;</error_message>
</alibaba_taobao_live_recommend_alipay_right_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

返回
顶部