User
Manages the currently authenticated account profile.
Prepare
$user = new Bitbucket\API\User();
$user->setCredentials( new Bitbucket\API\Authentication\Basic($bb_user, $bb_pass) );
Get user profile
$profile = $user->get();
Update currently authenticated user profile:
$user->update(array(
'first_name' => 'John',
'last_name' => 'Doe'
));
Get user privileges:
$user->privileges();
Get a list of repositories an account follows:
$user->follows();