Allows repository administrators to send email invitations to grant read, write, or admin privileges to a repository.
$invitation = new Bitbucket\API\Invitations();
$invitation->setCredentials(new Http\Message\Authentication\BasicAuth($bb_user, $bb_pass));
$invitation->send($account_name, $repo_slug, '[email protected]', 'read');