ChallengesApiV1¶
-
class
riotwatcher._apis.league_of_legends.
ChallengesApiV1
(base_api: riotwatcher._apis.BaseApi.BaseApi)¶ This class wraps the Challenges-v1 endpoint calls provided by the Riot API.
See https://developer.riotgames.com/api-methods/#lol-challenges-v1 for more detailed information
Initialize a new ChallengesApiV1 which uses the provided base_api.
Parameters: base_api (BaseApi) – the root API object to use for making all requests. -
by_puuid
(region: str, puuid: str)¶ Returns player information with list of all progressed challenges.
Parameters: - region (string) – The region to execute this request on
- puuid (string) – The puuid.
Returns: PlayerInfoDto
-
challenge_config
(region: str, challenge_id: int)¶ Get challenge configuration.
Parameters: - region (string) – The region to execute this request on
- challenge_id (long) – The ID of the challenge.
Returns: ChallengeConfigInfoDto
-
config
(region: str)¶ List of all basic challenge configuration information.
Parameters: region (string) – The region to execute this request on Returns: ChallengeConfigInfoDto
-
leaderboards
(region: str, challenge_id: int, level: str)¶ Return top players for each level. Level must be MASTER, GRANDMASTER or CHALLENGER.
Parameters: - region (string) – The region to execute this request on
- challenge_id (long) – The ID of the challenge.
- level (string) – The level to get the leaderboard for.
Returns: List[ApexPlayerInfoDto]
-
percentiles
(region: str)¶ Map of level to percentile of players who have achieved it.
Parameters: region (string) – The region to execute this request on Returns: Map[Long, Map[Integer, Map[Level, Double]]]
-
percentiles_by_challenge_id
(region: str, challenge_id: int)¶ Map of level to percentile of players who have achieved it.
Parameters: - region (string) – The region to execute this request on
- challenge_id (long) – The ID of the challenge.
Returns: Map[Level, double]
-