public class HotelOffersByHotel
extends java.lang.Object
A namespaced client for the
/v2/shopping/hotel-offers/by-hotel endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.shopping.HotelOffersByHotel;| Constructor and Description |
|---|
HotelOffersByHotel(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
HotelOffer |
get()
Convenience method for calling
get without any parameters. |
HotelOffer |
get(Params params)
Get all offers for a dedicated hotel.
|
public HotelOffersByHotel(Amadeus client)
public HotelOffer get(Params params) throws ResponseException
Get all offers for a dedicated hotel.
amadeus.shopping.HotelOffersByHotel.get(Params
.with("hotelId", "XKPARC12"));params - the parameters to send to the APIResponseException - when an exception occurspublic HotelOffer get() throws ResponseException
get without any parameters.ResponseExceptionget()