diff options
author | 2011-04-24 20:11:21 -0400 | |
---|---|---|
committer | 2011-04-24 20:11:21 -0400 | |
commit | c4c4b6ef1b409e79393c08ed3c2a1a4f7ec46e35 (patch) | |
tree | 7a9f73e24ba6d068f0d4224ec13d180a47233dfa /github3/core.py | |
parent | logged in workaround. (diff) | |
download | python-github3-c4c4b6ef1b409e79393c08ed3c2a1a4f7ec46e35.tar.xz python-github3-c4c4b6ef1b409e79393c08ed3c2a1a4f7ec46e35.zip |
whitespace
Diffstat (limited to 'github3/core.py')
-rw-r--r-- | github3/core.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/github3/core.py b/github3/core.py index 95716a9..db8b213 100644 --- a/github3/core.py +++ b/github3/core.py @@ -24,6 +24,7 @@ class GitHub(object): def __init__(self, apiurl=API_URL): self.__basic_auth = None + def _get(self, *path): headers = {'Accept': self.accept} @@ -38,14 +39,18 @@ class GitHub(object): return r + + def auth(self, username, password): self.__basic_auth = (username, password) return self.logged_in + def oauth(self): # TODO: oAuth pass + @property def logged_in(self): r = self._get('') |