diff options
author | 2011-07-23 23:06:49 -0400 | |
---|---|---|
committer | 2011-07-23 23:06:49 -0400 | |
commit | a3f9e54a00d64c0ef12d4ef9b5e4d6ba3000436b (patch) | |
tree | ebbf257d150b2b8148ab73a69600941395f6547e /github3/api.py | |
parent | no fix needed (diff) | |
download | python-github3-a3f9e54a00d64c0ef12d4ef9b5e4d6ba3000436b.tar.xz python-github3-a3f9e54a00d64c0ef12d4ef9b5e4d6ba3000436b.zip |
get_me
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): |