public class FlightAvailabilities
extends java.lang.Object
A namespaced client for the
/v1/shopping/availability/flight-availabilities endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder(API_KEY, API_SECRET).build(); amadeus.shopping.availability.flightAvailabilities;
| Constructor and Description |
|---|
FlightAvailabilities(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FlightAvailability[] |
post()
Convenience method for calling
post without any parameters. |
FlightAvailability[] |
post(com.google.gson.JsonObject body)
The Amadeus Flight Availability API provides a list of flights with seats for sale,
and the quantity of seats available in different fare classes on a given itinerary.
|
FlightAvailability[] |
post(java.lang.String body)
The Amadeus Flight Availability API provides a list of flights with seats for sale,
and the quantity of seats available in different fare classes on a given itinerary.
|
public FlightAvailabilities(Amadeus client)
public FlightAvailability[] post(com.google.gson.JsonObject body) throws ResponseException
The Amadeus Flight Availability API provides a list of flights with seats for sale, and the quantity of seats available in different fare classes on a given itinerary. Additional information such as carrier and aircraft information, the departure and arrival terminals, schedule, and route are also provided.
amadeus.shopping.availability.flightAvailabilities.post(body);
body - the parameters to send to the API as a JsonObjectResponseException - when an exception occurspublic FlightAvailability[] post(java.lang.String body) throws ResponseException
The Amadeus Flight Availability API provides a list of flights with seats for sale, and the quantity of seats available in different fare classes on a given itinerary. Additional information such as carrier and aircraft information, the departure and arrival terminals, schedule, and route are also provided.
amadeus.shopping.availability.flightAvailabilities.post(body);
body - the parameters to send to the API as a StringResponseException - when an exception occurspublic FlightAvailability[] post() throws ResponseException
post without any parameters.ResponseExceptionpost()