Skip to content

Javascript Library to simplify access to Travel Intelligence Web Services

Notifications You must be signed in to change notification settings

travel-intelligence/TIjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

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.

Installation

You can install the library with bower:

bower install --save travel-intelligence/TIjs

API

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));
 });

TODO

  • Get list of services
  • Unit Tests

About

Javascript Library to simplify access to Travel Intelligence Web Services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published