trade-opskins-remote-manager
v1.0.2
Published
Trade Opskins Remote Manager for Node.js
Downloads
11
Maintainers
Readme
Trade Opskins Remote Manager for Node.js (ExpressTrade Remote Manager)
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