yo man thank u very much u sve me a lot of hassle how u found this tho?
but when i use this the webapi is null its not getting the webapi correctly
client.on('webSession', async (sessionID, cookies) => {
manager.setCookies(cookies, function(err) {
if (err) {
console.log(red,err);
process.exit(1); // Fatal error since we couldn't get our API key
return;
}
console.log(green,"Got API key: " + manager.apiKey);
webapi=manager.apiKey
//fetchActiveTradeOffers(); // Call the function
}
);