You are here

public function Github_Api_Repo::show in Bibliography Module 7.2

Get extended information about a repository by its username and repo name http://develop.github.com/p/repo.html

Parameters

string $username the user who owns the repo:

string $repo the name of the repo:

Return value

array informations about the repo

File

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

Class

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

Code

public function show($username, $repo) {
  $response = $this
    ->get('repos/show/' . urlencode($username) . '/' . urlencode($repo));
  return $response['repository'];
}