Closed br0k3V closed 4 months ago
You can get a user's recent scores by using this endpoint function with the "recent" ScoreType
: https://tybug.github.io/ossapi/users.html#ossapi.ossapiv2.Ossapi.user_scores
from ossapi import Ossapi, ScoreType
api = Ossapi(client_id, client_secret)
api.user_scores(7562902, ScoreType.RECENT)
# api.user_scores(7562902, "recent") also works
The latest score should be in the first element of the returned list:
api.user_scores(7562902, "recent")[0]
You can get a user's recent scores by using this endpoint function with the "recent"
ScoreType
: https://tybug.github.io/ossapi/users.html#ossapi.ossapiv2.Ossapi.user_scoresfrom ossapi import Ossapi, ScoreType api = Ossapi(client_id, client_secret) api.user_scores(7562902, ScoreType.RECENT) # api.user_scores(7562902, "recent") also works
The latest score should be in the first element of the returned list:
api.user_scores(7562902, "recent")[0]
Thanks, I'll try this.
Thanks for your help
So I'm continuing from that other issue, How do I get a user's recent score? Something like this, I can't seem to find anything on the documentation.