文档中心 > API类目 > 飞猪商家平台

alitrip.merchant.galaxy.activity.popup.query (星河-获取雅高小程序营销抽奖首页弹窗)

获取雅高微信小程序,营销抽奖首页弹窗数据。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tenant_key String 可选 123 租户标识
token String 可选 123 用户登录标识
user_site_code Number 可选 1001 用户来源

响应参数

名称 类型 示例值 描述
result Response 默认描述
  • └ success
  • Boolean
  • 成功
  • └ error_code
  • String
  • 错误码
  • content
  • ActivityDrawPopupVo
  • 首页抽奖弹窗数据
  • └ popup_exit_text
  • String
  • 抽奖放弃动作按钮文本
  • └ popup_do_text
  • String
  • 抽奖动作按钮文本
  • └ popup_type
  • Number
  • 抽奖类型
  • └ popup_sub_text
  • String
  • 抽奖副标题
  • └ popup_text
  • String
  • 抽奖标题
  • └ popup_title
  • String
  • 抽奖弹窗标题
  • └ title
  • String
  • 抽奖弹窗文本
  • └ top_title
  • String
  • 抽奖弹窗头部标题
  • └ offer_id
  • String
  • 活动ID
  • └ error_msg
  • String
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripMerchantGalaxyActivityPopupQueryRequest req = new AlitripMerchantGalaxyActivityPopupQueryRequest();
req.setTenantKey("123");
req.setToken("123");
req.setUserSiteCode(1001L);
AlitripMerchantGalaxyActivityPopupQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_merchant_galaxy_activity_popup_query_response>
    <result>
        <success></success>
        <error_code></error_code>
        <content>
            <popup_exit_text></popup_exit_text>
            <popup_do_text></popup_do_text>
            <popup_type></popup_type>
            <popup_sub_text></popup_sub_text>
            <popup_text></popup_text>
            <popup_title></popup_title>
            <title></title>
            <top_title></top_title>
            <offer_id></offer_id>
        </content>
        <error_msg></error_msg>
    </result>
</alitrip_merchant_galaxy_activity_popup_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

返回
顶部