Source code for amadeus.travel._trip_parser

from amadeus.client.decorator import Decorator


[docs]class TripParser(Decorator, object): def __init__(self, client): Decorator.__init__(self, client)
[docs] def post(self, body): ''' Sends the request for the parsing with the booking details and input parameters. .. code-block:: python amadeus.travel.trip_parser.post( '{ "payload": "base64string" }' You can call our helper functions with your booking details in a file or the content encoded in Base64 .. code-block:: python amadeus.travel.trip_parser.post(amadeus.travel.from_file(path_to_file)) amadeus.travel.trip_parser.post(amadeus.travel.from_base64(base64)) :rtype: amadeus.Response :raises amadeus.ResponseError: if the request could not be completed ''' return self.client.post('/v3/travel/trip-parser', body)