0.0.1 • Published 2 years ago

easydonate-on-js v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

easydonate-on-js

The unofficial easydonate.ru API wrapper for JavaScript (ES6 Module).

Based on node-fetch API.

This library is unstable! Use it at your own risk! However, we use SemVer, so you can be sure that the API will not introduce breaking changes without a major version bump (1.*.* > 2.*.*).

If you encounter problems using this library, please, do not bug EasyDonate, instead create an issue here.

*Note: This library is not meant for frontend use! You WILL leak your shop key.*

Usage

// ES6
import { EasyDonate } from 'easydonate-on-js';

const shopKey = 'abcde123abcde123abcde123abcde123'; // Your shop key
const easyDonate = new EasyDonate(shopKey);

// Get shop info
let shopInfo = await easyDonate.shop();
console.log(shopInfo.name); // Will print the shop name

На русском

0.0.1

2 years ago