Riot Watcher

class riotwatcher.RiotWatcher(api_key: str, timeout: int = None, rate_limiter: riotwatcher.RateLimiter.RateLimiter = <riotwatcher.Handlers.RateLimit.BasicRateLimiter.BasicRateLimiter object>, deserializer: riotwatcher.Deserializer.Deserializer = <riotwatcher.Handlers.DictionaryDeserializer.DictionaryDeserializer object>)

RiotWatcher class is intended to be the main interaction point with the generic Riot APIs.

Initialize a new instance of the RiotWatcher class.

Parameters:
  • api_key (string) – the API key to use for this instance
  • timeout (int) – Time to wait for a response before timing out a connection to the Riot API
  • rate_limiter (RateLimiter) – Instance to be used for rate limiting. This defaults to Handlers.RateLimit.BasicRateLimiter.
  • deserializer (Deserializer) – Instance to be used to deserialize responses from the Riot Api. Default is Handlers.DictionaryDeserializer.
account

Interface to the Account Endpoint

Return type:riot.AccountApi

All APIs