Skip to content

Track PostNord letters, parcels and pallets by their item ID number

License

Notifications You must be signed in to change notification settings

gillstrom/postnord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postnord Build Status

Track PostNord letters, parcels and pallets by their item ID number

CLI

$ npm install --global postnord
$ postnord --help

  Usage
    $ postnord [ID]

  Options
    -a, --apikey    PostNord API key
    -l, --locale    Default is en. Allowed values are en, sv, no, da and fi

  Example
    $ postnord 12371563697SE

Install

$ npm install --save postnord

Usage

const postnord = require('postnord');

postnord('12371563697SE', {apikey: 'aa956a2d13a54a152dba849b76288cf4'}).then(result => {
	console.log(result);
	//=> {'TrackingInformationResponse': {'shipments': [ ...}
});

API

postnord(ID, [options])

Returns a promise that resolves in to an object.

ID

Required
Type: string

The item ID to track.

options

apikey

Type: string
Default: My own, please use your own.

The unique PostNord API key.

locale

Type: string
Default: 'en'

Returns the result in different languages. Allowed values are 'en', 'sv', 'no', 'da' and 'fi'.

License

MIT © Andreas Gillström

About

Track PostNord letters, parcels and pallets by their item ID number

Resources

License

Stars

Watchers

Forks

Packages

No packages published