public class TripParser
extends java.lang.Object
A namespaced client for the
/v3/travel/trip-parser endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder(API_KEY, API_SECRET).build(); amadeus.travel.tripParser;
| Constructor and Description |
|---|
TripParser(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TripDetail |
post()
Convenience method for calling
post without any parameters. |
TripDetail |
post(java.io.File file)
The Trip Parser API parses the content of a document to extract trip information.
|
TripDetail |
post(com.google.gson.JsonObject body)
The Trip Parser API parses the content of a document to extract trip information.
|
TripDetail |
post(java.lang.String body)
The Trip Parser API parses the content of a document to extract trip information.
|
public TripParser(Amadeus client)
public TripDetail post(com.google.gson.JsonObject body) throws ResponseException
The Trip Parser API parses the content of a document to extract trip information. Documents can be of type: PDF, XML, JSON, JPG, EML etc.
amadeus.travel.tripParser.post(body);
body - the parameters to send to the API as a JSonObjectResponseException - when an exception occurspublic TripDetail post(java.lang.String body) throws ResponseException
The Trip Parser API parses the content of a document to extract trip information. Documents can be of type: PDF, XML, JSON, JPG, EML etc.
amadeus.travel.tripParser.post(body);
body - the parameters to send to the API as a StringResponseException - when an exception occurspublic TripDetail post(java.io.File file) throws ResponseException, java.io.IOException
The Trip Parser API parses the content of a document to extract trip information. Documents can be of type: PDF, XML, JSON, JPG, EML etc.
amadeus.travel.tripParser.post(file);
file - the file to send to the API as a FileResponseException - when an exception occursjava.io.IOExceptionpublic TripDetail post() throws ResponseException
post without any parameters.ResponseExceptionpost()