1.0.4 • Published 6 years ago

piastrix-api v1.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

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

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago