Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

trade-opskins-remote-manager

darkwar1237MIT1.0.2

Trade Opskins Remote Manager for Node.js

opskins, expresstrade, trade, tradeoffers, manager

readme

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