Skip to content

Commit 9049a2f

Browse files
committed
Merge branch 'master' into support-flight-delay-prediction
2 parents 0a4688c + 56ad9a3 commit 9049a2f

File tree

4 files changed

+28
-14
lines changed

4 files changed

+28
-14
lines changed

CHANGELOG.rst

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,51 @@
11
Changelog
22
=========
3+
3.2.0 - 2019-11-07
4+
--------------------
5+
Add support for the `Trip Purpose Prediction API <https://developers.amadeus.com/self-service/category/trip/api-doc/trip-purpose-prediction>`_
6+
7+
The Trip Purpose Prediction API returns the probability of whether a round-trip flight itinerary is for business or leisure travel. The API takes flight dates, departure city and arrival city and then applies a machine-learning model trained with Amadeus historical data to determine the probability that the itinerary is for business or leisure travel. This API is useful for gaining insight and optimizing the search and shopping experience.
8+
9+
Add support for the `Hotel Ratings API <https://developers.amadeus.com/self-service/category/hotel/api-doc/hotel-ratings>`_
10+
11+
The Hotel Ratings API provides hotel ratings based on automated sentiment analysis algorithm applied on the online reviews. Apart from an overall rating for a hotel also provides ratings for different categories of each (e.g.: staff, pool, internet, location). This provides a key content information for decision making during a shopping experience being able to compare how good a hotel is compared to others, sort hotels by ratings, filter by categories or recommend a hotel based on the trip context.
12+
13+
Release of the `Flight Choice Prediction API <https://developers.amadeus.com/self-service/category/air/api-doc/flight-choice-prediction>`_
14+
15+
The Flight Choice Prediction API allows developers to forecast traveler choices in the context of search & shopping. Exposing machine learning & AI services for travel, this API consumes the output of the Flight Low-fare Search API and returns augmented content with probabilities of choices for each flight offers.
16+
317
3.1.0 - 2019-03-25
4-
--------------------
18+
--------------------
519
Release of the `Points Of Interest API <https://developers.amadeus.com/self-service/category/210/api-doc/55>`_
620

721
The Points Of Interest API, powered by AVUXI TopPlace, is a search API that returns a list of popular places for a particular location. The location can be defined as area bound by four coordinates or as a geographical coordinate with a radius. The popularity of a place or 'point of interest' is determined by AVUXI's proprietary algorithm that considers factors such as ratings, check-ins, category scores among other factors from a host of online media sources.
822

923

1024
3.0.0 - 2019-01-22
11-
--------------------
12-
** Hotel Search v2 has been deployed (Hotel Search v1 is now deprecated) **
25+
--------------------
26+
** Hotel Search v2 has been deployed (Hotel Search v1 is now deprecated) **
1327

1428
** General **
1529
- Remove support of Hotel Search v1
1630
- URLs for all three endpoints have been simplified for ease-of-use and consistency
17-
** Find Hotels - 1st endpoint **
31+
** Find Hotels - 1st endpoint **
1832
- The parameter `hotels` has been renamed to `hotelIds`
19-
** View Hotel Rooms - 2nd endpoint **
33+
** View Hotel Rooms - 2nd endpoint **
2034
- Update from `amadeus.shopping.hotel('IALONCHO').hotel_offers.get` to `amadeus.shopping.hotel_offers_by_hotel.get(hotelId: 'IALONCHO')`
2135
- Now get all images in ‘View Hotels Rooms’ endpoint using the view parameter as `FULL_ALL_IMAGES`
22-
** View Room Details - 3rd endpoint **
36+
** View Room Details - 3rd endpoint **
2337
- Updated from `amadeus.shopping.hotel('IALONCHO').offer('XXX').get` to `amadeus.shopping.hotel_offer('XXX').get`
2438
- Image category added under Media in the response
2539
- Hotel distance added in the response
2640
- Response now refers to the common HotelOffer object model
2741

2842
2.0.1 - 2019-01-17
29-
--------------------
43+
--------------------
3044

3145
Fix pagination URL encoding parameters
3246

3347
2.0.0 - 2018-10-14
34-
--------------------
48+
--------------------
3549

3650
`Flight Most Searched Destinations <https://developers.amadeus.com/self-service/category/203/api-doc/6>`_: Redesign of the API - Split the previous endpoint in 2 endpoints:
3751

README.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This SDK requires Python 2.7+ or 3.4+. You can install it directly with pip.
2020
2121
pip install amadeus
2222
23-
You can also add it to your `requirements.txt` file and install using:
23+
You can also add it to your `requirements.txt` file and install using:
2424

2525
.. code:: sh
2626
@@ -126,8 +126,7 @@ Or with ``POST`` using ``.client.post`` method:
126126

127127
.. code:: py
128128
129-
amadeus.post('/v1/shopping/flight-offers/pricing', data)
130-
129+
amadeus.post('/v1/shopping/flight-offers/pricing', body)
131130
132131
Response
133132
--------
@@ -215,7 +214,7 @@ List of supported endpoints
215214
# Flight Low-fare Search
216215
amadeus.shopping.flight_offers.get(origin='MAD', destination='NYC', departureDate='2019-08-01')
217216
218-
# Flight Choice Prediction
217+
# Flight Choice Prediction
219218
result = amadeus.shopping.flight_offers.get(origin='MAD', destination='NYC', departureDate='2019-08-01').result
220219
amadeus.shopping.flight_offers.prediction.post(result)
221220

amadeus/client/request.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ def __init__(self, options):
7272

7373
self.headers = {
7474
'User-Agent': self.__build_user_agent(),
75-
'Accept': 'application/json, application/vnd.amadeus+json'
75+
'Accept': 'application/json, application/vnd.amadeus+json',
76+
'Content-Type': 'application/vnd.amadeus+json'
7677
}
7778

7879
self.url = self.__build_url()

amadeus/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version_info = (3, 1, 0)
1+
version_info = (3, 2, 0)
22
version = '.'.join(str(v) for v in version_info)

0 commit comments

Comments
 (0)