Jump to content
McKay Development

Sampli

Member
  • Content Count

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. 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
  2. Nevermind, I should've read the docs. I need to add $5 to the account.
  3. 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:1161:10) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at Gunzip.<anonymous> (C:\Users\easto\node_modules\request\request.js:1083:12) at Object.onceWrapper (events.js:313:30) The second bot successfully logins, it only errors when setting the cookies for the second bot.
  4. 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.
  5. 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) { if (!error && response.statusCode === 200) { console.log(body.response.offer.items_to_receive); }}); Any help is appreciated!
×
×
  • Create New...