You are here

public function Github_Api_Repo::getRepoNetwork in Bibliography Module 7.2

Get the network (a list of forks) of a repository 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 list of the repo forks

File

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

Class

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

Code

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