Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

courier_tracking_fastway

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

courier_tracking_fastway

Courier tracking from provided connote for Fastway

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

courier_tracking_fastway

Gets tracking information for a Fastway connote and return normalized json response.

Build Status

Usage
const fastway_tracker = require('courier_tracking_fastway');

fastway_tracker("API_KEY", "CONNOTE", (err, r) => {
  if (err) {
    console.log(err);
  } else {
    console.log(r);
  }
});

A valid result will return a response like

{
    connote: 'VA00112800000',
    statusCode: 200,
    courier: 'Fastway',
    status: 'Your parcel has been passed onto a local delivery agent who\'ll complete your delivery.',
    pickedUp: true,
    pickedupAt: {
        date: 'Sep 21, 2017',
        time: '4:00pm'
    },
    delivered: false,
    deliveredAt: null,
    signature: null,
    trackingLink: 'https://www.fastway.com.au/tools/track/?l=VA0011280000',
    activity: [{
            date: 'Sep 22, 2017',
            time: '1:15pm',
            action: 'Passed to local delivery agent',
            location: 'Sydney'
        },
        {
            date: 'Sep 22, 2017',
            time: '1:15pm',
            action: 'Passed to local delivery agent',
            location: 'Sydney'
        },
        {
            date: 'Sep 22, 2017',
            time: '1:13pm',
            action: 'Passed to local delivery agent',
            location: 'Melbourne'
        },
        {
            date: 'Sep 21, 2017',
            time: '4:00pm',
            action: 'Picked Up',
            location: 'Melbourne'
        }
    ]
}

An error result will look like:

{
  connote: "BLAHBLAH",
  statusCode: 500,
  message: { error: "Invalid Fastway connote" }
}
Command Line testing

There is a command line script livetest.js that can be run to get responses in the terminal.

Usage for this is: node livetest.js apikey connote

Installation
npm install courier_tracking_fastway

or

yarn add courier_tracking_fastway
Licence

MIT

Keywords

FAQs

Package last updated on 17 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc