Branches
Allows you to get a list of branches.
Prepare:
// @see: https://bitbucket.org/account/user/<username or team>/api
$oauth_params = array(
'client_id' => 'aaa',
'client_secret' => 'bbb'
);
$branches = new \Bitbucket\API\Repositories\Refs\Branches();
$branches->getClient()->addListener(
new \Bitbucket\API\Http\Listener\OAuth2Listener($oauth_params)
);
Get a list of branches:
$branches->all($account_name, $repo_slug);
Get an individual branch:
$branches->get($account_name, $repo_slug, $branch_name);