1.0.5 • Published 4 years ago

node-ups v1.0.5

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Node-UPS

Javascript client for UPS JSON apis.

Usage

const UPS = require('node-ups');

const ups = new UPS({
  isSandbox: true,
  username: 'UPS_ACCOUNT_USERNAME',
  password: 'UPS_ACCOUNT_PASSWORD',
  licenseNumber: '<UPS_ACCESS_KEY>',
});

try {
  const shipment = await ups.shipment.create(shipmentPayload);
} catch ({ UPSError }) {
  console.log(UPSError.response.errors);
}

TODO

  • Add more APIs.
  • Use @jsdoc to document APIs.
1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago