From 9e706c5455ab2acdc053bc695325aa9601a71c59 Mon Sep 17 00:00:00 2001 From: nohkwanok Date: Sun, 7 Apr 2024 17:57:45 +0900 Subject: [PATCH] Fix Anonymous User Error (#6) --- project/app/riot_client.py | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/project/app/riot_client.py b/project/app/riot_client.py index 3c5af77..fe3eacb 100644 --- a/project/app/riot_client.py +++ b/project/app/riot_client.py @@ -13,33 +13,6 @@ class RiotClient: def __init__(self): self.api_key = get_config().riot.api_key - def get_account_by_summoner_name(self, summoner_name) -> requests.Response: - url = f"{KR_API_HOST}/lol/summoner/v4/summoners/by-name/{summoner_name}" - response = requests.get(url, headers={"X-Riot-Token": self.api_key}) - return response - - def get_match_list(self, puuid: str) -> requests.Response: - url = f"{ASIA_API_HOST}/lol/match/v5/matches/by-puuid/{puuid}/ids" - response = requests.get(url, headers={"X-Riot-Token": self.api_key}) - return response - - def get_match(self, match_id: str) -> requests.Response: - url = f"{ASIA_API_HOST}/lol/match/v5/matches/{match_id}" - response = requests.get(url, headers={"X-Riot-Token": self.api_key}) - return response - - def get_champion_masteries_by_puuid_top(self, puuid: str) -> requests.Response: - url = f"{KR_API_HOST}/lol/champion-mastery/v4/champion-masteries/by-puuid/{puuid}/top" - response = requests.get(url, headers={"X-Riot-Token": self.api_key}) - return response - - def get_summoner_by_encrypted_summoner_id( - self, encrypted_summoner_id: str - ) -> requests.Response: - url = f"{KR_API_HOST}/lol/summoner/v4/summoners/{encrypted_summoner_id}" - response = requests.get(url, headers={"X-Riot-Token": self.api_key}) - return response - def get_token( self, redirect_uri: str,