spock Posted March 20, 2016 Report Posted March 20, 2016 I have a web app that allows users to sign in through steam and I store their user information and session id in my db after pulling their info from steam. I can also pull their inventory data. I'm trying to make it so users can send trade requests to my bots through my web app (not through the steam gui) as long as they are authed in. I have users trade url and token as well as the inventory items (id and app id). How can I leverage node steam trade offer manager to accomplish this? if at all? I know some websites do this (eg: csgolotto.com) etc. I Quote
Dr. McKay Posted March 21, 2016 Report Posted March 21, 2016 So basically you want to show a user their inventory on your site, and have them pick items from their inventory, then have your bots send a trade offer for those items? Quote
spock Posted March 21, 2016 Author Report Posted March 21, 2016 So basically you want to show a user their inventory on your site, and have them pick items from their inventory, then have your bots send a trade offer for those items? Yeah, that's the workflow I came up with on paper. Essentially, have the user select items from their inventory (I'm assuming you just need the item id?). Send the list of items to the backend, assign a bot to the user, have the bot create an offer trade with the users list of the item id's that the previously sent. The problem I encounter is do I need to first send a friend request to webpp/user before I can make a trade offer? Can't make a trade offer without being friends correct? Quote
Dr. McKay Posted March 21, 2016 Report Posted March 21, 2016 You'll want to prompt the user for their trade URL, then use the token from that URL to authenticate the trade offer. Quote
spock Posted March 21, 2016 Author Report Posted March 21, 2016 Ah that's one way to do it. I'm curious because csgolotto, for examble, has your trade url when you click on your profile. However, I've never shared my trade url with them before. Quote
Dr. McKay Posted March 21, 2016 Report Posted March 21, 2016 You must have, or they obtained it from another source where you previously shared it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.