public function Github_Api_Repo::removeDeployKey in Bibliography Module 7.2
Delete a deploy key from a repository
Parameters
string $repo the name of the repo:
string $id the the id of the key to remove:
Return value
array the list of deploy keys
File
- modules/
CiteProc/ Github/ Api/ Repo.php, line 206
Class
- Github_Api_Repo
- Searching repositories, getting repository information and managing repository information for authenticated users.
Code
public function removeDeployKey($repo, $id) {
$response = $this
->post('repos/key/' . urlencode($repo) . '/remove', array(
'id' => $id,
));
return $response['public_keys'];
}