File tree 2 files changed +9
-2
lines changed 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');
36
36
37
37
Returns an array of information about the user.
38
38
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
+
39
46
### Update user information
40
47
41
48
> Requires [ authentication] ( security.md ) .
Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ public function show($username)
58
58
{
59
59
return $ this ->get ('/users/ ' .rawurlencode ($ username ));
60
60
}
61
-
61
+
62
62
/**
63
63
* 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.
65
65
*
66
66
* @link http://developer.github.com/v3/users/
67
67
*
You can’t perform that action at this time.
0 commit comments