Deploykeys
Manage ssh keys used for deploying product builds.
Prepare:
$dk = new Bitbucket\API\Repositories\Deploykeys();
$dk->setCredentials( new Bitbucket\API\Authentication\Basic($bb_user, $bb_pass) );
Get a list of keys:
$dk->all($account_name, $repo_slug);
Get a key content:
$dk->get($account_name, $repo_slug, 508372);
Add a new key:
$dk->create($account_name, $repo_slug, 'ssh-rsa [...]', 'test key');
Update an existing key:
$dk->update($account_name, $repo_slug, '508380', array('label' => 'test [edited]'));
Delete an existing key:
$dk->delete($account_name, $repo_slug, '508380');