public class HotelOffers
extends java.lang.Object
A namespaced client for the
/v1/shopping/hotel-offers endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.shopping.hotelOffers;| Constructor and Description |
|---|
HotelOffers(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
HotelOffer[] |
get()
Convenience method for calling
get without any parameters. |
HotelOffer[] |
get(Params params)
Search for hotels and retrieve availability and rates information.
|
public HotelOffers(Amadeus client)
public HotelOffer[] get(Params params) throws ResponseException
Search for hotels and retrieve availability and rates information.
amadeus.shopping.hotelOffers.get(Params
.with("cityCode", "PAR"));params - the parameters to send to the APIResponseException - when an exception occurspublic HotelOffer[] get() throws ResponseException
get without any parameters.ResponseExceptionget()