Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 828 Bytes

teams.md

File metadata and controls

51 lines (35 loc) · 828 Bytes

Teams

Get Team related information.

Prepare:

$team = new Bitbucket\API\Teams();
$team->setCredentials(new Http\Message\Authentication\BasicAuth($bb_user, $bb_pass));

Get a list of teams to which the caller has access: (API 2.0)

$team->all($role);

Where $role can be: member, contributor or admin

Get the team profile: (API 2.0)

$team->profile($team_name);

Get the team members: (API 2.0)

$team->members($team_name);

Get the team followers: (API 2.0)

$team->followers($team_name);

Get a list of accounts the team is following: (API 2.0)

$team->following($team_name);

Get the team's repositories: (API 2.0)

$team->repositories($team_name);

Related: