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