Jump to content
McKay Development

Error: No API-Key set (yet)


Recommended Posts

The trade is successfully sent and confirmed, but then problems arise and I don’t understand why, if the cookies are set correctly

async function SteamTrade(client, account, cookies) {
    const community = new SteamCommunity();
    community.setCookies(cookies);
    const manager = new TradeOfferManager({
        steam: client,
        community: community,
        language: 'en',
    });
 
await confirmTradeOffer(status, community, account.identity_secret);
                manager.getOffer(offer.id, (err, offerDetails) => {
                    if (err) {
                        console.error(`${offer.id}: ${err}`);
                        reject(err);
                    } else {
                        console.log(`${offer.id} `);
                        const itemsToGive = offerDetails.itemsToGive;
                        console.log( itemsToGive);
                        resolve({offerDetails, itemsToGive});
                    }
                });
the error occurs after this block of code
Link to comment
Share on other sites

Posted (edited)
Thanks for the answer, one more question, without an api key it’s not possible to use the getOffer method to view information about sent items in a trade? 

And if not, is it possible to find out information about a trade without an API key?

Edited by kast0l
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...