File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,13 @@ $user = $client->api('user')->show('KnpLabs');
3636
3737Returns an array of information about the user.
3838
39+
40+ You can also use the User ID, but it will use an undocumented Github API
41+
42+ ``` php
43+ $user = $client->api('user')->showById(202732);
44+ ```
45+
3946### Update user information
4047
4148> Requires [ authentication] ( security.md ) .
Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ public function show($username)
5858 {
5959 return $ this ->get ('/users/ ' .rawurlencode ($ username ));
6060 }
61-
61+
6262 /**
6363 * Get extended information about a user by its id.
64- * Note: at time of writing this is an undocumented feature
64+ * Note: at time of writing this is an undocumented feature but GitHub support have advised that it can be relied on.
6565 *
6666 * @link http://developer.github.com/v3/users/
6767 *
You can’t perform that action at this time.
0 commit comments