Skip to content

robincsamuel/node-ups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

UPS Shipping API client for node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published