Skip to content

Commit

Permalink
Merge pull request #162 from amadeus4dev/update-readme-trip-parser
Browse files Browse the repository at this point in the history
Update readme trip parser
  • Loading branch information
tsolakoua committed Jul 15, 2022
2 parents e6b4ed9 + 0993aaf commit 53a4944
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -327,15 +327,11 @@ List of supported endpoints
# Trip Parser
# Encode to Base64 your booking confirmation file (.html, .eml, .pdf supported)
response = amadeus.travel.trip_parser_jobs.post(amadeus.travel.from_file(path_to_file))
response = amadeus.travel.trip_parser.post(amadeus.travel.from_file(path_to_file))
# Alternatively you can use a Base64 encoded content directly
response = amadeus.travel.trip_parser_jobs.post(amadeus.travel.from_base64(base64))
response = amadeus.travel.trip_parser.post(amadeus.travel.from_base64(base64))
# Or you can call the API with the JSON directly
response = amadeus.travel.trip_parser_jobs.post(body)
# Get the parsing status of the process by jobId
amadeus.travel.trip_parser_jobs.status(response.data['id']).get()
# Get the result of the process by jobId
amadeus.travel.trip_parser_jobs.result(response.data['id']).get()
response = amadeus.travel.trip_parser.post(body)
# Travel Recommendations
amadeus.reference_data.recommended_locations.get(cityCodes='PAR', travelerCountryCode='FR')
Expand Down

0 comments on commit 53a4944

Please sign in to comment.