diff options
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('') |