Hello. I make a bot to check if a trade is accepted by a person.

offers.getOffer({ tradeofferid: row[i].tradeid2.toString() }, function(error, body) { if (error) { console.log('er 0'); weblogon(); return; } console.log(body); }); 

row[i].tradeid2.toString() - is and returns the correct value of the current trade.

There are no errors, just console.log(body); displays { response { } } . But the point is that with my first account it is work, and there is a callback, and with the other two it is not. I have already checked everything you can. Not one account has a bot in friends, everyone has their inventory.

What could be a mistake or how to get an answer from all the tradeid ?

    1 answer 1

    The error was that the API key for authorization was not generated on the bot account. New api key helped.