emspost
This is a NodeJS library for EMS Russian Post API. Get more about the API.
Install
npm install emspost --save
Example
var emspost = ;emspost
API Methods
Get countries
Example:
emspost
Result:
[
...
{name: 'РОССИЯ', code: 'RU'},
...
]
Get regions
Example:
emspost
Result:
[
...
{name: 'АДЫГЕЯ РЕСПУБЛИКА', code: 'region--respublika-adygeja'},
...
]
Get cities
Example:
emspost
Result:
[
...
{name: 'АБАКАН', code: 'city--abakan'},
...
]
Get max weight
Example:
emspost
Calculate delivery price
Method has one argument CalculateProperty
that contains the following properties (see more about these properties):
{
from?:string,
to:string,
weight:number,
type:string
}
Example:
emspost
Result:
{
price: 680,
period: {
max: 3,
min: 2
}
}