Skip to content

Commit

Permalink
Added first Intelligence method top_destinations
Browse files Browse the repository at this point in the history
  • Loading branch information
adilkhash committed Sep 27, 2016
1 parent 21ff759 commit 0281b9e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions amadeus/amadeus.py
Expand Up @@ -151,3 +151,15 @@ def schedule_search(self, **params):
service_url = "{url}/{path}".format(
url=self.api_url, path='schedule-search')
return self.make_request(service_url, **params)


class TravelIntelligence(Transport):
def __init__(self, api_key, api_url=API_URL):
super(TravelIntelligence, self).__init__(
api_key=api_key, api_url=api_url)
self.api_url = "{api_url}/travel-intelligence".format(api_url=api_url)

def top_destinations(self, **params):
service_url = "{url}/{path}".format(
url=self.api_url, path="top-destinations")
return self.make_request(service_url, **params)

0 comments on commit 0281b9e

Please sign in to comment.