@@ -211,6 +211,24 @@ List of supported endpoints
211211 # Flight Cheapest Date Search
212212 amadeus.shopping.flight_dates.get(origin = ' MAD' , destination = ' MUC' )
213213
214+ # Flight Offers Search GET
215+ amadeus.shopping.flight_offers_search.get(originLocationCode = ' SYD' , destinationLocationCode = ' BKK' , departureDate = ' 2020-07-01' , adults = 1 )
216+ # Flight Offers Search POST
217+ amadeus.shopping.flight_offers_search.post(body)
218+
219+ # Flight Offers Price
220+ flights = amadeus.shopping.flight_offers_search.get(originLocationCode = ' SYD' , destinationLocationCode = ' BKK' , departureDate = ' 2020-07-01' , adults = 1 ).data
221+ amadeus.shopping.flight_offers.pricing.post(flights[0 ])
222+ amadeus.shopping.flight_offers.pricing.post(flights[0 :2 ], include = ' credit-card-fees,other-services' )
223+
224+ # Flight Create Orders
225+ amadeus.booking.flight_orders.post(flights[0 ], traveler)
226+
227+ # Flight Order Management
228+ # The flight ID comes from the Flight Create Orders (in test environment it's temporary)
229+ flight_booking = amadeus.booking.flight_orders.post(body).data
230+ amadeus.booking.flight_order(flight_booking[' id' ]).get()
231+
214232 # Flight Low-fare Search
215233 amadeus.shopping.flight_offers.get(origin = ' MAD' , destination = ' NYC' , departureDate = ' 2020-06-01' )
216234
@@ -233,12 +251,6 @@ List of supported endpoints
233251 # Airport Nearest Relevant Airport (for London)
234252 amadeus.reference_data.locations.airports.get(longitude = 0.1278 , latitude = 51.5074 )
235253
236- # Flight Most Searched Destinations
237- # Which were the most searched flight destinations from Madrid in August 2017?
238- amadeus.travel.analytics.air_traffic.searched.get(originCityCode = ' MAD' , marketCountryCode = ' ES' , searchPeriod = ' 2017-08' )
239- # How many people in Spain searched for a trip from Madrid to New-York in September 2017?
240- amadeus.travel.analytics.air_traffic.searched_by_destination.get(originCityCode = ' MAD' , destinationCityCode = ' NYC' , marketCountryCode = ' ES' , searchPeriod = ' 2017-08' )
241-
242254 # Flight Most Booked Destinations
243255 amadeus.travel.analytics.air_traffic.booked.get(originCityCode = ' MAD' , period = ' 2017-08' )
244256
@@ -291,24 +303,6 @@ List of supported endpoints
291303 # Get the result of the process by jobId
292304 amadeus.travel.trip_parser_jobs.result(response.data[' id' ]).get()
293305
294- # Flight Offers Search GET
295- amadeus.shopping.flight_offers_search.get(originLocationCode = ' SYD' , destinationLocationCode = ' BKK' , departureDate = ' 2020-07-01' , adults = 1 )
296- # Flight Offers Search POST
297- amadeus.shopping.flight_offers_search.post(body)
298-
299- # Flight Offers Price
300- flights = amadeus.shopping.flight_offers_search.get(originLocationCode = ' SYD' , destinationLocationCode = ' BKK' , departureDate = ' 2020-07-01' , adults = 1 ).data
301- amadeus.shopping.flight_offers.pricing.post(flights[0 ])
302- amadeus.shopping.flight_offers.pricing.post(flights[0 :2 ], include = ' credit-card-fees,other-services' )
303-
304- # Flight Create Orders
305- amadeus.booking.flight_orders.post(flights[0 ], traveler)
306-
307- # Flight Order Management
308- # The flight ID comes from the Flight Create Orders (in test environment it's temporary)
309- flight_booking = amadeus.booking.flight_orders.post(body).data
310- amadeus.booking.flight_order(flight_booking[' id' ]).get()
311-
312306 Development & Contributing
313307--------------------------
314308
0 commit comments