diff options
Diffstat (limited to 'github3/api.py')
-rw-r--r-- | github3/api.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/github3/api.py b/github3/api.py index 42bfa26..c3a176f 100644 --- a/github3/api.py +++ b/github3/api.py @@ -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): |