-
Content Count
9 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
I have no idea... but it works so i'm not complaining
-
vrtgn reacted to a post in a topic: How to list an item on steam market
-
Didn't do anything, sorry. I ended up figuring it out using the request method.
-
No, but I'm getting cookies generated by steam in my response.
-
function sellItem(item, price, sessionID, callback) { var options = { url: 'https://steamcommunity.com/market/sellitem/', headers: { 'Accept': '*/*', 'Origin': 'http://steamcommunity.com', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36 OPR/67.0.3575.130', 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'Host': 'steamcommunity.com', 'Origin': 'https://steamcommunity.com',
-
Here is my updated code! var tradeItems = []; fetch("http://api.steampowered.com/IEconService/GetTradeOffer/v1/?" + "key=XXXXXX" + "&tradeofferid="+tradeID) .then(response => response.json()) .then(tradeInfo => { for(var i = 0; i < tradeInfo.response.offer.items_to_give.length; i++){ var array = tradeInfo.response.offer.items_to_give[i] tradeItems.push(`{"`+array.assetid+`","`+array.appid+`","`+array.contextid+`","`+array.amount+`"}`); console.log(tradeItems); } }); it uses node-fetch
-
I am trying to set cookies for two different bots running in the same file, and when I get to the second bot, the script errors: Error: Access Denied at SteamCommunity.<anonymous> (C:\Users\easto\node_modules\steamcommunity\components\webapi.js:15:20) at Request._callback (C:\Users\easto\node_modules\steamcommunity\components\http.js:67:15) at Request.self.callback (C:\Users\easto\node_modules\request\request.js:185:22) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request.<anonymous> (C:\Users\easto\node_modules\request\request.js:
-
So, I have two clients setup and running on my file. I want to be able to get the contents of a trade on the first bot, and pass those items along to the second bot so that it can make a trade accordingly.
-
Hello, I was using steam web api to get information about a trade, and I want my bot to be able to check what items the user would be receiving, and make a new trade with those same items. I have the code to parse the items to be received, but I am not sure how I would separate each item and create a new trade offer with the information. var url = "http://api.steampowered.com/IEconService/GetTradeOffer/v1/?" + "key=redacted" +"&tradeofferid=3844057934" request({ url: url, json: true }, function (error, response, body) {