Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get friends list #50

Closed
helsyQ opened this issue Nov 3, 2017 · 2 comments
Closed

Cannot get friends list #50

helsyQ opened this issue Nov 3, 2017 · 2 comments

Comments

@helsyQ
Copy link

helsyQ commented Nov 3, 2017

Using this code, i can get user name, user level, but can't get user's friends list, getting error steamapi.errors.APIUnauthorized: This API is not accessible to you.

import steamapi
from steamapi import core, user

steamapi.core.APIConnection(api_key="<api key>", validate_key=True)

print(steamapi.user.SteamUser(<steamid>)

steam_user = user.SteamUser(userid=<steamid>)

print(steam_user.level)
print(steam_user.friends)
@helsyQ
Copy link
Author

helsyQ commented Nov 3, 2017

Actually, found a way to fix it by setting profile status to open. But how can i get list of ongoing invites to friends ?

@smiley
Copy link
Owner

smiley commented Nov 3, 2017

You can't get any info that isn't public, like friend requests/invites. Only profile data and some game stats. (E.g.: achievements)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants