itembase

Thin request-like interface for easy access to the itembase REST API from node.js.

Usage no npm install needed!

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

README

itembase Build Status

Thin request-like interface for easy access to the itembase REST API from node.js.

npm install itembase

Usage

The module returns a request instance, which handles authentication and accepts relative itembase API URLs.

var itembase = require('itembase')('access_token');

itembase('/v1/users/:user_id/transactions', function(err, response, body) {
    console.log(body);
});

It's also possible to access the sandbox API.

var sandbox = require('itembase').sandbox('access_token');

License

MIT