飞猪酒店分销-静态信息-酒店-查询
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
feed_hotel_query | FeedHotelQuery | 必须 | 查询条件 | ||||||||
|
|||||||||||
page_request | PageRequest | 必须 | 分页配置 | ||||||||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
trace_id | String | 2127f0c417024824014503859e2dd2 | traceId |
data | PageableContent | 分页结果 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); XhotelDistributionFeedHotelQueryRequest req = new XhotelDistributionFeedHotelQueryRequest(); XhotelDistributionFeedHotelQueryRequest.FeedHotelQuery obj1 = new XhotelDistributionFeedHotelQueryRequest.FeedHotelQuery(); obj1.setAfterModifiedTime( "2013-12-01 00:00:00" ); obj1.setLanguage( "cn" ); obj1.setDistributor( "DIDAJL" ); req.setFeedHotelQuery(obj1); XhotelDistributionFeedHotelQueryRequest.PageRequest obj2 = new XhotelDistributionFeedHotelQueryRequest.PageRequest(); obj2.setSize(100L); obj2.setPage(1L); req.setPageRequest(obj2); XhotelDistributionFeedHotelQueryResponse rsp = client.execute(req, sessionKey); 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | < xhotel_distribution_feed_hotel_query_response > < trace_id >2127f0c417024824014503859e2dd2</ trace_id > < data > < data > < hotel > < rooms >10</ rooms > < position_type >GaoDe</ position_type > < minimum_guest_age >1</ minimum_guest_age > < latitude >30.269311</ latitude > < description >这是一个美丽的酒店,距离机场xxx公里</ description > < remark >酒店不提供一次性洗漱用品</ remark > < city_id >654300</ city_id > < country_id >1</ country_id > < pictures > < feed_picture > < id >391391725</ id > < url >//img.alicdn.com/imgextra/i1/6000000005240/O1CN01N8k0Ud1oZyBSnB3UV_!!6000000005240-0-hotel.jpg</ url > < desc >xxx</ desc > </ feed_picture > </ pictures > < city_name >阿勒泰地区</ city_name > < tel >##17374899426,0086#0906#2888889</ tel > < longitude >119.950899</ longitude > < address >地址</ address > < star >4</ star > < check_in_time >12:00</ check_in_time > < hotel_id >55104001</ hotel_id > < hotel_name >xxx酒店</ hotel_name > < check_out_time >12:00</ check_out_time > < country_name >China</ country_name > < facilities > < feed_facility > < name >1</ name > < description >xxxx</ description > < id >333519399</ id > </ feed_facility > </ facilities > < status >0</ status > < room_types > < feed_room_type > < room_id >房型id</ room_id > < room_name >房型名称</ room_name > < bed_type >床型</ bed_type > </ feed_room_type > </ room_types > </ hotel > </ data > < page_index >2</ page_index > < page_size >10</ page_size > </ data > </ xhotel_distribution_feed_hotel_query_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 > |
错误码 | 错误描述 | 解决方案 |
---|