1.0.3 • Published 5 months ago

ups-api v1.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

UPS API for Javascript

The Javascript version of the UPS Shipping service.

const upsApi = require("ups-api");

// instance the API client with defaults
const api = new upsApi.API({
    clientId: "myUpsAppClientId",
    clientSecret: "myUpsAppClientSecret"
});

// example: request tracking information
const tracking = await api.getTrackingDetails("7798339175");

Configuration

NameTypeDefaultDescription
UPS_AUTH_URLstr"https://onlinetools.ups.com/"The base auth URL used for the OAuth token request.
UPS_BASE_URLstr"https://onlinetools.ups.com/api/"The base URL used for API requests.
UPS_API_VERSIONstr"v1"The version of the API to use.
UPS_CLIENT_IDstrNoneThe application client ID to obtain the token.
UPS_CLIENT_SECRETstrNoneThe application client secret to obtain the token.
UPS_GRANT_TYPEstr"client_credentials"The application grant type to obtain the token.
UPS_TOKENstrNoneThe token granted by the OAuth request.
UPS_TRANSACTION_SRCstrNoneThe transaction source to be added to request headers.

License

UPS API for Javascript is currently licensed under the Apache License, Version 2.0.

Build Automation

Build Status Build Status GitHub npm Status License

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago

1.0.3

5 months ago

0.4.2

1 year ago

0.4.1

2 years ago

0.3.2

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.3.1

2 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago