pocketsmith

PocketSmith api wrapper for Node.

Usage no npm install needed!

<script type="module">
  import pocketsmith from 'https://cdn.skypack.dev/pocketsmith';
</script>

README

PocketSmith Node API

NPM version Travis Codecov

Work In Progress

Installation

npm i pocketsmith

Usage

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...