This project contains a class to communicate with the Amadeus Travel Intelligence Web Services
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})