Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ List of supported endpoints
amadeus.shopping.flight_offers.get(origin='MAD', destination='NYC', departureDate='2019-08-01')

# Flight Checkin Links
amadeus.reference_data.urls.checkin_links.get(airline='BA')
amadeus.reference_data.urls.checkin_links.get(airlineCode='BA')

# Airline Code Lookup
amadeus.reference_data.airlines.get(IATACode='U2')
amadeus.reference_data.airlines.get(airlineCodes='U2')

# Airport and City Search (autocomplete)
# Find all the cities and airports starting by 'LON'
Expand All @@ -224,16 +224,16 @@ List of supported endpoints
amadeus.reference_data.locations.airports.get(longitude=49.000, latitude=2.55)

# Flight Most Searched Destinations
amadeus.travel.analytics.fare_searches.get(origin='MAD', sourceCountry='SP', period='2017-08')
amadeus.travel.analytics.fare_searches.get(originCityCode='MAD', sourceCountry='SP', period='2017-08')

# Flight Most Booked Destinations
amadeus.travel.analytics.air_traffic.booked.get(origin='MAD', period='2017-08')
amadeus.travel.analytics.air_traffic.booked.get(originCityCode='MAD', period='2017-08')

# Flight Most Traveled Destinations
amadeus.travel.analytics.air_traffic.traveled.get(origin='MAD', period='2017-01')
amadeus.travel.analytics.air_traffic.traveled.get(originCityCode='MAD', period='2017-01')

# Flight Busiest Travel Period
amadeus.travel.analytics.air_traffic.busiest_period.get(origin='MAD', period='2017', direction='ARRIVING')
amadeus.travel.analytics.air_traffic.busiest_period.get(cityCode='MAD', period='2017', direction='ARRIVING')

# Hotel Search API
# Get list of Hotels by city code
Expand Down
6 changes: 4 additions & 2 deletions amadeus/reference_data/_airlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ def get(self, **params):

.. code-block:: python

amadeus.reference_data.airlines.get(IATACode='U2')
amadeus.reference_data.airlines.get(airlineCodes='U2')

:param IATACode: the IATA code for the airline, e.g. ``"1X"``
:param airlineCodes: the IATA or ICAO code for the airline, e.g.
:``"AF"`` (Air France IATA code)
:or ``"AFR"`` (Air France ICAO code)

:rtype: amadeus.Response
:raises amadeus.ResponseError: if the request could not be completed
Expand Down
4 changes: 2 additions & 2 deletions amadeus/reference_data/urls/_checkin_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ def get(self, **params):

.. code-block:: python

amadeus.reference_data.urls.checkin_links.get(airline='1X')
amadeus.reference_data.urls.checkin_links.get(airlineCode='BA')

:param airline: the IATA code for the airline, e.g. ``"1X"``
:param airlineCode: the IATA code for the airline, e.g. ``"BA"``
:param language: the locale for the links, for example ``"en-GB"``

:rtype: amadeus.Response
Expand Down
4 changes: 2 additions & 2 deletions amadeus/travel/analytics/air_traffic/_booked.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ def get(self, **params):
.. code-block:: python

amadeus.travel.analytics.air_traffic.booked.get(
origin='LHR',
originCityCode='LHR',
period='2017-01'
)

:param cityCode: IATA code of the origin city, for
:param originCityCode: IATA code of the origin city, for
example ``"BOS"`` for Boston.
:param query: period when consumers are traveling
in ``YYYY-MM`` format
Expand Down
2 changes: 1 addition & 1 deletion amadeus/travel/analytics/air_traffic/_busiest_period.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def get(self, **params):
.. code-block:: python

amadeus.travel.analytics.air_traffic.busiest_period.get(
origin='MAD',
cityCode='MAD',
period='2017',
direction=Direction.ARRIVING
)
Expand Down
4 changes: 2 additions & 2 deletions amadeus/travel/analytics/air_traffic/_traveled.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ def get(self, **params):
.. code-block:: python

amadeus.travel.analytics.air_traffic.traveled.get(
origin='LHR',
originCityCode='LHR',
period='2017-01'
)

:param cityCode: IATA code of the origin city, for
:param originCityCode: IATA code of the origin city, for
example ``"BOS"`` for Boston.
:param query: period when consumers are traveling
in ``YYYY-MM`` format
Expand Down