MatchApi¶
-
class
riotwatcher._apis.team_fight_tactics.
MatchApi
(base_api: riotwatcher._apis.BaseApi.BaseApi)¶ This class wraps the TFT-Match-v1 Api calls provided by the Riot API.
See https://developer.riotgames.com/apis#tft-match-v1 for more detailed information
Initializes a new MatchApi which uses the provided base_api
Parameters: base_api (BaseApi) – the root API object to use for making all requests. -
by_id
(region: str, match_id: str)¶ Get a match by match id.
Parameters: - region (string) – The region to execute this request on
- match_id (string) – The match ID.
Returns: MatchDto
-
by_puuid
(region: str, puuid: str, count: int = 20, start: int = 0, start_time: Optional[int] = None, end_time: Optional[int] = None)¶ Get a list of match ids by PUUID.
Parameters: - region (string) – The region to execute this request on
- puuid (string) – The puuid.
- count (int) – Defaults to 20. Valid values: 0 to 100. Number of match ids to return.
- start (int) – Defaults to 0. Start index.
- start_time (int) – Epoch timestamp in seconds.
- end_time (int) – Epoch timestamp in seconds.
Returns: List[string]
-