@mia-burton/fedex-api-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

fedex-api-js

A Node.js module for fedex API such as:

  • tracking by tracking number
  • generate shipment labels

Usage

First of all you need to register to FedEx Develop portal and register an App in order to get the FedEx-API-Key and FedEx-API-Secret.

Javascript

const { Tracking } = require('@mia-burton/fedex-api-js')
const fedex = new Tracking(CLIENT_ID, CLIENT_SECRET, SANDBOX, VERSION?)

// Get tracking order information
fedex.tracking({
  trackingNumber: TRACKING_NUMBER,
  language: LANGUAGE?
})

Typescript

import { Tracking } from '@mia-burton/fedex-api-js'
const fedex = new Tracking(CLIENT_ID, CLIENT_SECRET, SANDBOX, VERSION?)

// Get tracking order information
fedex.tracking({
  trackingNumber: TRACKING_NUMBER,
  language: LANGUAGE?
})

Test

Add the .env file (following .env.sample and FedEx testing ENV documentation) and than call yarn run test

Readme

Keywords

Package Sidebar

Install

npm i @mia-burton/fedex-api-js

Weekly Downloads

18

Version

1.0.2

License

MIT

Unpacked Size

79.1 kB

Total Files

63

Last publish

Collaborators

  • paologf
  • gdg-mb
  • antoniocapizzi-miaburton
  • rtmb