Teams¶
-
class
twitch.api.teams.
Teams
¶ This class provides methods for easy access to Twitch Teams API.
-
classmethod
get
(team_name)¶ Gets a specified team object.
Parameters: team_name (string) – Name of the team you want to get information of
-
classmethod
get_all
(limit, offset)¶ Gets all active teams.
Parameters: - limit (int) – Maximum number of objects to return. Default 25. Maximum 100.
- offset (int) – Object offset for pagination of result. Default 0.
>>> from twitch import TwitchClient >>> client = TwitchClient('<my client id>') >>> teams = client.teams.get_all()
-
classmethod