根据城市模糊查询,雅高酒店所在城市的城市信息
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
tenant_key | String | 必须 | 123 | 商家租户id | |
city_name | String | 必须 | 杭 | 城市模糊 | |
domestic | Number | 可选 | 0 |
|
0国内1国外 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Response | 默认描述 | |
|
1 2 3 4 5 6 7 | 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()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | < 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 > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|