Skip to content

Ti-webdev/cdek-api

Repository files navigation

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))

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published