public class Hotel
extends java.lang.Object
A namespaced client for the
/v1/reference-data/locations/hotel endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.referenceData.locations.hotel;| Modifier and Type | Method and Description |
|---|---|
Hotel[] |
get(Params params)
Returns a list of relevant hotels inside a city.
|
public Hotel(Amadeus client)
public Hotel[] get(Params params) throws ResponseException
Returns a list of relevant hotels inside a city.
amadeus.referenceData.locations.hotel.get(Params
.with("cityCode", "PAR"));params - the parameters to send to the APIResponseException - when an exception occurs