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)
In [5]:
response = communicator.accessService("api/ss_time_evolutions",None,{"market":"FRANCE","onds":"*-*"})
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 [ ]: