Skip to content
Alexander Corn edited this page May 15, 2015 · 10 revisions

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

It's currently a work-in-progress.

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