mjavad_mllw Posted 23 hours ago Report Posted 23 hours ago Hi im using this logit to check if trade partner has any prohibition or escrow or not const offer = manager.createOffer({tradeLink}); offer.getUserDetails((err, me, them) => { if (err) { return res.status(200).send({ status: 1, tradeBan: true, error: err.message, }); } if (them.escrowDays) { logger(`user has trade escrow days: ${them.escrowDays}`); return res.status(200).send({ status: 1, tradeBan: true, error: 'trade has escrow', }); } but for some reason i got this error: "HTTP error 429" and its for rate limit / too many requests i want to know : 1. is there any other way to check prohibition or escrow in trade execpt the getUserDetails() method? 2. how the taradeoffermanager works and get prohibition data from ? Quote
Dr. McKay Posted 8 hours ago Report Posted 8 hours ago Trade bans can be checked with the GetPlayerBans WebAPI method. Escrow can be checked with the GetTradeHoldDurations WebAPI method. getUserDetails() works by loading the tradeoffer page (using the user's trade link) and scraping the results from the HTML. 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.