mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 11:51:10 +00:00
Retrieve scopes for current oauth token from response headers (Issue #134)
This commit is contained in:
@@ -48,6 +48,10 @@ class Github(object):
|
||||
def rate_limiting(self):
|
||||
return self.__requester.rate_limiting
|
||||
|
||||
@property
|
||||
def oauth_scopes(self):
|
||||
return self.__requester.oauth_scopes
|
||||
|
||||
def get_user(self, login=github.GithubObject.NotSet):
|
||||
assert login is github.GithubObject.NotSet or isinstance(login, (str, unicode)), login
|
||||
if login is github.GithubObject.NotSet:
|
||||
|
||||
Reference in New Issue
Block a user