itembase
v1.1.1
Published
Thin request-like interface for easy access to the itembase REST API from node.js
Downloads
7
Readme
itembase
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');