Skip to content

Add ability to get user by ID #372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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