public class Prediction
extends java.lang.Object
A namespaced client for the
/v2/shopping/flight-offers/prediction endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder(API_KEY, API_SECRET).build(); amadeus.shopping.flightOffers.prediction;
| Constructor and Description |
|---|
Prediction(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FlightOfferSearch[] |
post()
Convenience method for calling
post without any parameters. |
FlightOfferSearch[] |
post(com.google.gson.JsonObject body)
This Machine Learning API is based on a prediction model that takes the response of a flight
search as input (Flight Offers Search) and predicts, for each itinerary, the probability to
be selected.
|
FlightOfferSearch[] |
post(java.lang.String body)
This machine learning API is based on a prediction model that takes the response of a flight
search as input (Flight Offers Search) and predicts, for each itinerary, the probability to
be selected.
|
public Prediction(Amadeus client)
public FlightOfferSearch[] post(com.google.gson.JsonObject body) throws ResponseException
This Machine Learning API is based on a prediction model that takes the response of a flight search as input (Flight Offers Search) and predicts, for each itinerary, the probability to be selected.
amadeus.shopping.flightOffers.prediction.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
This machine learning API is based on a prediction model that takes the response of a flight search as input (Flight Offers Search) and predicts, for each itinerary, the probability to be selected.
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()