Socket
Socket
Sign inDemoInstall

suivi-poste

Package Overview
Dependencies
7
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    suivi-poste

Suivre les envois postaux


Version published
Maintainers
1
Created

Readme

Source

suivi-poste

npm badge

Suivre les envois postaux

La Poste fourni en Open Data une API de suivi postal. Ce module permet de consommer cette API.

Les produits supportés sont les suivants :

  • Courriers suivis national
  • Courriers suivis international
  • Colis Colissimo
  • Envois Chronopost

Il faut s'inscrire sur le portail developer.laposte.fr pour générer une clef d'API en mode production.

Documentation des réponses d'API : https://developer.laposte.fr/products/suivi/latest

Installation

$ yarn add suivi-poste

Usage

import { suiviPosteApi } from 'suivi-poste'

const suiviPoste = suiviPosteApi({ token: 'my-api-key' })

const result = await suiviPoste.getTracking('6A15602676300', 'A00000001', '6A15602683841')
console.log(result)

/* =>
{ lang: 'fr_FR',
  scope: 'open',
  returnCode: 200,
  shipment:
   { idShip: '6A15602676300',
     holder: 4,
     product: 'colissimo',
...
*/

License

The MIT license

Keywords

FAQs

Last updated on 23 Jan 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc