注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 飞猪推广平台

alibaba.fliggy.promote.hotel.fetch (基于问酒池查询酒店列表)

基于问酒池查询酒店列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
new_query_hotel_list_request NewQueryHotelListRequest 必须 数据包装类
  • └ activity_id
  • String
  • 必须
  • sht_zb_travel
  • 活动ID
  • └ promotion_position_id
  • Number
  • 必须
  • 2219172258770
  • 推广位ID
  • └ page_no
  • Number
  • 可选
  • 1
  • 页码
  • └ page_size
  • Number
  • 必须
  • 10
  • 页大小
  • └ promote_app_key
  • Number
  • 必须
  • 1000028
  • promoteAppKey | 媒体id | 推广平台自己生成给到渠道的
  • └ min_index_id
  • Number
  • 可选
  • 1
  • 最小游标查询值
  • └ channel_code
  • String
  • 可选
  • 2134
  • 渠道code

响应参数

名称 类型 示例值 描述
is_success Boolean true 是否成功
result_code String SHT_CHANNEL_SUPPLY_PARAMS_ERROR 结果码
model QueryHotelListResponse 内容数据包装类
  • └ count
  • Number
  • 100
  • 总计100条数据
  • └ page_index
  • Number
  • 1
  • 第一页
  • └ hotel_ids
  • String []
  • 第一页
  • └ index_id
  • Number
  • 1
  • 游标索引值
result_message String SHT_CHANNEL_SUPPLY_PARAMS_ERROR 结果消息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFliggyPromoteHotelFetchRequest req = new AlibabaFliggyPromoteHotelFetchRequest();
AlibabaFliggyPromoteHotelFetchRequest.NewQueryHotelListRequest obj1 = new AlibabaFliggyPromoteHotelFetchRequest.NewQueryHotelListRequest();
obj1.setActivityId("sht_zb_travel");
obj1.setPromotionPositionId(2219172258770L);
obj1.setPageNo(1L);
obj1.setPageSize(10L);
obj1.setPromoteAppKey(1000028L);
obj1.setMinIndexId(1L);
obj1.setChannelCode("2134");
req.setNewQueryHotelListRequest(obj1);
AlibabaFliggyPromoteHotelFetchResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_fliggy_promote_hotel_fetch_response>
    <is_success>true</is_success>
    <result_code>SHT_CHANNEL_SUPPLY_PARAMS_ERROR</result_code>
    <model>
        <count>100</count>
        <page_index>1</page_index>
        <index_id>1</index_id>
    </model>
    <result_message>SHT_CHANNEL_SUPPLY_PARAMS_ERROR</result_message>
</alibaba_fliggy_promote_hotel_fetch_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

返回
顶部