Skip to content

Commit d6c31db

Browse files
committed
feat(utils): Implement function to get awards from RetroAchievements API
1 parent 3a15bc7 commit d6c31db

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

utils/api.py

+8
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,11 @@ def get_last_game_played(username):
116116
'c': 1 # Pegando apenas o último jogo jogado
117117
}
118118
return call_ra_api(endpoint, params)
119+
120+
# Funçao para consultar as premições do jogador.
121+
def get_awards(username):
122+
endpoint = "API_GetUserAwards.php"
123+
params = {
124+
'u': username
125+
}
126+
return call_ra_api(endpoint, params)

0 commit comments

Comments
 (0)