In [1]:
from travel_intelligence.TIAPICommunicator import TIAPICommunicator
import json
import jupyterviz

In [2]:
jupyterviz.secretInput("password")


Out[2]:

In [3]:
communicator = TIAPICommunicator("https://api.travel-intelligence.com/")

In [4]:
communicator.start_Session("sebastien.perez@amadeus.com",password)


https://api.travel-intelligence.com/api/v1/session
sznAczXzpnkJMf5Zd5Bh

In [5]:
response = communicator.accessService("api/ss_time_evolutions",None,{"market":"FRANCE","onds":"*-*"})


https://api.travel-intelligence.com/api/ss_time_evolutions?onds=%2A-%2A&market=FRANCE

In [6]:
jupyterviz.viz(type="json",data=response)


Out[6]:

In [7]:
toplot = map(lambda e: {"Date":e[0],"Value":e[1]},response["ss_time_evolutions"][0]['time_evolution'])

In [10]:
jupyterviz.viz(type="json",data=toplot)


Out[10]:

In [9]:
jupyterviz.viz(type="calendarheatmap",data=toplot,width=800,height=100)


Out[9]:

In [ ]: