Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-papergame-api

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-papergame-api

Papergame api wrapper

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

node-papergame-api

PaperGame Node js package

Создать апи ключ - https://m.vk.com/app7361871#create_merchant

Установить

npm i node-papergame-api

Использование

const PaperApi = require ('node-papergame-api');
const api = new PaperApi('апи ключ','vk id бота');

Функции

Получить ссылку на перевод

@summa - сумма

let transfer_link = api.get_link(summa);

Получить список переводов

@last_tx_id - номер последнего перевода после которого показать переводы

api.txList(last_tx_id,(err,resp)=>{
if(err) return;
if(resp.length>0){
  console.log('Получено '+resp.length+' транзакций');
}
});

Узнать баланс

@id - чей баланс узнать @cb - ответ от сервера

  api.score(1234 ,(score)=>{
    console.log('Получен баланс: '+score);
  });

Отправить рулоны

api.send(1234, 10000, (res)=>{
  console.log('Результат отправки: '+res['success']);
});

Keywords

FAQs

Package last updated on 03 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc