aboutsummaryrefslogtreecommitdiffstats
path: root/github3/api.py
diff options
context:
space:
mode:
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):