diff --git a/lib/Github/Api/User.php b/lib/Github/Api/User.php index 888eb9dfed4..3ca78ec8d23 100644 --- a/lib/Github/Api/User.php +++ b/lib/Github/Api/User.php @@ -43,6 +43,18 @@ public function all($id = null) return $this->get('users?since=' . rawurldecode($id)); } + /** + * [UNDOCUMENTED] Get extended information about a user by its ID. + * + * @param int $id the user ID to get + * + * @return array informations about the user + */ + public function get($id) + { + return $this->get('user/'.rawurlencode($id)); + } + /** * Get extended information about a user by its username. *