Teams endpoint¶
Fetch all teams¶
- teams([params = None])¶
- Parameters:
params (dict) – (optional) pagination options
- Returns:
Collection of teams
Example:
teams = client.teams({"page": 2, "limit": 3})
teams.items[0].team_id # => 156123
Fetch a single team¶
- team(team_id)¶
- Parameters:
team_id (int or str) – ID of the team to fetch
- Returns:
Team model
Example:
team = client.team(12345)
team.team_id # => 12345
team.name # => "My Team"