文档中心 > API类目 > EBK上云API

taobao.xhotel.shotel.get (查询标准酒店信息)

获取标准酒店信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
shid Number 可选 12345 标准酒店ID

响应参数

名称 类型 示例值 描述
result ResultSet result
  • first_result
  • XsHotel
  • firstResult
  • └ gmt_modified
  • String
  • 123
  • gmtModified
  • └ tel
  • String
  • 0086#010#12345678
  • tel
  • └ shid
  • Number
  • 0
  • shid
  • └ hotel_facilities
  • String
  • 0
  • hotelFacilities
  • └ type
  • String
  • 0
  • type
  • └ business
  • String
  • aaa
  • business
  • └ city
  • Number
  • 0
  • city
  • └ used_name
  • String
  • 北京大酒店
  • usedName
  • └ pics
  • String
  • 0
  • pics
  • └ postal_code
  • String
  • 0
  • postalCode
  • └ floors
  • String
  • 0
  • floors
  • └ room_facilities
  • String
  • 0
  • roomFacilities
  • └ description
  • String
  • 0
  • description
  • └ name
  • String
  • 北京饭店
  • name
  • └ province
  • Number
  • 0
  • province
  • └ position_type
  • String
  • 0
  • positionType
  • └ longitude
  • String
  • 100.122
  • longitude
  • └ district
  • Number
  • 0
  • district
  • └ rooms
  • Number
  • 0
  • rooms
  • └ name_e
  • String
  • 0
  • nameE
  • └ fax
  • String
  • 0
  • fax
  • └ gmt_create
  • String
  • 0
  • gmtCreate
  • └ status
  • Number
  • 0
  • status
  • └ extend
  • String
  • {"keyword":”上地”}
  • extend
  • └ star
  • String
  • 0
  • star
  • └ domestic
  • Number
  • 0
  • domestic
  • └ city_tag
  • String
  • 0
  • cityTag
  • └ country
  • String
  • China
  • country
  • └ fee
  • String
  • 0
  • 杂费
  • └ decorate_time
  • String
  • 0
  • decorateTime
  • └ address
  • String
  • 北京市朝阳区
  • address
  • └ service
  • String
  • 0
  • service
  • └ brand
  • String
  • 0
  • brand
  • └ latitude
  • String
  • 110.122
  • latitude
  • └ opening_time
  • String
  • 0
  • openingTime
  • └ error_code
  • String
  • 0
  • errorCode
  • └ error_msg
  • String
  • 0
  • errorMsg
  • └ success
  • Boolean
  • false
  • success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelShotelGetRequest req = new XhotelShotelGetRequest();
req.setShid(12345L);
XhotelShotelGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<xhotel_shotel_get_response>
    <result>
        <first_result>
            <gmt_modified>123</gmt_modified>
            <tel>0086#010#12345678</tel>
            <shid>0</shid>
            <hotel_facilities>0</hotel_facilities>
            <type>0</type>
            <business>aaa</business>
            <city>0</city>
            <used_name>北京大酒店</used_name>
            <pics>0</pics>
            <postal_code>0</postal_code>
            <floors>0</floors>
            <room_facilities>0</room_facilities>
            <description>0</description>
            <name>北京饭店</name>
            <province>0</province>
            <position_type>0</position_type>
            <longitude>100.122</longitude>
            <district>0</district>
            <rooms>0</rooms>
            <name_e>0</name_e>
            <fax>0</fax>
            <gmt_create>0</gmt_create>
            <status>0</status>
            <extend>{&quot;keyword&quot;:”上地”}</extend>
            <star>0</star>
            <domestic>0</domestic>
            <city_tag>0</city_tag>
            <country>China</country>
            <fee>0</fee>
            <decorate_time>0</decorate_time>
            <address>北京市朝阳区</address>
            <service>0</service>
            <brand>0</brand>
            <latitude>110.122</latitude>
            <opening_time>0</opening_time>
        </first_result>
        <error_code>0</error_code>
        <error_msg>0</error_msg>
        <success>false</success>
    </result>
</xhotel_shotel_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

返回
顶部