public class HotelBookings
extends java.lang.Object
A namespaced client for the
/v1/booking/hotel-bookings endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder(API_KEY, API_SECRET).build(); amadeus.booking.hotelBookings;
| Constructor and Description |
|---|
HotelBookings(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
HotelBooking[] |
post()
Convenience method for calling
post without any parameters. |
HotelBooking[] |
post(com.google.gson.JsonObject body)
The Hotel Booking API allows you to perform hotel booking.
|
HotelBooking[] |
post(java.lang.String body)
The Hotel Booking API allows you to perform hotel booking.
|
public HotelBookings(Amadeus client)
public HotelBooking[] post(com.google.gson.JsonObject body) throws ResponseException
The Hotel Booking API allows you to perform hotel booking.
amadeus.booking.hotelBookings.post(body);
body - the parameters to send to the API as a JSonObjectResponseException - when an exception occurspublic HotelBooking[] post(java.lang.String body) throws ResponseException
The Hotel Booking API allows you to perform hotel booking.
amadeus.booking.hotelBookings.post(body);
body - the parameters to send to the API as a StringResponseException - when an exception occurspublic HotelBooking[] post() throws ResponseException
post without any parameters.ResponseExceptionpost()