PHP Bitbucket API

Simple Bitbucket API wrapper for PHP

Followers


List a repository's followers.

Prepare:

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

$followers = new \Bitbucket\API\Repositories\Followers();
$followers->getClient()->addListener(
    new \Bitbucket\API\Http\Listener\OAuth2Listener($oauth_params)
);

Get the repository followers:

$followers->all($account_name, $repo_slug);