1.0.0 • Published 4 years ago

omnidispatch v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

OmniDispatch

Javascript Client SDK for OmniDispatch Server

Getting Started

You need to install OmniDispatch and set API credentials before you get started

Installation

npm i omnidispatch -S

Usage

For sending orders from client app

if (!process.env.SHIPPING_DSN) {
  process.env.SHIPPING_DSN = 'https://shipping.yourdomain.com';
}

const shipping = require('omnidispatch');
const data = [{
  order_code: 'sdsd334d',
  weight: 2
},
{
  order_code: 'sewa542g',
  weight: 12
},
{
  order_code: 'fdsf432r',
  weight: 23
}];

const order = shipping.orderSync(data);