3.0.3 • Published 3 years ago

israel-postal-service-api v3.0.3

Weekly downloads
7
License
Apache-2.0
Repository
github
Last release
3 years ago

Israel Postal Service API

An API for Israel postal service - query shipment price easily. Supports both NodeJS and browser environments.

licence npm version Dependencies status Documentation

Installation

npm install --save israel-postal-service-api

Usage

Import library:

import { IPS, Options } from 'israel-postal-service-api';

Define Package Characteristics:

// define package shipment characteristics
let weightInGrams = 20;
let serviceType = Options.AbroadMailOptions.LETTER.shipmentType;
let serviceSubtype = Options.AbroadMailOptions.LETTER.shipmentSubtypes.regular;
let option = serviceSubtype.options.signed;

// initialize service
let postalService = new IPS();

Calculate Shipping Rate:

// calculate package shipping rate asynchronously
let response = await postalService.calculateAbroadShippingRate(
    "Spain", weightInGrams, serviceType, serviceSubtype, option);

// see {@class ResponseParser} API to discover the response structure
console.log(response.getTotalPrice()); 

Supported Environments

  • 💻 Browser (including browserify / webpack based environments such as Angular)
  • 🖥 Node.js

Documentation

Support

If you're having any problem, please raise an issue on GitHub and we'll be happy to help.

Contribute

Before submitting a pull request, please make sure that you include tests, and that jshint runs without any warnings: Download VSCode extension.

Test

Run the test suite by executing:

$ npm test

Note: This API was create as an open source service for makers and entrepreneurs. This is not an official API for Israel Post service.

Author: Benny Megidish.

3.0.3

3 years ago

3.0.2

4 years ago

3.0.1

5 years ago

3.0.0

5 years ago

3.0.0-beta.11

5 years ago

3.0.0-beta.10

5 years ago

3.0.0-beta.9

5 years ago

3.0.0-beta.8

5 years ago

3.0.0-beta.7

5 years ago

3.0.0-beta.6

5 years ago

3.0.0-beta.5

5 years ago

3.0.0-beta.4

5 years ago

3.0.0-beta.3

5 years ago

3.0.0-beta.0

5 years ago

3.0.0-alpha.8

5 years ago

3.0.0-alpha.6

5 years ago

3.0.0-alpha.5

5 years ago

3.0.0-alpha.4

5 years ago

3.0.0-alpha.1

5 years ago

2.2.6

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.10

5 years ago

2.0.8

5 years ago

2.0.4

5 years ago

2.0.2

5 years ago

1.4.1

5 years ago

1.3.1

5 years ago

1.2.1

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.7.5

6 years ago