Skip to content

Commit 53a4944

Browse files
authored
Merge pull request #162 from amadeus4dev/update-readme-trip-parser
Update readme trip parser
2 parents e6b4ed9 + 0993aaf commit 53a4944

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

README.rst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -327,15 +327,11 @@ List of supported endpoints
327327
328328
# Trip Parser
329329
# Encode to Base64 your booking confirmation file (.html, .eml, .pdf supported)
330-
response = amadeus.travel.trip_parser_jobs.post(amadeus.travel.from_file(path_to_file))
330+
response = amadeus.travel.trip_parser.post(amadeus.travel.from_file(path_to_file))
331331
# Alternatively you can use a Base64 encoded content directly
332-
response = amadeus.travel.trip_parser_jobs.post(amadeus.travel.from_base64(base64))
332+
response = amadeus.travel.trip_parser.post(amadeus.travel.from_base64(base64))
333333
# Or you can call the API with the JSON directly
334-
response = amadeus.travel.trip_parser_jobs.post(body)
335-
# Get the parsing status of the process by jobId
336-
amadeus.travel.trip_parser_jobs.status(response.data['id']).get()
337-
# Get the result of the process by jobId
338-
amadeus.travel.trip_parser_jobs.result(response.data['id']).get()
334+
response = amadeus.travel.trip_parser.post(body)
339335
340336
# Travel Recommendations
341337
amadeus.reference_data.recommended_locations.get(cityCodes='PAR', travelerCountryCode='FR')

0 commit comments

Comments
 (0)