public class FlightOffersSearch
extends java.lang.Object
A namespaced client for the
/v2/shopping/flight-offers endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder(API_KEY, API_SECRET).build(); amadeus.shopping.flightOffersSearch;
| Constructor and Description |
|---|
FlightOffersSearch(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FlightOfferSearch[] |
get()
Convenience method for calling
get without any parameters. |
FlightOfferSearch[] |
get(Params params)
The Flight Offers Search API allows to get cheapest flight recommendations on a given journey.
|
FlightOfferSearch[] |
post()
Convenience method for calling
post without any parameters. |
FlightOfferSearch[] |
post(com.google.gson.JsonObject body)
The Flight Offers Search API allows to get cheapest flight recommendations on a given journey.
|
FlightOfferSearch[] |
post(java.lang.String body)
The Flight Offers Search API allows to get cheapest flight recommendations on a given journey.
|
public Pricing pricing
public FlightOffersSearch(Amadeus client)
public FlightOfferSearch[] get(Params params) throws ResponseException
The Flight Offers Search API allows to get cheapest flight recommendations on a given journey. It provides a list of flight recommendations and fares from a given origin, for a given date and for a given list of passengers. Additional information such as bag allowance, first ancillary bag prices or fare details are also provided.
amadeus.shopping.flightOffersSearch.get(params);
params - the parameters to send to the APIResponseException - when an exception occurspublic FlightOfferSearch[] get() throws ResponseException
get without any parameters.ResponseExceptionget()public FlightOfferSearch[] post(com.google.gson.JsonObject body) throws ResponseException
The Flight Offers Search API allows to get cheapest flight recommendations on a given journey. It provides a list of flight recommendations and fares from a given origin, for a given date and for a given list of passengers. Additional information such as bag allowance, first ancillary bag prices or fare details are also provided.
amadeus.shopping.flightOffersSearch.post(body);
body - the parameters to send to the API as a JSonObjectResponseException - when an exception occurspublic FlightOfferSearch[] post(java.lang.String body) throws ResponseException
The Flight Offers Search API allows to get cheapest flight recommendations on a given journey. It provides a list of flight recommendations and fares from a given origin, for a given date and for a given list of passengers. Additional information such as bag allowance, first ancillary bag prices or fare details are also provided.
amadeus.shopping.flightOffers.prediction.post(body);
body - the parameters to send to the API as a StringResponseException - when an exception occurspublic FlightOfferSearch[] post() throws ResponseException
post without any parameters.ResponseExceptionpost()