Skip to content

Commit a3f9e54

Browse files
author
Kenneth Reitz
committed
get_me
1 parent 8dfb049 commit a3f9e54

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

github3/api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,15 @@ def __init__(self):
9595

9696
def get_user(self, username):
9797
# return 'kennethreitz'
98+
"""Get a single user."""
9899
return self._get_resource(('users', username), User)
99100
# return User()
100101

101102

103+
def get_me(self):
104+
"""Get the authenticated user."""
105+
return self._get_resource(('users'), User)
106+
102107

103108

104109
class ResponseError(Exception):

0 commit comments

Comments
 (0)