Skip to content

Commit ada3b6c

Browse files
committed
1 parent 7581776 commit ada3b6c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/Github/Api/User.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ public function all($id = null)
4343
return $this->get('users?since=' . rawurldecode($id));
4444
}
4545

46+
/**
47+
* Get extended information about a user by its ID (UNDOCUMENTED).
48+
*
49+
* @param int $id the user ID to get
50+
*
51+
* @return array informations about the user
52+
*/
53+
public function get($id)
54+
{
55+
return $this->get('user/'.rawurlencode($id));
56+
}
57+
4658
/**
4759
* Get extended information about a user by its username.
4860
*

0 commit comments

Comments
 (0)