aboutsummaryrefslogtreecommitdiffstats
path: root/github3/api.py
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.com>2011-07-23 23:06:49 -0400
committerKenneth Reitz <me@kennethreitz.com>2011-07-23 23:06:49 -0400
commita3f9e54a00d64c0ef12d4ef9b5e4d6ba3000436b (patch)
treeebbf257d150b2b8148ab73a69600941395f6547e /github3/api.py
parentno fix needed (diff)
downloadpython-github3-a3f9e54a00d64c0ef12d4ef9b5e4d6ba3000436b.tar.xz
python-github3-a3f9e54a00d64c0ef12d4ef9b5e4d6ba3000436b.zip
get_me
Diffstat (limited to 'github3/api.py')
-rw-r--r--github3/api.py5
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):