public class Destinations
extends java.lang.Object
A namespaced client for the
/v1/airline/destinations endpoint.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.airline.destinations;| Constructor and Description |
|---|
Destinations(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Destination[] |
get()
Convenience method for calling
get without any parameters. |
Destination[] |
get(Params params)
Get airline destinations.
|
public Destinations(Amadeus client)
public Destination[] get(Params params) throws ResponseException
Get airline destinations.
amadeus.airline.destinations.get(Params
.with("airlineCode", "BA")
.and("max", 2));
params - the parameters to send to the APIResponseException - when an exception occurspublic Destination[] get() throws ResponseException
get without any parameters.ResponseExceptionget()