0.1.1 • Published 9 years ago

tripcase v0.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

tripcase Build Status

An unofficial TripCase API client.

This uses the internal TripCase mobile API which may change without notice.

Install

$ npm install --save tripcase

Usage

var TripCase = require('tripcase');

var tripcase = new TripCase({
  email: 'user@example.com',
  password: 'supersecret'
});

tripcase.login(function (err, res, body) {
  if (err) throw err;

  tripcase.getTrips(function (err, res, trips) {
    if (err) throw err;
    console.log('upcoming trips', trips);
  });
});

CLI

$ npm install --global tripcase
$ tripcase username password

License

MIT © madmod