We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dfb049 commit a3f9e54Copy full SHA for a3f9e54
1 file changed
github3/api.py
@@ -95,10 +95,15 @@ def __init__(self):
95
96
def get_user(self, username):
97
# return 'kennethreitz'
98
+ """Get a single user."""
99
return self._get_resource(('users', username), User)
100
# return User()
101
102
103
+ def get_me(self):
104
+ """Get the authenticated user."""
105
+ return self._get_resource(('users'), User)
106
+
107
108
109
class ResponseError(Exception):
0 commit comments