View Source Tentacat.Teams.Members (Tentacat v2.4.0)
Summary
Functions
Add a user to a team.
Remove a user from a team.
Get a team membership.
List all team members.
Functions
@spec create(Tentacat.Client.t(), integer(), binary(), map()) :: Tentacat.response()
Add a user to a team.
Example
Tentacat.Teams.Members.create client, 210840, "username", %{ role: "maintainer" }
Tentacat.Teams.Members.create client, 210840, "username", %{}
More info at: https://developer.github.com/v3/orgs/teams/#add-team-membership
@spec delete(Tentacat.Client.t(), integer(), binary()) :: Tentacat.response()
Remove a user from a team.
Example
Tentacat.Teams.Members.delete client, 210840, "username"
@spec find(Tentacat.Client.t(), integer(), binary()) :: Tentacat.response()
Get a team membership.
Example
Tentacat.Teams.Members.find 210840, "username"
Tentacat.Teams.Members.find client, 210840, "username"
More info at: https://developer.github.com/v3/orgs/teams/#get-team-membership
@spec list(Tentacat.Client.t(), integer()) :: Tentacat.response()
List all team members.
Example
Tentacat.Teams.Members.list 210840
Tentacat.Teams.Members.list client, 210840
More info at: https://developer.github.com/v3/orgs/teams/#list-team-members