Skip to content

Commit f2312cc

Browse files
committed
Update APIs with latest version changes
1 parent 2be853b commit f2312cc

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

README.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@ List of supported endpoints
209209
amadeus.shopping.flight_offers.get(origin='MAD', destination='NYC', departureDate='2019-08-01')
210210
211211
# Flight Checkin Links
212-
amadeus.reference_data.urls.checkin_links.get(airline='BA')
212+
amadeus.reference_data.urls.checkin_links.get(airlineCode='BA')
213213
214214
# Airline Code Lookup
215-
amadeus.reference_data.airlines.get(IATACode='U2')
215+
amadeus.reference_data.airlines.get(airlineCodes='U2')
216216
217217
# Airport and City Search (autocomplete)
218218
# Find all the cities and airports starting by 'LON'
@@ -224,16 +224,16 @@ List of supported endpoints
224224
amadeus.reference_data.locations.airports.get(longitude=49.000, latitude=2.55)
225225
226226
# Flight Most Searched Destinations
227-
amadeus.travel.analytics.fare_searches.get(origin='MAD', sourceCountry='SP', period='2017-08')
227+
amadeus.travel.analytics.fare_searches.get(originCityCode='MAD', sourceCountry='SP', period='2017-08')
228228
229229
# Flight Most Booked Destinations
230-
amadeus.travel.analytics.air_traffic.booked.get(origin='MAD', period='2017-08')
230+
amadeus.travel.analytics.air_traffic.booked.get(originCityCode='MAD', period='2017-08')
231231
232232
# Flight Most Traveled Destinations
233-
amadeus.travel.analytics.air_traffic.traveled.get(origin='MAD', period='2017-01')
233+
amadeus.travel.analytics.air_traffic.traveled.get(originCityCode='MAD', period='2017-01')
234234
235235
# Flight Busiest Travel Period
236-
amadeus.travel.analytics.air_traffic.busiest_period.get(origin='MAD', period='2017', direction='ARRIVING')
236+
amadeus.travel.analytics.air_traffic.busiest_period.get(cityCode='MAD', period='2017', direction='ARRIVING')
237237
238238
# Hotel Search API
239239
# Get list of Hotels by city code

amadeus/reference_data/_airlines.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ def get(self, **params):
88
99
.. code-block:: python
1010
11-
amadeus.reference_data.airlines.get(IATACode='U2')
11+
amadeus.reference_data.airlines.get(airlineCodes='U2')
1212
13-
:param IATACode: the IATA code for the airline, e.g. ``"1X"``
13+
:param airlineCodes: the IATA or ICAO code for the airline, e.g.
14+
:``"AF"`` (Air France IATA code)
15+
:or ``"AFR"`` (Air France ICAO code)
1416
1517
:rtype: amadeus.Response
1618
:raises amadeus.ResponseError: if the request could not be completed

amadeus/reference_data/urls/_checkin_links.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ def get(self, **params):
99
1010
.. code-block:: python
1111
12-
amadeus.reference_data.urls.checkin_links.get(airline='1X')
12+
amadeus.reference_data.urls.checkin_links.get(airlineCode='BA')
1313
14-
:param airline: the IATA code for the airline, e.g. ``"1X"``
14+
:param airlineCode: the IATA code for the airline, e.g. ``"BA"``
1515
:param language: the locale for the links, for example ``"en-GB"``
1616
1717
:rtype: amadeus.Response

amadeus/travel/analytics/air_traffic/_booked.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ def get(self, **params):
99
.. code-block:: python
1010
1111
amadeus.travel.analytics.air_traffic.booked.get(
12-
origin='LHR',
12+
originCityCode='LHR',
1313
period='2017-01'
1414
)
1515
16-
:param cityCode: IATA code of the origin city, for
16+
:param originCityCode: IATA code of the origin city, for
1717
example ``"BOS"`` for Boston.
1818
:param query: period when consumers are traveling
1919
in ``YYYY-MM`` format

amadeus/travel/analytics/air_traffic/_busiest_period.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def get(self, **params):
99
.. code-block:: python
1010
1111
amadeus.travel.analytics.air_traffic.busiest_period.get(
12-
origin='MAD',
12+
cityCode='MAD',
1313
period='2017',
1414
direction=Direction.ARRIVING
1515
)

amadeus/travel/analytics/air_traffic/_traveled.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ def get(self, **params):
99
.. code-block:: python
1010
1111
amadeus.travel.analytics.air_traffic.traveled.get(
12-
origin='LHR',
12+
originCityCode='LHR',
1313
period='2017-01'
1414
)
1515
16-
:param cityCode: IATA code of the origin city, for
16+
:param originCityCode: IATA code of the origin city, for
1717
example ``"BOS"`` for Boston.
1818
:param query: period when consumers are traveling
1919
in ``YYYY-MM`` format

0 commit comments

Comments
 (0)