Giter Club home page Giter Club logo

ups-api-js's Introduction

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

Name Type Default Description
UPS_AUTH_URL str "https://onlinetools.ups.com/" The base auth URL used for the OAuth token request.
UPS_BASE_URL str "https://onlinetools.ups.com/api/" The base URL used for API requests.
UPS_API_VERSION str "v1" The version of the API to use.
UPS_CLIENT_ID str None The application client ID to obtain the token.
UPS_CLIENT_SECRET str None The application client secret to obtain the token.
UPS_GRANT_TYPE str "client_credentials" The application grant type to obtain the token.
UPS_TOKEN str None The token granted by the OAuth request.
UPS_TRANSACTION_SRC str None The 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

ups-api-js's People

Contributors

3rdvision avatar beemargarida avatar gcandal avatar hugo-gomes avatar joamag avatar joao-conde avatar joaofsl avatar marcusviniciusnascimento avatar mbsmooth avatar rekicho avatar simaob avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.