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