Multi-carriers Shipping API Node library (Canada Post, DHL, FedEx, UPS, Purolator and more)
npm install karrioKarrio 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.
See the full Node API docs.
``bash`
npm i karrioor
yarn add karrio
The package needs to be configured with your account's API key, which is available in the Karrio Dashboard.
`javascript
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:
`javascript
import Karrio from 'karrio';
const karrio = Karrio('key_...', 'https://api.karrio.io');
(async () => {
const carriers = await karrio.carriers.list();
console.log(carriers);
})();
``
Team Karrio | hello@karrio.io | karrio.io