Teams¶
- Client.get_team_swiss(team_id, max_tournaments=100)¶
Get all swiss tournaments of a team
- Parameters
team_id (str) – ID of team whose info to query
max_tournaments (Optional[int]) – Maximum tournaments to query
- Returns
A list with dictionaries containing all the swiss tournaments of a team
- Return type
list
- Client.get_team_info(team_id)¶
Get info about a team
- Parameters
team_id (str) – ID of team whose info to query
- Returns
A dictionary with the team’s info
- Return type
dict
- Client.get_popular_teams(page=1)¶
Get popular teams
- Parameters
page (Optional[int]) – Page of most popular teams to query
- Returns
A dictionary with the popular teams
- Return type
dict
- Client.get_teams_player(user)¶
Get all the teams a player is a member of
- Parameters
user (str) – User to query their team memberships
- Returns
A list with dictionaries containing the teams a player is a member of
- Return type
list
- Client.search_teams(text, page=1)¶
Get search results for keyword in team search
- Parameters
text (str) – Keyword to use in team search
page (Optional[int]) – Page of team search to query
- Returns
A dictionary with the team search results
- Return type
dict
- Client.get_team_members(team_id)¶
Get members of a team
- Parameters
team_id (str) – ID of team whose members to query
- Returns
A list with dictionaries containing the members of a team
- Return type
list