dispatch-science-wrapper

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i dispatch-science-wrapper

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

7.1 kB

Total Files

7

Last publish

Collaborators

  • designerdevil