1.0.0 • Published 4 years ago
omnidispatch v1.0.0
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);
1.0.0
4 years ago