trade-opskins-remote-manager

1.0.2 • Public • Published

Trade Opskins Remote Manager for Node.js (ExpressTrade Remote Manager)

npm version npm downloads license

This module is designed to be a completely self-contained remote manager for ExpressTrade.

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

Install it from npm

Example

const RemoteManager = require('trade-opskins-remote-manager').RemoteManager;
const RemoteClient = require('trade-opskins-remote-manager').RemoteClient;
 
// Creates remote manager to listen events
const manager = new RemoteManager({"options": [{
    "uid": "123123",
    "pollInterval": 10000,
    "cancelTime": 3 * 60 * 1000,
    "apiKey": '67ce4105d1b1d33232dc22e215756d',
    "sharedSecret": 'VPWKWOKFHEUHWKEIB2W',
}]});
 
// Creates client, connect to remote server
const client = new RemoteClient({"uids": ['123123']});
// Send request to first manager (pass uid in getManager() to specify TradeOpskinsManager)
client.getManager().getInventory().then(console.log).catch(console.error);

For more examples visit this link.

Installing

Using npm:

$ npm install trade-opskins-remote-manager

Support

Report bugs on the issue tracker

Package Sidebar

Install

npm i trade-opskins-remote-manager

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

11.8 kB

Total Files

10

Last publish

Collaborators

  • darkwar123