You are here

public function Github_Api_Repo::getUserRepos in Bibliography Module 7.2

Get the repositories of a user http://develop.github.com/p/repo.html

Parameters

string $username the username:

Return value

array list of the user repos

File

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

Class

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

Code

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