public class HotelOffersSearch
extends java.lang.Object
A namespaced client for the
/v3/shopping/hotel-offers endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.shopping.hotelOffersSearch;| Constructor and Description |
|---|
HotelOffersSearch(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
HotelOfferSearch[] |
get()
Convenience method for calling
get without any parameters. |
HotelOfferSearch[] |
get(Params params)
Search for hotels and retrieve availability and rates information.
|
public HotelOffersSearch(Amadeus client)
public HotelOfferSearch[] get(Params params) throws ResponseException
Search for hotels and retrieve availability and rates information.
amadeus.shopping.hotelOffers.get(Params
.with("hotelIds", "MCLONGHM")
.and("adults", 1)
.and("checkInDate", "2022-11-22")
.and("roomQuantity", 1)
.and("paymentPolicy", "NONE")
.and("bestRateOnly", true)); params - the parameters to send to the APIResponseException - when an exception occurspublic HotelOfferSearch[] get() throws ResponseException
get without any parameters.ResponseExceptionget()