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