ExClubhouse v0.5.2 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 Source
get(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 Source

Lists all teams

Example

iex> ExClubhouse.Api.Team.list()
{:ok, [%ExClubhouse.Model.Team{...}, ...]}