Skip to content

Commit ab00841

Browse files
committed
Adding ability to get all users.
1 parent 86d58f6 commit ab00841

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/Github/Api/User.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ public function find($keyword)
2424
return $this->get('legacy/user/search/'.urlencode($keyword));
2525
}
2626

27+
/**
28+
* Retrieve all github users:
29+
* @link http://developer.github.com/v3/users/#get-all-users
30+
*
31+
* @return array list of users found
32+
*/
33+
public function all()
34+
{
35+
return $this->get('users/');
36+
}
37+
2738
/**
2839
* Get extended information about a user by its username
2940
* @link http://developer.github.com/v3/users/

0 commit comments

Comments
 (0)