Skip to content

Commit a7db7ff

Browse files
author
Sam Heyman
authored
Merge pull request #3 from samheyman/master
Change README and Fix Air Traffics path
2 parents e14a97b + 8840c5b commit a7db7ff

File tree

8 files changed

+33
-33
lines changed

8 files changed

+33
-33
lines changed

.github/SUPPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Amadeus Support
22

3-
Our [developer support team](https://developer.amadeus.com/developers) is here to help you. You can find us on [Twitter](#), [StackOverflow](#), and [email](#).
3+
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](#).

README.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Amadeus provides a set of APIs for the travel industry. Flights, Hotels,
88
Locations and more.
99

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

@@ -24,15 +24,15 @@ directly with pip.
2424
pip install amadeus==1.0.0b6
2525
2626
**Next**: `Get Started with the Python
27-
SDK. <https://developer.amadeus.com/docs/python/get_started/initialize>`__
27+
SDK. <https://developers.amadeus.com/docs/python/get_started/initialize>`__
2828

2929
Getting Started
3030
---------------
3131

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

3737
.. code:: py
3838
@@ -51,7 +51,7 @@ application <https://dashboard.developer.amadeus.com/applications>`__.
5151
print(error)
5252
5353
**Next**: `Learn more about checkin
54-
links <https://developer.amadeus.com/docs/python/get_started/checkin_links>`__
54+
links <https://developers.amadeus.com/docs/python/get_started/checkin_links>`__
5555
with our Python SDK.
5656

5757
Initialization
@@ -73,8 +73,8 @@ environment variables ``AMADEUS_CLIENT_ID`` and
7373
amadeus = Client()
7474
7575
Your credentials can be found on the `Amadeus
76-
dashboard <https://dashboard.developer.amadeus.com/client_ids>`__. `Sign
77-
up <https://developer.amadeus.com/register>`__ for an account today.
76+
dashboard <https://dashboard.developers.amadeus.com/client_ids>`__. `Sign
77+
up <https://developers.amadeus.com/register>`__ for an account today.
7878

7979
By default the environment for the SDK is the ``test`` environment. To
8080
switch to a production (paid-for) environment please switch the hostname
@@ -85,7 +85,7 @@ as follows:
8585
amadeus = Client(hostname='production')
8686
8787
**Next**: `Learn more about our initializing the Python
88-
SDK <https://developer.amadeus.com/docs/python/get_started_initialize>`__
88+
SDK <https://developers.amadeus.com/docs/python/get_started_initialize>`__
8989
in our documentation.
9090

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

9797
- `Get
98-
Started <https://developer.amadeus.com/docs/python/get_started>`__
98+
Started <https://developers.amadeus.com/docs/python/get_started>`__
9999
documentation
100100

101101
- `Initialize the
102-
SDK <https://developer.amadeus.com/docs/python/get_started/initialize>`__
102+
SDK <https://developers.amadeus.com/docs/python/get_started/initialize>`__
103103
- `Find an
104-
Airport <https://developer.amadeus.com/docs/python/get_started/find_an_airport>`__
104+
Airport <https://developers.amadeus.com/docs/python/get_started/find_an_airport>`__
105105
- `Book a
106-
Flight <https://developer.amadeus.com/docs/python/get_started/book_a_flight>`__
106+
Flight <https://developers.amadeus.com/docs/python/get_started/book_a_flight>`__
107107
- `Get Flight
108-
Inspiration <https://developer.amadeus.com/docs/python/get_started/get_flight_inspiration>`__
108+
Inspiration <https://developers.amadeus.com/docs/python/get_started/get_flight_inspiration>`__
109109

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

@@ -231,7 +231,7 @@ Help
231231
----
232232

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

@@ -244,4 +244,4 @@ You can find us on `Twitter <#>`__, `StackOverflow <#>`__, and
244244
.. |Dependencies| image:: https://raw.githubusercontent.com/amadeus4dev/amadeus-python/master/.github/images/dependencies.svg?sanitize=true
245245
:target: ttps://badge.fury.io/py/amadeus
246246
.. |Contact Support| image:: https://raw.githubusercontent.com/amadeus4dev/amadeus-python/master/.github/images/support.svg?sanitize=true
247-
:target: http://developer.amadeus.com/support
247+
:target: http://developers.amadeus.com/support

amadeus/travel/_analytics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from amadeus.client.decorator import Decorator
2-
from .analytics._air_traffics import AirTraffics
2+
from .analytics._air_traffic import AirTraffic
33
from .analytics._fare_searches import FareSearches
44

55

66
class Analytics(Decorator, object):
77
def __init__(self, client):
88
Decorator.__init__(self, client)
9-
self.air_traffics = AirTraffics(client)
9+
self.air_traffic = AirTraffic(client)
1010
self.fare_searches = FareSearches(client)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ._air_traffics import AirTraffics
1+
from ._air_traffic import AirTraffic
22
from ._fare_searches import FareSearches
33

4-
__all__ = ['AirTraffics', 'FareSearches']
4+
__all__ = ['AirTraffic', 'FareSearches']

amadeus/travel/analytics/_air_traffics.py renamed to amadeus/travel/analytics/_air_traffic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
from amadeus.client.decorator import Decorator
22

33

4-
class AirTraffics(Decorator, object):
4+
class AirTraffic(Decorator, object):
55
def get(self, **params):
66
'''
77
Returns a list of air traffic reports.
88
99
.. code-block:: python
1010
11-
amadeus.travel.analytics.air_traffics.get(
11+
amadeus.travel.analytics.air_traffic.get(
1212
origin='LHR',
1313
period='2011-01'
1414
)
@@ -22,4 +22,4 @@ def get(self, **params):
2222
:raises amadeus.ResponseError: if the request could not be completed
2323
'''
2424
return self.client.get(
25-
'/v1/travel/analytics/air-traffics', **params)
25+
'/v1/travel/analytics/air-traffic', **params)

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Shopping/Hotels
6262
Travel/Analytics
6363
================
6464

65-
.. autoclass:: amadeus.travel.analytics.AirTraffics
65+
.. autoclass:: amadeus.travel.analytics.AirTraffic
6666
:members: get
6767

6868
.. autoclass:: amadeus.travel.analytics.FareSearches

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
description='Python module for the Amadeus travel APIs',
2020
long_description=long_description,
2121
author='Amadeus',
22-
author_email='developer@amadeus.com',
22+
author_email='developers@amadeus.com',
2323
python_requires='>=2.7.0',
2424
url='https://github.com/amadeus4dev/amadeus-python',
2525
install_requires=[],

specs/namespaces/namespaces_spec.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
expect(client.travel).not_to(be_none)
2525
expect(client.travel.analytics).not_to(be_none)
26-
expect(client.travel.analytics.air_traffics).not_to(be_none)
26+
expect(client.travel.analytics.air_traffic).not_to(be_none)
2727
expect(client.travel.analytics.fare_searches).not_to(be_none)
2828

2929
expect(client.shopping).not_to(be_none)
@@ -43,7 +43,7 @@
4343
expect(client.reference_data.locations.get).not_to(be_none)
4444
expect(client.reference_data.locations.airports.get).not_to(be_none)
4545

46-
expect(client.travel.analytics.air_traffics.get).not_to(be_none)
46+
expect(client.travel.analytics.air_traffic.get).not_to(be_none)
4747
expect(client.travel.analytics.fare_searches.get).not_to(be_none)
4848

4949
expect(client.shopping.flight_dates.get).not_to(be_none)
@@ -82,10 +82,10 @@
8282
'/v1/reference-data/locations/airports', a='b'
8383
))
8484

85-
with it('.travel.analytics.air_traffics.get'):
86-
self.client.travel.analytics.air_traffics.get(a='b')
85+
with it('.travel.analytics.air_traffic.get'):
86+
self.client.travel.analytics.air_traffic.get(a='b')
8787
expect(self.client.get).to(have_been_called_with(
88-
'/v1/travel/analytics/air-traffics', a='b'
88+
'/v1/travel/analytics/air-traffic', a='b'
8989
))
9090

9191
with it('.travel.analytics.fare_searches.get'):

0 commit comments

Comments
 (0)