You are here

public function Github_Api_Repo::getDeployKeys in Bibliography Module 7.2

Get the list of deploy keys for a repository

Parameters

string $repo the name of the repo:

Return value

array the list of deploy keys

File

modules/CiteProc/Github/Api/Repo.php, line 174

Class

Github_Api_Repo
Searching repositories, getting repository information and managing repository information for authenticated users.

Code

public function getDeployKeys($repo) {
  $response = $this
    ->get('repos/keys/' . urlencode($repo));
  return $response['public_keys'];
}