dispatch-science-wrapper
v1.0.1
Published
Dispatch science wrapper for node
Downloads
3
Readme
Dispatch Science node.js bindings
Installation
npm install dispatch-science-wrapper
API Overview
Every resource is accessed via your ds
instance:
var ds = require('dispatch-science-wrapper')({authKey: '<YOUR BASIC AUTH KEY>', account: '<DASHBOARD>'});
Every resource method returns a promise, so you don't have to use the regular callback. E.g.
// Fetch Order :
ds.orders.fetch('ORDER_ID').then(function (res) {
console.log(res);
}).catch(function (err) {
console.log(err)
});
Currently this wrapper supports the Order API
create
fetch
delete
update
status
hold
charges