Teams
Get Team related information.
Prepare:
// @see: https://bitbucket.org/account/user/<username or team>/api
$oauth_params = array(
'client_id' => 'aaa',
'client_secret' => 'bbb'
);
$team = new \Bitbucket\API\Teams();
$team->getClient()->addListener(
new \Bitbucket\API\Http\Listener\OAuth2Listener($oauth_params)
);
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);