注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 飞猪酒店标准库

alitrip.hotel.hstdf.sroom.properties.get (查询标准酒店属性)

查询标准酒店属性

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
shid Number 可选 111111 标准酒店id
srid Number 可选 22222 标准房型id
type Number 可选 1 类型

响应参数

名称 类型 示例值 描述
result TopResultSet result
  • └ results
  • String []
  • results
  • first_result
  • ShotelPropertiesResult
  • firstResult
  • shotel_properties_do_list
  • ShotelPropertiesDO []
  • shotelPropertiesDOList
  • └ gmt_modified
  • Date
  • 1378452485012
  • 创建时间
  • └ gmt_create
  • Date
  • 1360481284858
  • 修改时间
  • └ status
  • Number
  • 1
  • status
  • └ extend
  • String
  • 扩展信息
  • 扩展信息
  • └ order_num
  • Number
  • 571
  • 序号
  • └ shid
  • Number
  • 1599830216
  • 标准酒店id
  • └ type
  • Number
  • 532
  • 类型
  • └ value1
  • String
  • 免费WiFi
  • 类型值
  • └ operator
  • String
  • haoding
  • 操作人
  • └ id
  • Number
  • 479801259
  • id
  • └ srid
  • Number
  • 1739660464
  • 标准房型
  • └ source
  • String
  • 来源
  • └ sub_type
  • String
  • 2
  • 子类型
  • └ value
  • String
  • 免费wifi
  • 类型值
  • └ type_id
  • String
  • 24005
  • 类型id
  • └ pic_finger
  • String
  • 图片指纹
  • └ outer_id
  • String
  • 1001
  • 外部id
  • └ total_results
  • Number
  • 11
  • 结果数量
  • └ has_next
  • Boolean
  • false
  • 下一条
  • └ error_code
  • String
  • 400
  • 错误码
  • └ warn_message
  • String
  • 服务不存在
  • 提示信息
  • └ error_msg
  • String
  • 参数错误
  • 错误信息
  • └ results_list
  • String []
  • 结果列表
  • └ success
  • Boolean
  • false
  • 成功标记

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripHotelHstdfSroomPropertiesGetRequest req = new AlitripHotelHstdfSroomPropertiesGetRequest();
req.setShid(111111L);
req.setSrid(22222L);
req.setType(1L);
AlitripHotelHstdfSroomPropertiesGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_hotel_hstdf_sroom_properties_get_response>
    <result>
        <results>
            <string></string>
        </results>
        <first_result>
            <shotel_properties_do_list>
                <shotel_properties_d_o>
                    <gmt_modified>1378452485012</gmt_modified>
                    <gmt_create>1360481284858</gmt_create>
                    <status>1</status>
                    <extend>扩展信息</extend>
                    <order_num>571</order_num>
                    <shid>1599830216</shid>
                    <type>532</type>
                    <value1>免费WiFi</value1>
                    <operator>haoding</operator>
                    <id>479801259</id>
                    <srid>1739660464</srid>
                    <source>无</source>
                    <sub_type>2</sub_type>
                    <value>免费wifi</value>
                    <type_id>24005</type_id>
                    <pic_finger>无</pic_finger>
                    <outer_id>1001</outer_id>
                </shotel_properties_d_o>
            </shotel_properties_do_list>
        </first_result>
        <total_results>11</total_results>
        <has_next>false</has_next>
        <error_code>400</error_code>
        <warn_message>服务不存在</warn_message>
        <error_msg>参数错误</error_msg>
        <results_list>
            <string>无</string>
        </results_list>
        <success>false</success>
    </result>
</alitrip_hotel_hstdf_sroom_properties_get_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

返回
顶部