Skip to content
Alexander Corn edited this page Dec 18, 2015 · 10 revisions

node-steam-tradeoffer-manager is a node.js module for managing Trade Offers within the Steam platform.

When you require() the module, the TradeOfferManager class is returned.

Support

To report an issue or bug, please use the issue tracker. For questions and help, please use the dedicated subforum in the SteamRE Steam Group.

Examples

There are some examples available in the examples directory.

SteamID

node-steam-tradeoffer-manager uses SteamID objects in a few places. These are objects provided by the SteamID module. Due to potential version mismatches, use the SteamID module exported as a SteamID property from the main module.

Example:

var TradeOfferManager = require('steam-tradeoffer-manager');
var SteamID = TradeOfferManager.SteamID;

var sid = new SteamID('[U:1:46143802]');
// do something with it...

Static Methods

Static methods are methods which are called directly as properties of the root TradeOfferManager object, without it being instantiated.

getStateName(state)

Gets the English name of a value from ETradeOfferState. Example:

var TradeOfferManager = require('steam-tradeoffer-manager');
console.log(TradeOfferManager.getStateName(3)); // "Accepted"
Clone this wiki locally