Jump to content
McKay Development

can't get apikey with manager.apiKey


Recommended Posts

 

 

i am trying to use apikey to check friends list, when people send me check on steam messagebox

but i today i find my checklink and find apikey is null

but it works before

 

i find the answer at here :That's the point. Enabling useAccessToken disable fetching an API key.

 

Edited by venfiw
Link to comment
Share on other sites

11 hours ago, venfiw said:

 

 

i am trying to use apikey to check friends list, when people send me check on steam messagebox

but i today i find my checklink and find apikey is null

but it works before

 

i find the answer at here :That's the point. Enabling useAccessToken disable fetching an API key.

 

just use the getwebapi method in other libraries like node steam community
 

    async function getWebApiKey() {
        return new Promise((resolve, reject) => {
            community.getWebApiKey((err, key) => {
                if (err) {
                    reject(err);
                } else {
                    webapi=key
                    console.log(green,"Got API key: " + webapi);
                    resolve(key);
                }
            });
        });
    }
Edited by TheMaster
added code
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...