Skip to content

Get package delivery tracking informations from Mondial Relay

Notifications You must be signed in to change notification settings

3z3qu13l/mondial-relay-tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mondial Relay Tracking

Install size npm version Known Vulnerabilities

Get package delivery tracking informations from Mondial Relay
Mondial Relay

Installation

In your application root directory, enter this command to install the connector:

npm install mondial-relay-tracking --save

This installs the module from npm and adds it as a dependency to the application's package.json file.

Method available

getTracking

Returns everything in one object

const trackingAPI = require('mondial-relay-tracking');

// Using Promise
trackingAPI.getTracking(98081708, 35000).then(tracking => {
    console.log(tracking);
});

// Using async/await
console.log(await trackingAPI.getTracking(98081708, 35000));
/*
{
    trackingId: '98081708',
    currentStatus: "Colis en cours d'acheminement",
    duration: 1,
    isComplete: true,
    lastDate: "2022-11-08T10:26:00.000Z",
    startDate: "2022-11-07T15:39:00.000Z",
    history: [{
        datetime: "2022-11-07T15:39:00.000Z",
        text: "Colis en préparation chez l'expéditeur",
        location: undefined
    }, {
        datetime: "2022-11-07T16:31:00.000Z",
        text: 'Prise en charge de votre colis sur notre site logistique de DIJON.',
        location: 'DIJON'
    }, {
        datetime: "2022-11-07T17:55:00.000Z",
        text: "Colis en cours d'acheminement",
        location: undefined
    }, {
        datetime: "2022-11-07T21:37:00.000Z",
        text: 'Prise en charge de votre colis sur notre site logistique de HUB LYON.',
        location: 'HUB LYON'
    }, {
        datetime: "2022-11-08T10:26:00.000Z",
        text: "Colis en cours d'acheminement",
        location: undefined
    }]
}
*/

About

Get package delivery tracking informations from Mondial Relay

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published