View Source Tentacat.Teams.Members (Tentacat v2.4.0)

Summary

Functions

Link to this function

create(client, team_id, username, body)

View Source
@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

Link to this function

delete(client, team_id, username)

View Source
@spec delete(Tentacat.Client.t(), integer(), binary()) :: Tentacat.response()

Remove a user from a team.

Example

Tentacat.Teams.Members.delete client, 210840, "username"
Link to this function

find(client \\ %Client{}, team_id, username)

View Source

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

Link to this function

list(client \\ %Client{}, team_id)

View Source

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