You are here

public function Github_Api_User::search in Bibliography Module 7.2

Search users by username http://develop.github.com/p/users.html#searching_for_users

Parameters

string $username the username to search:

Return value

array list of users found

File

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

Class

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

Code

public function search($username) {
  $response = $this
    ->get('user/search/' . urlencode($username));
  return $response['users'];
}