Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
/ karrio-node Public archive

Universal Shipping API Node library (Canada Post, DHL, FedEx, UPS, Purolator and more)

License

Notifications You must be signed in to change notification settings

karrioapi/karrio-node

Repository files navigation

This repository has been archived but the karrio docs have been moved to a monorepo https://github.com/karrioapi/karrio

Karrio Node/JS/TS Library

Karrio is a universal Shipping API that simplifies the integration of logistic carrier services.

Visit karrio.io to deploy your private cloud multi-carrier shipping API.

Documentation

See the full Node API docs.

Installation

Install using npm or yarn

npm i karrio
# or 
yarn add karrio

Usage

The package needs to be configured with your account's API key, which is available in the Karrio Dashboard.

const karrio = require('karrio')('key_...', 'https://api.karrio.io');

karrio.carriers.list()
    .then(carriers => console.log(carriers))
    .catch(error => console.error(error));

Or using ES modules and async/await:

import Karrio from 'karrio';
const karrio = Karrio('key_...', 'https://api.karrio.io');

(async () => {
  const carriers = await karrio.carriers.list();

  console.log(carriers);
})();

Author

Team Karrio | hello@karrio.io | karrio.io

About

Universal Shipping API Node library (Canada Post, DHL, FedEx, UPS, Purolator and more)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published