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.
$users = new Bitbucket\API\Users();
$users->setCredentials(new Http\Message\Authentication\BasicAuth($bb_user, $bb_pass));
$users->invitations()->all($account_name);
$users->invitations()->email($account_name, '[email protected]');
$users->invitations()->group($account_name, 'john', 'testers', '[email protected]');
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]');
$users->invitations()->deleteByEmail($account_name, '[email protected]');
$users->invitations()->deleteByGroup($account_name, 'john', 'testers', '[email protected]');