public class FlightDestinations
extends java.lang.Object
A namespaced client for the
/v1/shopping/flight-destinations endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.shopping.flightDestinations;| Constructor and Description |
|---|
FlightDestinations(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FlightDestination[] |
get()
Convenience method for calling
get without any parameters. |
FlightDestination[] |
get(Params params)
Find the cheapest destinations where
you can fly to.
|
public FlightDestinations(Amadeus client)
public FlightDestination[] get(Params params) throws ResponseException
Find the cheapest destinations where you can fly to.
amadeus.shopping.flightDestinations.get(Params
.with("origin", "LHR"));params - the parameters to send to the APIResponseException - when an exception occurspublic FlightDestination[] get() throws ResponseException
get without any parameters.ResponseExceptionget()