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
2 changes: 1 addition & 1 deletion .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Amadeus Support

Our [developer support team](https://developer.amadeus.com/developers) is here to help you. You can find us on [Twitter](#), [StackOverflow](#), and [email](#).
Our [developer support team](https://developers.amadeus.com/developers) is here to help you. You can find us on [Twitter](#), [StackOverflow](https://stackoverflow.com/questions/tagged/amadeus), and [email](#).
36 changes: 18 additions & 18 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Amadeus provides a set of APIs for the travel industry. Flights, Hotels,
Locations and more.

For more details see the `Python
documentation <https://developer.amadeus.com/docs/python>`__ on
`Amadeus.com <https://developer.amadeus.com>`__ and the `class
documentation <https://developers.amadeus.com/docs/python>`__ on
`Amadeus.com <https://developers.amadeus.com>`__ and the `class
reference <https://amadeus4dev.github.io/amadeus-python>`__ here on
GitHub.

Expand All @@ -24,15 +24,15 @@ directly with pip.
pip install amadeus==1.0.0b6

**Next**: `Get Started with the Python
SDK. <https://developer.amadeus.com/docs/python/get_started/initialize>`__
SDK. <https://developers.amadeus.com/docs/python/get_started/initialize>`__

Getting Started
---------------

To send make your first API call you will need to `register for an
Amadeus Developer Account <https://developer.amadeus.com/register>`__
To make your first API call you will need to `register for an
Amadeus Developer Account <https://developers.amadeus.com/register>`__
and `set up your first
application <https://dashboard.developer.amadeus.com/applications>`__.
application <https://dashboard.developers.amadeus.com/applications>`__.

.. code:: py

Expand All @@ -51,7 +51,7 @@ application <https://dashboard.developer.amadeus.com/applications>`__.
print(error)

**Next**: `Learn more about checkin
links <https://developer.amadeus.com/docs/python/get_started/checkin_links>`__
links <https://developers.amadeus.com/docs/python/get_started/checkin_links>`__
with our Python SDK.

Initialization
Expand All @@ -73,8 +73,8 @@ environment variables ``AMADEUS_CLIENT_ID`` and
amadeus = Client()

Your credentials can be found on the `Amadeus
dashboard <https://dashboard.developer.amadeus.com/client_ids>`__. `Sign
up <https://developer.amadeus.com/register>`__ for an account today.
dashboard <https://dashboard.developers.amadeus.com/client_ids>`__. `Sign
up <https://developers.amadeus.com/register>`__ for an account today.

By default the environment for the SDK is the ``test`` environment. To
switch to a production (paid-for) environment please switch the hostname
Expand All @@ -85,7 +85,7 @@ as follows:
amadeus = Client(hostname='production')

**Next**: `Learn more about our initializing the Python
SDK <https://developer.amadeus.com/docs/python/get_started_initialize>`__
SDK <https://developers.amadeus.com/docs/python/get_started_initialize>`__
in our documentation.

Documentation
Expand All @@ -95,20 +95,20 @@ Amadeus has a large set of APIs, and our documentation is here to get
you started today.

- `Get
Started <https://developer.amadeus.com/docs/python/get_started>`__
Started <https://developers.amadeus.com/docs/python/get_started>`__
documentation

- `Initialize the
SDK <https://developer.amadeus.com/docs/python/get_started/initialize>`__
SDK <https://developers.amadeus.com/docs/python/get_started/initialize>`__
- `Find an
Airport <https://developer.amadeus.com/docs/python/get_started/find_an_airport>`__
Airport <https://developers.amadeus.com/docs/python/get_started/find_an_airport>`__
- `Book a
Flight <https://developer.amadeus.com/docs/python/get_started/book_a_flight>`__
Flight <https://developers.amadeus.com/docs/python/get_started/book_a_flight>`__
- `Get Flight
Inspiration <https://developer.amadeus.com/docs/python/get_started/get_flight_inspiration>`__
Inspiration <https://developers.amadeus.com/docs/python/get_started/get_flight_inspiration>`__

Alternatively, head over to our
`Reference <https://developer.amadeus.com/docs/python/reference>`__
`Reference <https://developers.amadeus.com/docs/python/reference>`__
documentation for in-depth information about every SDK method, it’s
arguments and return types.

Expand Down Expand Up @@ -231,7 +231,7 @@ Help
----

Our `developer support
team <https://developer.amadeus.com/developers>`__ is here to help you.
team <https://developers.amadeus.com/developers>`__ is here to help you.
You can find us on `Twitter <#>`__, `StackOverflow <#>`__, and
`email <#>`__.

Expand All @@ -244,4 +244,4 @@ You can find us on `Twitter <#>`__, `StackOverflow <#>`__, and
.. |Dependencies| image:: https://raw.githubusercontent.com/amadeus4dev/amadeus-python/master/.github/images/dependencies.svg?sanitize=true
:target: ttps://badge.fury.io/py/amadeus
.. |Contact Support| image:: https://raw.githubusercontent.com/amadeus4dev/amadeus-python/master/.github/images/support.svg?sanitize=true
:target: http://developer.amadeus.com/support
:target: http://developers.amadeus.com/support
4 changes: 2 additions & 2 deletions amadeus/travel/_analytics.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from amadeus.client.decorator import Decorator
from .analytics._air_traffics import AirTraffics
from .analytics._air_traffic import AirTraffic
from .analytics._fare_searches import FareSearches


class Analytics(Decorator, object):
def __init__(self, client):
Decorator.__init__(self, client)
self.air_traffics = AirTraffics(client)
self.air_traffic = AirTraffic(client)
self.fare_searches = FareSearches(client)
4 changes: 2 additions & 2 deletions amadeus/travel/analytics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ._air_traffics import AirTraffics
from ._air_traffic import AirTraffic
from ._fare_searches import FareSearches

__all__ = ['AirTraffics', 'FareSearches']
__all__ = ['AirTraffic', 'FareSearches']
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from amadeus.client.decorator import Decorator


class AirTraffics(Decorator, object):
class AirTraffic(Decorator, object):
def get(self, **params):
'''
Returns a list of air traffic reports.

.. code-block:: python

amadeus.travel.analytics.air_traffics.get(
amadeus.travel.analytics.air_traffic.get(
origin='LHR',
period='2011-01'
)
Expand All @@ -22,4 +22,4 @@ def get(self, **params):
:raises amadeus.ResponseError: if the request could not be completed
'''
return self.client.get(
'/v1/travel/analytics/air-traffics', **params)
'/v1/travel/analytics/air-traffic', **params)
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Shopping/Hotels
Travel/Analytics
================

.. autoclass:: amadeus.travel.analytics.AirTraffics
.. autoclass:: amadeus.travel.analytics.AirTraffic
:members: get

.. autoclass:: amadeus.travel.analytics.FareSearches
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
description='Python module for the Amadeus travel APIs',
long_description=long_description,
author='Amadeus',
author_email='developer@amadeus.com',
author_email='developers@amadeus.com',
python_requires='>=2.7.0',
url='https://github.com/amadeus4dev/amadeus-python',
install_requires=[],
Expand Down
10 changes: 5 additions & 5 deletions specs/namespaces/namespaces_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

expect(client.travel).not_to(be_none)
expect(client.travel.analytics).not_to(be_none)
expect(client.travel.analytics.air_traffics).not_to(be_none)
expect(client.travel.analytics.air_traffic).not_to(be_none)
expect(client.travel.analytics.fare_searches).not_to(be_none)

expect(client.shopping).not_to(be_none)
Expand All @@ -43,7 +43,7 @@
expect(client.reference_data.locations.get).not_to(be_none)
expect(client.reference_data.locations.airports.get).not_to(be_none)

expect(client.travel.analytics.air_traffics.get).not_to(be_none)
expect(client.travel.analytics.air_traffic.get).not_to(be_none)
expect(client.travel.analytics.fare_searches.get).not_to(be_none)

expect(client.shopping.flight_dates.get).not_to(be_none)
Expand Down Expand Up @@ -82,10 +82,10 @@
'/v1/reference-data/locations/airports', a='b'
))

with it('.travel.analytics.air_traffics.get'):
self.client.travel.analytics.air_traffics.get(a='b')
with it('.travel.analytics.air_traffic.get'):
self.client.travel.analytics.air_traffic.get(a='b')
expect(self.client.get).to(have_been_called_with(
'/v1/travel/analytics/air-traffics', a='b'
'/v1/travel/analytics/air-traffic', a='b'
))

with it('.travel.analytics.fare_searches.get'):
Expand Down