1.0.1 • Published 5 years ago

dispatch-science-wrapper v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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