PHP Bitbucket API

Simple Bitbucket API wrapper for PHP

Users account

This resource returns a user structure and the repositories array associated with an existing account.

Prepare:

// @see: https://bitbucket.org/account/user/<username or team>/api
$oauth_params = array(
    'client_id'         => 'aaa',
    'client_secret'     => 'bbb'
);

$users = new \Bitbucket\API\Users();
$users->getClient()->addListener(
    new \Bitbucket\API\Http\Listener\OAuth2Listener($oauth_params)
);

Get the account profile:

$users->account()->profile($account_name);

Get the account plan:

$users->account()->plan($account_name);

Get the followers of an account:

$users->account()->followers($account_name);

Gets a count and the list of events associated with an account:

$users->account()->events($account_name);