Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 760 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 760 Bytes

TI Api Python Wrapper

This project contains a class to communicate with the Amadeus Travel Intelligence Web Services

Usage

The TIAPICommunicator needs to be initialized with a backend:

from travel_intelligence.TIAPICommunicator import TIAPICommunicator
communicator = TIAPICommunicator("https://api.travel-intelligence.com/")

Then we start a session with the user and password:

communicator.start_Session("[email protected]","XXX")

WE can then access to the different service in Travel Intelligence. See dev.travel-intelligence.com for more information:

response = communicator.accessService("api/search_by_search_period",None,{"market":country,"ptype":"q","period":str(year)+"-"+str(quarter),"onds":ond})