Pull trade offer ID directly from listing page

This commit is contained in:
Alexander Corn
2016-09-08 19:23:15 -04:00
parent 20785ee92b
commit ce4d7ae026
3 changed files with 29 additions and 17 deletions

View File

@@ -10,6 +10,12 @@ require('util').inherits(SteamCommunity, require('events').EventEmitter);
module.exports = SteamCommunity;
SteamCommunity.SteamID = SteamID;
SteamCommunity.ConfirmationType = {
// 1 is unknown, possibly "Invalid"
"Trade": 2,
"MarketListing": 3
// 4 is opt-out or other like account confirmation?
};
function SteamCommunity(options) {
options = options || {};