pseudonym117/Riot-Watcher

Error at league_of_legends.MatchApiV4

JahedulAnowar opened this issue · 2 comments

I tried to get match data:

Lol_watcher = LolWatcher(api_key)
match = LolWatcher.match.by_id(region=region, match_id=id)
print(match)

i get the following error:
AttributeError: 'property' object has no attribute 'by_id'

matchlist_by_account and timeline_by_match also throws same error.

*version 3.1.1.

I did it like this if you didn't find solution as to how to do it.
lol_watcher = LolWatcher("your api key")
match = lol_watcher.match.by_id(my_region, matchId)

Thank you, that was a mistake from my end.