Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.63 KB

invitations.md

File metadata and controls

55 lines (38 loc) · 1.63 KB

Users invitations

An invitation is a request sent to an external email address to participate one or more of an account's groups. Any user with admin access to the account can invite someone to a group.

Prepare:

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

Get a list of pending invitations:

$users->invitations()->all($account_name);

Gets any pending invitations on a team or individual account for a particular email address:

$users->invitations()->email($account_name, '[email protected]');

Tests whether there is a pending invitation for a particular email on account's group:

$users->invitations()->group($account_name, 'john', 'testers', '[email protected]');

Issues an invitation to the specified account group.

An invitation is a request sent to an external email address to participate one or more of an account's groups.

$users->invitations()->create($account_name, 'john', 'testers', '[email protected]');

Deletes any pending invitations on a team or individual account for a particular email address.

$users->invitations()->deleteByEmail($account_name, '[email protected]');

Deletes a pending invitation for a particular email on account's group.

$users->invitations()->deleteByGroup($account_name, 'john', 'testers', '[email protected]');

Related: