Skip to content

louy/appintheair-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

App In The Air

Travis Codecov npm

A javascript SDK for the App in the Air API.

This package is written in TypeScript and most of the code is documented.

Usage:

const client_id = '';
const client_secret = '';
const sdk = new AppInTheAir({client_id, client_secret});
const {access_token} = await sdk.getUserlessAccessToken({scope: 'user_flights'});
const {flights} = await sdk.getUserProfile({access_token, user_id: '123'});