Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/Github/Api/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Contributor

@GrahamCampbell GrahamCampbell May 2, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are loads of things like this everywhere though, that we don't include, like repos by 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.
*
Expand Down