Skip to content

How to obtain user_id? #36

Answered by josh-bone
josh-bone asked this question in Q&A
Discussion options

You must be logged in to vote

If you have your league_id (which be copied from the URL), you can find the user_id for everyone in your league by running:

league_users = LeagueAPIClient.get_users_in_league(league_id=league_id)
for user in league_users:
    print(user.display_name, '\t', user.user_id)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by josh-bone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant