TI.js follows the noBackend philosophy and allows you to use in an easier way the Travel Intelligence Web Services. The whole Travel Intelligence API is described in the official Web site: http://dev.travel-intelligence.com/
The library is now fully compliant with Requirejs.
You can install the library with bower:
bower install --save travel-intelligence/TIjs
Use configure to change the backend (it uses beta-api as the default backend):
TI.configure("https://api.travel-intelligence.com/")
Use login to log into the Travel Intelligence Platform:
TI.login($("#email").val(), $("#pass").val(), function(token) {
alert("Logged in")
})
Use logout to log out:
TI.logout(function() {
alert("logged out")
})
Use callWS to call the service:
TI.callWS("api/v1/airline_searches",{q:"iberia",limit:3},function(msg) {
alert(JSON.stringify(msg));
});
- Get list of services
- Unit Tests