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

alitrip.merchant.galaxy.city.like (星河-酒店城市模糊查询)

根据城市模糊查询,雅高酒店所在城市的城市信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tenant_key String 必须 123 商家租户id
city_name String 必须 城市模糊
domestic Number 可选 0
  • 默认值:0
  • 0国内1国外

    响应参数

    名称 类型 示例值 描述
    result Response 默认描述
    • └ success
    • Boolean
    • true
    • 是否成功
    • └ error_code
    • String
    • demo
    • 错误编码
    • content
    • AddressSearchVO
    • 返回结果
    • hotel_list
    • HotelAddressDetail []
    • 1
    • 酒店详情
    • └ shid
    • Number
    • 10023179
    • 标准库id
    • └ hotel_id
    • String
    • 5554
    • 酒店id
    • └ picture_url
    • String
    • https://fm-unicorn-hotel.oss-cn-beijing.aliyuncs.com/10006373010/hotel/5554/%E5%A4%96%E8%A7%82/O1CN01Z6I2EC1d5JlcjVxjP_%21%216000000003684-0-hotel.jpg
    • 酒店头图url
    • └ address
    • String
    • 西湖大道333号近 南山路(近西湖,雷峰塔,中国美院,南山路,河坊街)
    • address
    • └ name_cn
    • String
    • 杭州索菲特西湖大酒店
    • 酒店中文名称
    • city_list
    • CityAddressDetail []
    • 城市列表
    • └ domestic
    • Number
    • 0
    • 0国内1国外
    • └ country_code
    • Number
    • 1
    • 国家编码
    • └ country_cn
    • String
    • 中华人民共和国
    • 国家(汉字)
    • └ city_code
    • Number
    • 330100
    • 城市编码
    • └ city_cn
    • String
    • 杭州市
    • 城市(汉字)
    • └ province_code
    • Number
    • 440000
    • 省份代码
    • └ province_cn
    • String
    • 广东省
    • 省份(汉字)
    • └ city_py_head
    • String
    • g
    • 城市拼音首字母
    • └ city_url
    • String
    • demo
    • 城市图片URL
    • └ error_msg
    • String
    • demo
    • 错误信息

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlitripMerchantGalaxyCityLikeRequest req = new AlitripMerchantGalaxyCityLikeRequest();
    req.setTenantKey("123");
    req.setCityName("杭");
    req.setDomestic(0L);
    AlitripMerchantGalaxyCityLikeResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alitrip_merchant_galaxy_city_like_response>
        <result>
            <success>true</success>
            <error_code>demo</error_code>
            <content>
                <hotel_list>
                    <hotel_address_detail>
                        <shid>10023179</shid>
                        <hotel_id>5554</hotel_id>
                        <picture_url>https://fm-unicorn-hotel.oss-cn-beijing.aliyuncs.com/10006373010/hotel/5554/%E5%A4%96%E8%A7%82/O1CN01Z6I2EC1d5JlcjVxjP_%21%216000000003684-0-hotel.jpg</picture_url>
                        <address>西湖大道333号近 南山路(近西湖,雷峰塔,中国美院,南山路,河坊街)</address>
                        <name_cn>杭州索菲特西湖大酒店</name_cn>
                    </hotel_address_detail>
                </hotel_list>
                <city_list>
                    <city_address_detail>
                        <domestic>0</domestic>
                        <country_code>1</country_code>
                        <country_cn>中华人民共和国</country_cn>
                        <city_code>330100</city_code>
                        <city_cn>杭州市</city_cn>
                        <province_code>440000</province_code>
                        <province_cn>广东省</province_cn>
                        <city_py_head>g</city_py_head>
                        <city_url>demo</city_url>
                    </city_address_detail>
                </city_list>
            </content>
            <error_msg>demo</error_msg>
        </result>
    </alitrip_merchant_galaxy_city_like_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

    返回
    顶部