mirror of
https://github.com/kennethreitz/python-github3.git
synced 2026-06-05 23:10:17 +00:00
get_me
This commit is contained in:
@@ -95,10 +95,15 @@ class Github(GithubCore):
|
||||
|
||||
def get_user(self, username):
|
||||
# return 'kennethreitz'
|
||||
"""Get a single user."""
|
||||
return self._get_resource(('users', username), User)
|
||||
# return User()
|
||||
|
||||
|
||||
def get_me(self):
|
||||
"""Get the authenticated user."""
|
||||
return self._get_resource(('users'), User)
|
||||
|
||||
|
||||
|
||||
class ResponseError(Exception):
|
||||
|
||||
Reference in New Issue
Block a user