postil-status
is a node module, distributed via NPM and allows you to retrieve data from PostIL (http://www.postil.com) about you packages, supporting both registered mail and EMS. API is supporting all languages by 4 languages: EN, HE, AR and RU. (Default: EN)
Responses are returned as a Promise and make it easy to chain and track.
Add postil-status
you your package.json file and install it via npm install.
$ npm install postil-status --save-dev
const PostILStatus = require('postil-status');
let PostIL = new PostILStatus(),
trackingID = 'EE12345679890PL';
PostIL.getStatus(trackingID).then(packageModel => {
console.log(packageModel);
console.log(packageModel.getDescription());
});
To specify for the API a specific specific response language, it should passed as the first property for the constructor.
let PostIL = new PostILStatus({language: 'HE'});
Clone this repo (or fork it)
$ git clone git@github.com:landrover/postil-status.git
Install deps
$ npm install
- fix tests
- coverage missing at the model, package.js.
- comments