npm

Need private packages and team management tools?Check out npm Orgs. »

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

install

npm i dispatch-science-wrapper

Downloadsweekly downloads

4

version

1.0.1

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability