Skip to content

Commit 0c5bd43

Browse files
authored
Merge pull request #135 from amadeus4dev/update-dates
Update dates in examples
2 parents da170a4 + 4415692 commit 0c5bd43

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

README.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ application <https://developers.amadeus.com/my-apps/>`__.
4141
response = amadeus.shopping.flight_offers_search.get(
4242
originLocationCode='MAD',
4343
destinationLocationCode='ATH',
44-
departureDate='2022-06-01',
44+
departureDate='2022-11-01',
4545
adults=1)
4646
print(response.data)
4747
except ResponseError as error:
@@ -192,12 +192,12 @@ List of supported endpoints
192192
amadeus.shopping.flight_dates.get(origin='MAD', destination='MUC')
193193
194194
# Flight Offers Search GET
195-
amadeus.shopping.flight_offers_search.get(originLocationCode='SYD', destinationLocationCode='BKK', departureDate='2022-06-01', adults=1)
195+
amadeus.shopping.flight_offers_search.get(originLocationCode='SYD', destinationLocationCode='BKK', departureDate='2022-11-01', adults=1)
196196
# Flight Offers Search POST
197197
amadeus.shopping.flight_offers_search.post(body)
198198
199199
# Flight Offers Price
200-
flights = amadeus.shopping.flight_offers_search.get(originLocationCode='SYD', destinationLocationCode='BKK', departureDate='2022-06-01', adults=1).data
200+
flights = amadeus.shopping.flight_offers_search.get(originLocationCode='SYD', destinationLocationCode='BKK', departureDate='2022-11-01', adults=1).data
201201
amadeus.shopping.flight_offers.pricing.post(flights[0])
202202
amadeus.shopping.flight_offers.pricing.post(flights[0:2], include='credit-card-fees,other-services')
203203
@@ -227,7 +227,7 @@ List of supported endpoints
227227
body = amadeus.shopping.flight_offers_search.get(
228228
originLocationCode='MAD',
229229
destinationLocationCode='NYC',
230-
departureDate='2022-04-01',
230+
departureDate='2022-11-01',
231231
adults=1).result
232232
amadeus.shopping.flight_offers.prediction.post(body)
233233
@@ -293,14 +293,14 @@ List of supported endpoints
293293
amadeus.safety.safety_rated_location('Q930400801').get()
294294
295295
# Trip Purpose Prediction
296-
amadeus.travel.predictions.trip_purpose.get(originLocationCode='ATH', destinationLocationCode='MAD', departureDate='2021-04-01', returnDate='2021-04-08')
296+
amadeus.travel.predictions.trip_purpose.get(originLocationCode='ATH', destinationLocationCode='MAD', departureDate='2022-11-01', returnDate='2022-11-08')
297297
298298
# Flight Delay Prediction
299-
amadeus.travel.predictions.flight_delay.get(originLocationCode='NCE', destinationLocationCode='IST', departureDate='2020-08-01', \
300-
departureTime='18:20:00', arrivalDate='2020-08-01', arrivalTime='22:15:00', aircraftCode='321', carrierCode='TK', flightNumber='1816', duration='PT31H10M')
299+
amadeus.travel.predictions.flight_delay.get(originLocationCode='NCE', destinationLocationCode='IST', departureDate='2022-08-01', \
300+
departureTime='18:20:00', arrivalDate='2022-08-01', arrivalTime='22:15:00', aircraftCode='321', carrierCode='TK', flightNumber='1816', duration='PT31H10M')
301301
302302
# Airport On-Time Performance
303-
amadeus.airport.predictions.on_time.get(airportCode='JFK', date='2020-09-01')
303+
amadeus.airport.predictions.on_time.get(airportCode='JFK', date='2022-11-01')
304304
305305
# Airport Routes
306306
amadeus.airport.direct_destinations.get(departureAirportCode='BLR')
@@ -324,7 +324,7 @@ List of supported endpoints
324324
amadeus.reference_data.recommended_locations.get(cityCodes='PAR', travelerCountryCode='FR')
325325
326326
# Retrieve status of a given flight
327-
amadeus.schedule.flights.get(carrierCode='AZ', flightNumber='319', scheduledDepartureDate='2021-03-13')
327+
amadeus.schedule.flights.get(carrierCode='AZ', flightNumber='319', scheduledDepartureDate='2022-09-13')
328328
329329
# Tours and Activities
330330
# What are the popular activities in Madrid (based a geo location and a radius)

0 commit comments

Comments
 (0)