ExClubhouse v0.6.0 ExClubhouse.Api.Team View Source
Team API
Link to this section Summary
Link to this section Functions
Link to this function
get(team_public_id)
View Sourceget(integer()) :: {:ok, nil | ExClubhouse.Model.Team.t()} | {:error, ExClubhouse.Error.t()}
Get a single team by id
Example
iex> ExClubhouse.Api.Team.get(1)
{:ok, %ExClubhouse.Model.Team{...}}
Link to this function
get(session, team_public_id)
View Sourceget(ExClubhouse.Session.t(), integer()) :: {:ok, ExClubhouse.Model.Team.t() | nil} | {:error, ExClubhouse.Error.t()}
Link to this function
list()
View Sourcelist() :: {:ok, [ExClubhouse.Model.Team.t()]} | {:error, ExClubhouse.Error.t()}
Lists all teams
Example
iex> ExClubhouse.Api.Team.list()
{:ok, [%ExClubhouse.Model.Team{...}, ...]}
Link to this function
list(sess)
View Sourcelist(ExClubhouse.Session.t()) :: {:ok, [ExClubhouse.Model.Team.t()]} | {:error, ExClubhouse.Error.t()}