Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 988 Bytes

groups.md

File metadata and controls

46 lines (37 loc) · 988 Bytes

Groups

Provides functionality for querying information about groups, creating new ones, updating memberships, and deleting them.

Prepare:

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

Get a list of groups:

$groups->get($account_name);

Get a list of matching groups:

$groups->get($account_name, array(
    'group' => 'repo_name/administrators'
));

Create a new group:

$groups->create($account_name, 'testers');

Update a group:

$groups->update($account_name, 'testers', array(
    'accountname'   => 'gentlero',
    'name'          => 'Dummy group'
));

Delete a group:

$groups->delete($account_name, 'testers');

Related: