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

alitrip.merchant.galaxy.city.list (星河-酒店城市列表展示)

雅高酒店城市列表展示,并且首字母列出酒店城市

公共参数

请求参数

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

    响应参数

    名称 类型 示例值 描述
    result Response 默认描述
    • └ success
    • Boolean
    • true
    • 是否成功
    • └ error_code
    • String
    • demo
    • 错误编码
    • content
    • AddressListSearchDto
    • 返回城市列表
    • city_list
    • AddressLetterDto []
    • 城市列表
    • address_list
    • AddressSearchDto []
    • 字母分类列表
    • └ domestic
    • Number
    • 0
    • 0国内1国外
    • └ city_url
    • String
    • demo
    • 城市图片url
    • └ city_py_head
    • String
    • b
    • 城市拼音首字母
    • └ city_code
    • Number
    • 110100
    • 城市编码
    • └ country_code
    • Number
    • 1
    • 国家编码
    • └ city_cn
    • String
    • 北京市
    • 城市
    • └ country_cn
    • String
    • 中华人民共和国
    • 国家
    • └ letter
    • String
    • b
    • 字母
    • hot_city_list
    • AddressSearchDto []
    • 热门城市
    • └ domestic
    • Number
    • 0
    • 0国内1国外
    • └ city_url
    • String
    • demo
    • 城市图片url
    • └ city_py_head
    • String
    • h
    • 城市拼音首字母
    • └ city_code
    • Number
    • 330100
    • 城市编码
    • └ country_code
    • Number
    • 1
    • 国家编码
    • └ city_cn
    • String
    • 杭州市
    • 城市
    • └ country_cn
    • String
    • 中华人民共和国
    • 国家
    • └ error_msg
    • String
    • demo
    • 错误描述

    请求示例

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

    响应示例

    • XML示例
    • JSON示例
    <alitrip_merchant_galaxy_city_list_response>
        <result>
            <success>true</success>
            <error_code>demo</error_code>
            <content>
                <city_list>
                    <address_letter_dto>
                        <address_list>
                            <address_search_dto>
                                <domestic>0</domestic>
                                <city_url>demo</city_url>
                                <city_py_head>b</city_py_head>
                                <city_code>110100</city_code>
                                <country_code>1</country_code>
                                <city_cn>北京市</city_cn>
                                <country_cn>中华人民共和国</country_cn>
                            </address_search_dto>
                        </address_list>
                        <letter>b</letter>
                    </address_letter_dto>
                </city_list>
                <hot_city_list>
                    <address_search_dto>
                        <domestic>0</domestic>
                        <city_url>demo</city_url>
                        <city_py_head>h</city_py_head>
                        <city_code>330100</city_code>
                        <country_code>1</country_code>
                        <city_cn>杭州市</city_cn>
                        <country_cn>中华人民共和国</country_cn>
                    </address_search_dto>
                </hot_city_list>
            </content>
            <error_msg>demo</error_msg>
        </result>
    </alitrip_merchant_galaxy_city_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

    返回
    顶部