pocketsmith
Version:
PocketSmith api wrapper for Node.
34 lines (22 loc) • 905 B
Markdown
PocketSmith Node API
====================
[](https://www.npmjs.com/package/pocketsmith)
[](https://travis-ci.org/maraisr/pocketsmith)
[](https://codecov.io/github/maraisr/pocketsmith)
> Work In Progress
```sh
npm i pocketsmith
```
```js
var PocketSmith = require('pocketsmith');
var Smith = new PocketSmith('my-token'); // Obtain a token via https://developers.pocketsmith.com/
// Scoped to the `me` endpoint
Smith.init().then(function(User) {
User.Accounts.getAll(function(Accounts) { ... });
});
// -- or --
Smith.Accounts.getAllByUser(1, function(Accounts) { ... });
// List of api endpoints coming soon...
```