-
Notifications
You must be signed in to change notification settings - Fork 29
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
Link to steam #142
Comments
The "reference implementation" in the python api is here: https://github.com/FAForever/api/blob/develop/api/users_route.py#L366-L471 We've decided to explicitly require ownership of FA since it is required for FAF, making no exceptions for people with "non-standard setups" (aka people who pirated the game, with a tiny amount of exceptions). It has a small problem in the steam response parsing that I haven't gotten around to fix yet - if steam_req.status_code == 200:
try:
steam_rep = steam_req.json()
if steam_rep['response']['game_count'] > 0:
for game in steam_rep['response']['games']:
if game['appid'] == FA_APPID:
found_game = True
break
except:
logger.exception('Steam request parsing failed for steamid={}, user_id={}'.format(steamID, user_id))
You can debug the steam api using curl:
You can get a STEAMAPIKEY for testing here: http://steamcommunity.com/dev/apikey Please note that there's pretty heavy caching on the steam api, so changes you make to e.g. the public visibility of a profile you're testing against may not have an effect until several minutes later. |
Needs testing on a proper test server in combination with the website. |
No description provided.
The text was updated successfully, but these errors were encountered: