1.0.2 • Published 6 years ago

trade-opskins-remote-manager v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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