2021.11.0 • Published 2 years ago

purplship v2021.11.0

Weekly downloads
11
License
Apache-2.0
Repository
github
Last release
2 years ago

Purplship Node.js Library

Purplship is a Multi-carrier Shipping API that simplifies the integration of logistic carrier services.

Visit next.purplship.com to deploy your private cloud multi-carrier shipping API.

Documentation

See the full Node API docs.

Installation

Install using npm or yarn

npm i purplship
# or 
yarn add purplship

Usage

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

const purplship = require('purplship')('key_...', 'https://instance.purplship.api');

purplship.carriers.list({})
    .then(carriers => console.log(carriers))
    .catch(error => console.error(error));

Or using ES modules and async/await:

import Purplship from 'purplship';
const purplship = Purplship('key_...', 'https://instance.purplship.api');

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

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

Author

Team purplship | hello@purplship.com | purplship.com Daniel K | danielk.developer@gmail.com | danielk.xyz

2021.11.0

2 years ago

2021.10.2

2 years ago

2021.10.1

2 years ago

2021.10.0

2 years ago

2021.7.0

3 years ago

2021.6.0

3 years ago

2021.4.0

3 years ago

2021.2.0

3 years ago

2021.0.0

3 years ago

2020.12.1

3 years ago

2020.12.1-test

3 years ago