cdek-api
v0.0.2
Published
CDEK API For JavaScript
Downloads
1
Readme
CDEK API For JavaScript
Important! NOT READY YET!!!1
DO NOT USE ANYWARE
IF YOU GOT AN ERROR I GUESS CDEK IS DOWN AGAIN ...
Install
npm install cdek-api
Importing library
NodeJS
const CdekApi = require('cdek-api/dist/lib/cdek-api.js').default
Browser
import Cdek from 'cdek-api'
Usage
const cdek = new CdekApi(CDEK_ACCOUNT, CDEK_SECURE_PASSWORD)
Promise.resolve().then(async () => {
const response = await cdek.statusReport({
_DispatchNumber: '0000000000'
})
console.log(response.Order)
}).catch(error => console.error(error))