postil-status

0.2.0 • Public • Published

Israel Post Package Status Checker

What is it?

About the package

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.

Usage

Add postil-status you your package.json file and install it via npm install.

$ npm install postil-status --save-dev

Example code

const PostILStatus = require('postil-status');

let PostIL = new PostILStatus(),
    trackingID = 'EE12345679890PL';

PostIL.getStatus(trackingID).then(packageModel => {
    console.log(packageModel);
    console.log(packageModel.getDescription());
});

Language override

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'});

Building

Clone this repo (or fork it)

$ git clone git@github.com:landrover/postil-status.git

Install deps

$ npm install

Todo

  • fix tests
  • coverage missing at the model, package.js.
  • comments

Package Sidebar

Install

npm i postil-status

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

12.8 kB

Total Files

8

Last publish

Collaborators

  • landrover