根据shid查询酒店下上架状态房型列表
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param_get_std_room_type_param | GetStdRoomTypeParam | 可选 | 查询参数封装 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | TopStdResultSet | top返回结果封装 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripHotelHstdfStdroomtypeGetbyshidRequest req = new AlitripHotelHstdfStdroomtypeGetbyshidRequest(); AlitripHotelHstdfStdroomtypeGetbyshidRequest.GetStdRoomTypeParam obj1 = new AlitripHotelHstdfStdroomtypeGetbyshidRequest.GetStdRoomTypeParam(); AlitripHotelHstdfStdroomtypeGetbyshidRequest.StdRoomTypeFieldQueryParam obj2 = new AlitripHotelHstdfStdroomtypeGetbyshidRequest.StdRoomTypeFieldQueryParam(); obj2.setCurrentPage(1L); obj2.setEndRow(12L); obj2.setNeedNormalPics(true); obj2.setNeedOtherBnbRoomInfo(true); obj2.setNeedOtherBaseInfo(false); obj2.setNeedOtherExtendInfo(true); obj2.setNeedOtherMultimediaInfo(true); obj2.setNeedOtherServiceFacilities(true); obj2.setNeedPanorama6Pieces(true); obj2.setNeedPanoramas(true); obj2.setNeedRoomFacilities(true); obj2.setPageSize(1L); obj2.setQueryScope(1L); obj2.setStartRow(0L); obj2.setTotalItem(12L); obj1.setParam(obj2); obj1.setShid(12345L); obj1.setSrid(234L); req.setParamGetStdRoomTypeParam(obj1); AlitripHotelHstdfStdroomtypeGetbyshidResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<alitrip_hotel_hstdf_stdroomtype_getbyshid_response> <result> <has_next>true</has_next> <module_list> <std_room_type> <base_info> <add_bed>1</add_bed> <area>23-32</area> <bed_type> <bed_types> <bed_type> <bed_num>2</bed_num> <bed_size>0</bed_size> <bed_type>0</bed_type> <desc>2张大床</desc> <length>2.0</length> <width>1.8</width> </bed_type> </bed_types> <desc>2张1.5m*2.0m大床或1张榻榻米</desc> <logic>2</logic> </bed_type> <en_name>Tatami</en_name> <floor>1</floor> <max_occupancy>3</max_occupancy> <name>日式房</name> <status>0</status> <window_type>0</window_type> <bed_info> <brief_desc>双床(1大1小)/双床/大床</brief_desc> <fuzzy_desc>双床/大床</fuzzy_desc> <simple_desc>1张大床和1张单人床/2张单人床/1张大床</simple_desc> <bed_info_groups> <bed_info_group> <bed_infos> <bed_info> <width>1.8</width> <bed_num>1</bed_num> <bed_type>0</bed_type> <length></length> </bed_info> </bed_infos> <brief_desc>双床(1大1小)</brief_desc> <fuzzy_desc>双床</fuzzy_desc> <simple_desc>1张大床和1张单人床</simple_desc> <classification>2</classification> <bed_num>2</bed_num> <desc>1张大床(1.8M)和1张单人床(1.2M)</desc> </bed_info_group> </bed_info_groups> <classifications> <string></string> </classifications> <desc>1张大床(1.8M)和1张单人床(1.2M)/2张单人床(1.2M)/1张大床</desc> </bed_info> </base_info> <bnb_room_info> <has_landlord>0</has_landlord> <house_model> <balcony>2</balcony> <bathroom>2</bathroom> <bedroom>3</bedroom> <kitchen>1</kitchen> <livingroom>1</livingroom> <study>1</study> </house_model> <rent_size>123</rent_size> <rent_type>1</rent_type> </bnb_room_info> <extend_info> <tags> <string>1</string> <string>2</string> </tags> </extend_info> <multimedia_info> <normal_pics> <service_facility_item> <feature>{"size":"200*160"}</feature> <id>1</id> <order_num>1</order_num> <shid>12345</shid> <srid>234</srid> <status>0</status> <sub_type>客房</sub_type> <type>1</type> <value>是 //img.alicdn.com/bao/uploaded/i1/TB19RWwOpXXXXcCXpXXHupJ_pXX_054752.jpg</value> </service_facility_item> </normal_pics> <panorama6_pieces> <service_facility_item> <feature>{"size":"200*160"}</feature> <id>1</id> <order_num>1</order_num> <shid>12345</shid> <srid>234</srid> <type>3</type> <value>//img.alicdn.com/bao/uploaded/i1/TB19RWwOpXXXXcCXpXXHupJ_pXX_054752.jpg</value> </service_facility_item> </panorama6_pieces> <panoramas> <service_facility_item> <id>1</id> <order_num>1</order_num> <shid>12345</shid> <srid>234</srid> <status>0</status> <type>2</type> <value>//img.alicdn.com/bao/uploaded/i1/TB19RWwOpXXXXcCXpXXHupJ_pXX_054752.jpg</value> </service_facility_item> </panoramas> </multimedia_info> <service_facilities> <room_facilities> <service_facility_item> <id>1</id> <order_num>1</order_num> <shid>12345</shid> <srid>234</srid> <sub_type>1</sub_type> <type>40</type> <type_id>24090</type_id> <value>国内长途(免费)</value> </service_facility_item> </room_facilities> </service_facilities> <shid>12345</shid> <srid>234</srid> </std_room_type> </module_list> <result_code>200</result_code> <result_msg>非法参数</result_msg> <success>true</success> <total_results>123</total_results> </result> </alitrip_hotel_hstdf_stdroomtype_getbyshid_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|