0.2.0 • Published 3 years ago

postil-status v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

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
0.2.0

3 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago