0.4.5 • Published 6 years ago

splitwise-node-rn v0.4.5

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

splitwise-node-rn

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(({ token, secret }) => {
        [userOAuthToken, userOAuthTokenSecret] = [token, secret];
        return api.getUserAuthorisationUrl(token);
    });
  • 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.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago