0.3.3 • Published 8 years ago

splitwise-node v0.3.3

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

splitwise-node

Circle CI

A javascript wrapper for the Splitwise API.

Install with npm

npm install splitwise-node

Usage

  • Get your ConsumerToken and ConsumerSecret from Splitwise
  • Get an authorization url to send your user to:
var AuthApi = require('splitwise-node');

var userOAuthToken, userOAuthTokenSecret;
var authApi = new AuthApi(ConsumerKey, ConsumerSecret);
var userAuthUrl = authApi.getOAuthRequestToken()
    .then(({ oAuthToken, oAuthTokenSecret }) => {
        [userOAuthToken, userOAuthTokenSecret] = [oAuthToken, oAuthTokenSecret];
        return api.getUserAuthorisationUrl(oAuthToken);
    });
  • Get your user to authorize your token by visiting the authorization url User authorization screenshot
  • Now you can api away
var splitwiseApi = authApi.getSplitwiseApi(userOAuthToken, userOAuthTokenSecret);

License

MIT

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.0

8 years ago