Skip to content

darkwar123/node-piastrix-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Piastrix API for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published