FedEx tracking
npm install @mia-burton/fedex-api-jsA Node.js module for fedex API such as:
- tracking by tracking number
- generate shipment labels
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?
})
`$3
`
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`