-
-
Notifications
You must be signed in to change notification settings - Fork 135
Home
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.
To report an issue or bug, please use the issue tracker. For questions and help, please use the dedicated forum.
There are some examples available in the examples directory.
node-steam-tradeoffer-manager
uses SteamID
objects in a few places. These are objects provided by the SteamID module. You can either use the SteamID
property of the main TradeOfferManager
export, or you can require('steamid')
yourself (if you do the latter, make sure you add steamid
to your package.json).
Example:
var TradeOfferManager = require('steam-tradeoffer-manager');
var SteamID = TradeOfferManager.SteamID;
var sid = new SteamID('[U:1:46143802]');
// do something with it...
Static methods are methods which are called directly as properties of the root TradeOfferManager
object, without it being instantiated.
-
state
- A value fromETradeOfferState
Gets the English name of a value from ETradeOfferState
. Example:
var TradeOfferManager = require('steam-tradeoffer-manager');
console.log(TradeOfferManager.getStateName(3)); // "Accepted"