public class ByHotels
extends java.lang.Object
A namespaced client for the
/v1/reference-data/locations/hotels/by-hotels endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.referenceData.locations.hotels.byHotels;| Modifier and Type | Method and Description |
|---|---|
Hotel[] |
get()
Convenience method for calling
get without any parameters. |
Hotel[] |
get(Params params)
Returns a list of hotels result of the search using unique Id.
|
public ByHotels(Amadeus client)
public Hotel[] get(Params params) throws ResponseException
Returns a list of hotels result of the search using unique Id.
amadeus.referenceData.locations.hotels.byHotels.get(Params
.with("hotelIds", "ACPAR733"));params - the parameters to send to the APIResponseException - when an exception occurspublic Hotel[] get() throws ResponseException
get without any parameters.ResponseExceptionget()