Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
israel-postal-service-api
Advanced tools
Readme
An API for Israel postal service - query shipment price easily. Supports both NodeJS and browser environments.
npm install --save israel-postal-service-api
import { IPS, Options } from 'israel-postal-service-api';
// 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 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());
If you're having any problem, please raise an issue on GitHub and we'll be happy to help.
Before submitting a pull request, please make sure that you include tests, and that jshint runs without any warnings: Download VSCode extension.
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.
FAQs
Israel postal office pricing calculator
The npm package israel-postal-service-api receives a total of 27 weekly downloads. As such, israel-postal-service-api popularity was classified as not popular.
We found that israel-postal-service-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.