File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff 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' )
You can’t perform that action at this time.
0 commit comments