SAORGClient interface#
- SAORGClient.get_team_client(team_id)#
Returns a normal SAClient backed by the organization token, with team context returned.
- Parameters:
team_id (int) – ID of the team to operate in.
- Returns:
a team-scoped client exposing the full team-level SDK surface. The team is fixed at construction; team_id is available as a read-only property.
- Return type:
SAClient
Request Example:
team_client = org_client.get_team_client(team_id=12345) team_client.list_projects(name__contains="My Project")
- SAORGClient.list_teams()#
Returns the teams in the given organization. Must use Organization API Key for this function.
- Returns:
the organization’s teams; an empty list if it has none.
- Return type:
list of dicts
Request Example:
org_client.list_teams()