public class Airlines
extends java.lang.Object
A namespaced client for the
/v1/reference-data/airlines endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.referenceData.airlines;| Modifier and Type | Method and Description |
|---|---|
Airline[] |
get()
Convenience method for calling
get without any parameters. |
Airline[] |
get(Params params)
Returns the airline name and code.
|
public Airlines(Amadeus client)
public Airline[] get(Params params) throws ResponseException
Returns the airline name and code.
amadeus.referenceData.airlines.get(Params
.with("airlineCodes", "BA"));params - the parameters to send to the APIResponseException - when an exception occurspublic Airline[] get() throws ResponseException
get without any parameters.ResponseExceptionget()