aboutsummaryrefslogtreecommitdiffstats
path: root/github3/api.py
diff options
context:
space:
mode:
authorRok Garbas <rok@garbas.si>2011-08-24 05:19:28 +0200
committerRok Garbas <rok@garbas.si>2011-08-24 05:19:28 +0200
commit27fec35b1fa1a078f6ca377c7ff5c718df61030c (patch)
tree781046f9d31fbaab9c54a5e6b6c7fe975f5e1274 /github3/api.py
parentadding requirements (diff)
downloadpython-github3-27fec35b1fa1a078f6ca377c7ff5c718df61030c.tar.xz
python-github3-27fec35b1fa1a078f6ca377c7ff5c718df61030c.zip
adding organization model and relevant helpers
Diffstat (limited to 'github3/api.py')
-rw-r--r--github3/api.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/github3/api.py b/github3/api.py
index d6d7ba0..049aea1 100644
--- a/github3/api.py
+++ b/github3/api.py
@@ -156,6 +156,9 @@ class Github(GithubCore):
"""Get the authenticated user."""
return self._get_resource(('repos', username, reponame), Repo)
+ def get_org(self, login):
+ """Get organization."""
+ return self._get_resource(('orgs', login), Org)
class ResponseError(Exception):