文档中心 > API类目 > 飞猪酒店EBooking

alitrip.hotel.ebooking.hotel.notifyinfo.query (获取酒店提醒信息)

获取酒店提醒信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
hid Number 必须 123 hid

响应参数

名称 类型 示例值 描述
result TopResultSet A result
  • └ error
  • Boolean
  • true
  • error
  • └ error_code
  • String
  • A
  • errorCode
  • └ error_msg
  • String
  • A
  • errorMsg
  • first_result
  • HotelNotificationDO
  • A
  • firstResult
  • └ hid
  • Number
  • 12423423
  • hid
  • └ hotel_name
  • String
  • 酒店
  • hotelName
  • notification_ways
  • NotificationWaysDO
  • notificationWays
  • notificationWays
  • └ emails
  • String []
  • test@test.com
  • emails
  • └ faxs
  • String []
  • 123
  • faxs
  • └ mobiles
  • String []
  • 123
  • mobiles
  • notify_all_setting
  • NotifyAllSetting
  • notifyAllSetting
  • └ email_notify_all_setting_map
  • String
  • emailNotifyAllSettingMap
  • └ fax_notify_all_setting_map
  • String
  • 1
  • faxNotifyAllSettingMap
  • └ mobile_notify_all_setting_map
  • String
  • 1
  • mobileNotifyAllSettingMap
  • └ operator
  • String
  • 1
  • operator
  • └ source
  • String
  • 1
  • source
  • └ telephone_notify_all_setting_map
  • String
  • 1
  • telephoneNotifyAllSettingMap
  • └ operator
  • String
  • 1
  • operator
  • └ source
  • String
  • 1
  • source
  • └ telephones
  • String []
  • 1
  • telephones
  • └ operator
  • String
  • 1
  • operator
  • └ source
  • String
  • 1
  • source
  • └ has_next
  • Boolean
  • 1
  • hasNext
  • └ success
  • Boolean
  • 1
  • success
  • └ total_results
  • Number
  • 1
  • totalResults
  • └ warn_message
  • String
  • 1
  • warnMessage

请求示例

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

响应示例

  • XML示例
  • JSON示例
<alitrip_hotel_ebooking_hotel_notifyinfo_query_response>
    <result>
        <error>true</error>
        <error_code>A</error_code>
        <error_msg>A</error_msg>
        <first_result>
            <hid>12423423</hid>
            <hotel_name>酒店</hotel_name>
            <notification_ways>
                <emails>
                    <string>test@test.com</string>
                </emails>
                <faxs>
                    <string>123</string>
                </faxs>
                <mobiles>
                    <string>123</string>
                </mobiles>
                <notify_all_setting>
                    <email_notify_all_setting_map></email_notify_all_setting_map>
                    <fax_notify_all_setting_map>1</fax_notify_all_setting_map>
                    <mobile_notify_all_setting_map>1</mobile_notify_all_setting_map>
                    <operator>1</operator>
                    <source>1</source>
                    <telephone_notify_all_setting_map>1</telephone_notify_all_setting_map>
                </notify_all_setting>
                <operator>1</operator>
                <source>1</source>
                <telephones>
                    <string>1</string>
                </telephones>
            </notification_ways>
            <operator>1</operator>
            <source>1</source>
        </first_result>
        <has_next>1</has_next>
        <success>1</success>
        <total_results>1</total_results>
        <warn_message>1</warn_message>
    </result>
</alitrip_hotel_ebooking_hotel_notifyinfo_query_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

返回
顶部