Skip to content

Commit c2d127f

Browse files
committed
update samples
1 parent 1f62bef commit c2d127f

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

README.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,11 @@ List of supported endpoints
212212
amadeus.shopping.flight_dates.get(origin='MAD', destination='MUC')
213213
214214
# Flight Low-fare Search
215-
amadeus.shopping.flight_offers.get(origin='MAD', destination='NYC', departureDate='2019-08-01')
215+
amadeus.shopping.flight_offers.get(origin='MAD', destination='NYC', departureDate='2020-06-01')
216216
217217
# Flight Choice Prediction
218-
result = amadeus.shopping.flight_offers.get(origin='MAD', destination='NYC', departureDate='2019-08-01').result
219-
amadeus.shopping.flight_offers.prediction.post(result)
218+
body = amadeus.shopping.flight_offers.get(origin='MAD', destination='NYC', departureDate='2020-10-01').result
219+
amadeus.shopping.flight_offers.prediction.post(body)
220220
221221
# Flight Checkin Links
222222
amadeus.reference_data.urls.checkin_links.get(airlineCode='BA')
@@ -252,9 +252,9 @@ List of supported endpoints
252252
# Get list of Hotels by city code
253253
amadeus.shopping.hotel_offers.get(cityCode = 'LON')
254254
# Get list of offers for a specific hotel
255-
amadeus.shopping.hotel_offers_by_hotel.get(hotelId = 'IALONCHO')
255+
amadeus.shopping.hotel_offers_by_hotel.get(hotelId = 'BGLONBGB')
256256
# Confirm the availability of a specific offer
257-
amadeus.shopping.hotel_offer('D5BEE9D0D08B6678C2F5FAD910DC110BCDA187D21D4FCE68ED423426D0A246BB').get()
257+
amadeus.shopping.hotel_offer('8123DD9DE5102DADF5DA3B55C8C575F54114336EE718578753888747FE0652FC').get()
258258
259259
# Hotel Ratings
260260
# What travelers think about this hotel?
@@ -270,11 +270,11 @@ List of supported endpoints
270270
amadeus.travel.predictions.trip_purpose.get(originLocationCode='ATH', destinationLocationCode='MAD', departureDate='2020-08-01', returnDate='2020-08-12', searchDate='2020-06-11')
271271
272272
# Flight Delay Prediction
273-
amadeus.travel.predictions.flight_delay.get(originLocationCode='BRU', destinationLocationCode='FRA', departureDate='2020-01-14', \
274-
departureTime='11:05:00', arrivalDate='2020-01-14', arrivalTime='12:10:00', aircraftCode='32A', carrierCode='LH', flightNumber='1009', duration='PT1H05M')
273+
amadeus.travel.predictions.flight_delay.get(originLocationCode='NCE', destinationLocationCode='IST', departureDate='2020-08-01', \
274+
departureTime='18:20:00', arrivalDate='2020-08-01', arrivalTime='22:15:00', aircraftCode='321', carrierCode='TK', flightNumber='1816', duration='PT31H10M')
275275
276276
# Airport On-Time Performance
277-
amadeus.airport.predictions.on_time.get(airportCode='JFK', date='2020-03-01')
277+
amadeus.airport.predictions.on_time.get(airportCode='JFK', date='2020-09-01')
278278
279279
# AI Generated Photos
280280
amadeus.media.files.generated_photos.get(category='MOUNTAIN')
@@ -292,12 +292,12 @@ List of supported endpoints
292292
amadeus.travel.trip_parser_jobs.result(response.data['id']).get()
293293
294294
# Flight Offers Search GET
295-
amadeus.shopping.flight_offers_search.get(originLocationCode='SYD', destinationLocationCode='BKK', departureDate='2020-05-01', adults=1)
295+
amadeus.shopping.flight_offers_search.get(originLocationCode='SYD', destinationLocationCode='BKK', departureDate='2020-07-01', adults=1)
296296
# Flight Offers Search POST
297297
amadeus.shopping.flight_offers_search.post(body)
298298
299299
# Flight Offers Price
300-
flights = amadeus.shopping.flight_offers_search.get(originLocationCode='SYD', destinationLocationCode='BKK', departureDate='2020-05-01', adults=1).data
300+
flights = amadeus.shopping.flight_offers_search.get(originLocationCode='SYD', destinationLocationCode='BKK', departureDate='2020-07-01', adults=1).data
301301
amadeus.shopping.flight_offers.pricing.post(flights[0])
302302
amadeus.shopping.flight_offers.pricing.post(flights[0:2], include='credit-card-fees,other-services')
303303
@@ -327,6 +327,6 @@ to help you. You can find us on `StackOverflow <htps://stackoverflow.com/questio
327327
.. |Maintainability| image:: https://api.codeclimate.com/v1/badges/c2e19cf9628d6f4aece2/maintainability
328328
:target: https://codeclimate.com/github/amadeus4dev/amadeus-python/maintainability
329329
.. |Dependencies| image:: https://raw.githubusercontent.com/amadeus4dev/amadeus-python/master/.github/images/dependencies.svg?sanitize=true
330-
:target: ttps://badge.fury.io/py/amadeus
330+
:target: https://badge.fury.io/py/amadeus
331331
.. |Contact Support| image:: https://raw.githubusercontent.com/amadeus4dev/amadeus-python/master/.github/images/support.svg?sanitize=true
332332
:target: http://developers.amadeus.com/support

amadeus/airport/predictions/_on_time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def get(self, **params):
1010
1111
amadeus.airport.predictions.on_time.get(
1212
airportCode='JFK',
13-
date='2020-03-01')
13+
date='2020-09-01')
1414
1515
:param airportCode: the City/Airport IATA code from which
1616
the flight will depart. ``"NYC"``, for example for New York

amadeus/shopping/_flight_offers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def get(self, **params):
1818
amadeus.shopping.flight_offers.get(
1919
origin='MAD',
2020
destination='NYC',
21-
departureDate='2019-08-01'
21+
departureDate='2020-08-01'
2222
)
2323
2424
:param origin: the City/Airport IATA code from which the flight will

amadeus/shopping/flight_offers/_prediction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def post(self, body):
1111
amadeus.shopping.flight_offers.prediction.post(
1212
amadeus.shopping.flight_offers.get(origin='MAD',
1313
destination='NYC',
14-
departureDate='2019-08-01'
14+
departureDate='2020-08-01'
1515
).result
1616
)
1717

amadeus/travel/predictions/_flight_delay.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ def get(self, **params):
88
99
.. code-block:: python
1010
11-
amadeus.travel.predictions.flight_delay.get(originLocationCode='BRU',
12-
destinationLocationCode='FRA',
13-
departureDate='2020-01-14',
14-
departureTime='11:05:00',
15-
arrivalDate='2020-01-14',
16-
arrivalTime='12:10:00',
17-
aircraftCode='32A',
18-
carrierCode='LH',
19-
flightNumber='1009',
20-
duration='PT1H05M')
11+
amadeus.travel.predictions.flight_delay.get(originLocationCode='NCE',
12+
destinationLocationCode='IST',
13+
departureDate='2020-08-01',
14+
departureTime='18:20:00',
15+
arrivalDate='2020-08-01',
16+
arrivalTime='22:15:00',
17+
aircraftCode='321',
18+
carrierCode='TK',
19+
flightNumber='1816',
20+
duration='PT31H10M')
2121
2222
:param originLocationCode: the City/Airport IATA code from which
2323
the flight will depart. ``"NYC"``, for example for New York

0 commit comments

Comments
 (0)