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

account-v1 getting puuid by_riot_id #231

Open
JavierAlcaraz opened this issue Dec 18, 2023 · 1 comment
Open

account-v1 getting puuid by_riot_id #231

JavierAlcaraz opened this issue Dec 18, 2023 · 1 comment

Comments

@JavierAlcaraz
Copy link

Wich is the correct way of getting the PUUID from account-v1?

I tried this but didn't work:

account_data = lol_watcher.account.by_riot_id(region, game_name=name, tag_line=tag_line)

@Osakah-py
Copy link
Contributor

Hello there!

Please note that account-v1 is not included in LolWatcher; it is actually an endpoint provided by RiotWatcher.

To use it correctly, you should import RiotWatcher in your Python script as follows:

from riotwatcher import RiotWatcher
riot_watcher = RiotWatcher('your-api-key') 

Once you've set up your RiotWatcher instance, you can access the account-v1 API like this :

account_data = riot_watcher.account.by_riot_id(region, game_name="Caps", tag_line="45555")

Note

You will notice that the possible values for region available here are: americas, asia, and europe

Hope it helps!
Osakah <3

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

No branches or pull requests

2 participants