public class Flights
extends java.lang.Object
A namespaced client for the
/v2/schedule/flights endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.schedule.flights;| Modifier and Type | Method and Description |
|---|---|
DatedFlight[] |
get()
Convenience method for calling
get without any parameters. |
DatedFlight[] |
get(Params params)
Retrieves status of a given flight.
|
public Flights(Amadeus client)
public DatedFlight[] get(Params params) throws ResponseException
Retrieves status of a given flight.
amadeus.schedule.flights.get(Params
.with("carrierCode", "AZ")
.and("flightNumber", "319")
.and("scheduledDepartureDate", "2021-03-13"));params - the parameters to send to the APIResponseException - when an exception occurspublic DatedFlight[] get() throws ResponseException
get without any parameters.ResponseExceptionDatedFlight#get()