piastrix-api

1.0.4 • Public • Published

Piastrix API for Node.js

npm version npm downloads license

This module is designed for manage API of Piastrix.

You absolutely need Node.js v6.0.0 or later or this won't work.

Install it from npm

Example

const PiastrixApi = require('piastrix-api');
const PayWay = PiastrixApi.PayWay;
const Currency = PiastrixApi.Currency;
const api = new PiastrixApi({"shop_id": 1, "secret": 'secret'});

// Send request to /withdraw/create with {"amount": 10, "payway": PayWay['qiwi_rub'], "currency": Currency['rub']} params
api.withdraw.create({"amount": 10, "payway": PayWay['qiwi_rub'], "currency": Currency['rub']}).then(console.log).catch(console.error);

Installing

Using npm:

$ npm install piastrix-api

Support

If you use it and you need more api methods, please make an issue and I will help you. Report bugs on the issue tracker

Readme

Keywords

none

Package Sidebar

Install

npm i piastrix-api

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

9.52 kB

Total Files

10

Last publish

Collaborators

  • darkwar123