You are here

public function Github_Api_User::getWatchedRepos in Bibliography Module 7.2

Request the repos that a specific user is watching http://develop.github.com/p/users.html#watched_repos

Parameters

string $username the username:

Return value

array list of watched repos

File

modules/CiteProc/Github/Api/User.php, line 120

Class

Github_Api_User
Searching users, getting user information and managing authenticated user account information.

Code

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