You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Amadeus provides a set of APIs for the travel industry. Flights, Hotels,
8
-
Locations and more.
9
-
10
-
For more details see the `Amadeus for Developers Portal
11
-
<https://developers.amadeus.com>`__ and the `class reference
12
-
<https://amadeus4dev.github.io/amadeus-python>`__ here on GitHub.
7
+
Amadeus provides a rich set of APIs for the travel industry. For more details, check out the `Amadeus for Developers Portal <https://developers.amadeus.com>`__ or the `SDK class reference <https://amadeus4dev.github.io/amadeus-python>`__.
13
8
14
9
Installation
15
10
------------
16
11
17
-
This SDK requires Python 2.7+ or 3.4+. You can install it directly with pip.
12
+
This SDK requires Python 2.7+ or 3.4+. You can install it directly with pip:
18
13
19
14
.. code:: sh
20
15
21
16
pip install amadeus
22
17
23
-
You can also add it to your `requirements.txt` file and install using:
18
+
OR, add it to your `requirements.txt` file and install using:
24
19
25
20
.. code:: sh
26
21
@@ -30,9 +25,8 @@ You can also add it to your `requirements.txt` file and install using:
30
25
Getting Started
31
26
---------------
32
27
33
-
To make your first API call you will need to `register for an Amadeus Developer
34
-
Account <https://developers.amadeus.com/create-account>`__ and set up your first
35
-
application.
28
+
To make your first API call, you will need to `register <https://developers.amadeus.com/register>`__ for an Amadeus Developer Account and `set up your first
Alternatively it can be initialized without any parameters if the
68
-
environment variables ``AMADEUS_CLIENT_ID`` and
69
-
``AMADEUS_CLIENT_SECRET`` are present.
61
+
Alternatively, it can be initialized without any parameters if the environment variables ``AMADEUS_CLIENT_ID`` and ``AMADEUS_CLIENT_SECRET`` are present.
70
62
71
63
.. code:: py
72
64
73
65
amadeus = Client()
74
66
75
-
Your credentials can be found on the `Amadeus dashboard
up <https://developers.amadeus.com>`__ for an account today.
67
+
Your credentials can be found on the `Amadeus dashboard <https://developers.amadeus.com/my-apps/>`__.
78
68
79
-
By default the environment for the SDK is the ``test`` environment. To
80
-
switch to a production (paid-for) environment please switch the hostname
81
-
as follows:
69
+
By default, the SDK environment is set to ``test`` environment. To switch to a production (pay-as-you-go) environment, please switch the hostname as follows:
82
70
83
71
.. code:: py
84
72
@@ -87,46 +75,39 @@ as follows:
87
75
Documentation
88
76
-------------
89
77
90
-
Amadeus has a large set of APIs, and our documentation is here to get you
documentation for in-depth information about every SDK method, its arguments
94
-
and return types.
78
+
Amadeus has a large set of APIs, and our documentation is here to get you started today. Head over to our `reference documentation <https://amadeus4dev.github.io/amadeus-python/>`__ for in-depth information about every SDK method, as well as its arguments and return types.
95
79
96
80
- `Initialize the SDK <https://amadeus4dev.github.io/amadeus-python/#/client>`__
97
-
- `Find an Airport <https://amadeus4dev.github.io/amadeus-python/#referencedata-locations>`__
98
-
- `Find a Flight <https://amadeus4dev.github.io/amadeus-python/#shopping-flights>`__
81
+
- `Find an Airport <https://amadeus4dev.github.io/amadeus-python/#amadeus.reference_data.locations.Airports>`__
82
+
- `Find a Flight <https://amadeus4dev.github.io/amadeus-python/#amadeus.shopping.FlightOffersSearch>`__
@@ -135,11 +116,7 @@ Or with ``POST`` using ``.client.post`` method:
135
116
Response
136
117
--------
137
118
138
-
Every API call returns a ``Response`` object. If the API call contained
139
-
a JSON response it will parse the JSON into the ``.result`` attribute.
140
-
If this data also contains a ``data`` key, it will make that available
141
-
as the ``.data`` attribute. The raw body of the response is always
142
-
available as the ``.body`` attribute.
119
+
Every API call returns a ``Response`` object. If the API call contained a JSON response it will parse the JSON into the ``.result`` attribute. If this data also contains a ``data`` key, it will make that available as the ``.data`` attribute. The raw body of the response is always available as the ``.body`` attribute.
143
120
144
121
.. code:: py
145
122
@@ -157,8 +134,7 @@ available as the ``.body`` attribute.
157
134
Pagination
158
135
----------
159
136
160
-
If an API endpoint supports pagination, the other pages are available
161
-
under the ``.next``, ``.previous``, ``.last`` and ``.first`` methods.
137
+
If an API endpoint supports pagination, the other pages are available under the ``.next``, ``.previous``, ``.last`` and ``.first`` methods.
162
138
163
139
.. code:: py
164
140
@@ -191,10 +167,7 @@ The SDK makes it easy to add your own logger.
191
167
logger=logger
192
168
)
193
169
194
-
Additionally, to enable more verbose logging, you can set the
195
-
appropriate level on your own logger, though the easiest way would be to
196
-
enable debugging via a parameter on initialization, or using the
197
-
``AMADEUS_LOG_LEVEL`` environment variable.
170
+
Additionally, to enable more verbose logging, you can set the appropriate level on your own logger. The easiest way would be to enable debugging via a parameter during initialization, or using the ``AMADEUS_LOG_LEVEL`` environment variable.
198
171
199
172
.. code:: py
200
173
@@ -337,8 +310,7 @@ This library is released under the `MIT License <LICENSE>`__.
337
310
Help
338
311
----
339
312
340
-
Our `developer support team <https://developers.amadeus.com/support>`__ is here
341
-
to help you. You can find us on `StackOverflow <htps://stackoverflow.com/questions/tagged/amadeus>`__, and `email <mailto:developers@amadeus.com>`__.
313
+
Our `developer support team <https://developers.amadeus.com/support>`__ is here to help you. You can also find us on `StackOverflow <htps://stackoverflow.com/questions/tagged/amadeus>`__, or `email directly <mailto:developers@amadeus.com>`__.
0 commit comments