Skip to content
This repository was archived by the owner on May 27, 2023. It is now read-only.

johnbailon/loadcentraljs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Load Central Javascript Client

LoadCentral

$ npm install loadcentral

app.js

var LoadCentral = require("./index");
var uid = process.env.LOADCENTRAL_UID;
var password = process.env.LOADCENTRAL_PASSWORD;
var rrn = "BMP" +  parseInt(Math.random() * (1000000 - 1000) + 1000);

var loadCentral = new LoadCentral({uid: uid, password: password});
loadCentral.sell("ZTEST1","639171234567",rrn).then(function(r) {console.dir(r)});
loadCentral.inquire(rrn).then(function(r) {console.dir(r)});
$ node app.js

TEST

$ npm install -g mocha
$ LOADCENTRAL_UID=<uid> LOADCENTRAL_PASSWORD=<password mocha   

TO DO

  • parse error codes

About

Load Central Javascript Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published