Skip to content

Commit 62b43ab

Browse files
committed
Documentation
1 parent 5703492 commit 62b43ab

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

doc/users.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ $user = $client->api('user')->show('KnpLabs');
3636

3737
Returns 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).

lib/Github/Api/User.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
*

0 commit comments

Comments
 (0)