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

alitrip.merchant.galaxy.favorite.list (用户收藏列表查询)

让用户可以查询自己收藏的酒店列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tenant_key String 必须 234 租户标识
token String 可选 6567 用户登录标识

响应参数

名称 类型 示例值 描述
result Response 默认描述
  • └ success
  • Boolean
  • true
  • 成功
  • └ error_code
  • String
  • error
  • 错误码
  • contents
  • FavoriteHotelList []
  • 收藏列表
  • └ picture_url
  • String
  • http://xxx.xxx
  • 酒店头图
  • └ address
  • String
  • 某某区某某街道
  • 酒店地址
  • └ name_cn
  • String
  • 某某酒店
  • 酒店中文名称
  • └ hotel_id
  • String
  • 3333
  • 酒店id
  • └ shid
  • Number
  • 3324
  • 飞猪标准酒店id
  • └ logo_url
  • String
  • http://xxx.xxx
  • 品牌logo URL
  • └ media_url
  • String
  • http://xxx.xxx
  • 卫生健康标识
  • └ error_msg
  • String
  • 错误信息
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripMerchantGalaxyFavoriteListRequest req = new AlitripMerchantGalaxyFavoriteListRequest();
req.setTenantKey("234");
req.setToken("6567");
AlitripMerchantGalaxyFavoriteListResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_merchant_galaxy_favorite_list_response>
    <result>
        <success>true</success>
        <error_code>error</error_code>
        <contents>
            <favorite_hotel_list>
                <picture_url>http://xxx.xxx</picture_url>
                <address>某某区某某街道</address>
                <name_cn>某某酒店</name_cn>
                <hotel_id>3333</hotel_id>
                <shid>3324</shid>
                <logo_url>http://xxx.xxx</logo_url>
                <media_url>http://xxx.xxx</media_url>
            </favorite_hotel_list>
        </contents>
        <error_msg>错误信息</error_msg>
    </result>
</alitrip_merchant_galaxy_favorite_list_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

返回
顶部