2020.12.0 • Published 3 years ago

@purplship/purplship v2020.12.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Purplship Node.js Library

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

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

Documentation

See the full API docs.

Installation

Install using NPM or Yarn

npm i @purplship/purplship
# or 
yarn add @purplship/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');
const purplship = new Purplship('API_KEY', 'https://instance.purplship.api/v1');

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 = new Purplship('API_KEY', 'https://instance.purplship.api/v1');

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

  console.log(carriers);
})();
2020.12.1-test

3 years ago

2020.12.1

3 years ago

2020.12.0-rc

3 years ago

2020.12.0

3 years ago

2020.11.0

3 years ago

2020.11.0-beta

3 years ago

2020.10.0

4 years ago

2020.9.0

4 years ago

2020.9.0-beta4

4 years ago

2020.9.0-beta3

4 years ago

2020.9.0-beta2

4 years ago

2020.9.0-beta1

4 years ago

2020.9.0-beta

4 years ago

2020.9.0-alpha2

4 years ago

2020.9.0-alpha1

4 years ago

2020.9.0-alpha

4 years ago