aboutsummaryrefslogtreecommitdiffstats
path: root/github3/api.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2011-10-29 02:46:02 +0200
committerDavid Medina <davidmedina9@gmail.com>2011-10-29 02:46:02 +0200
commitbeebe5c3bd0a2016468953909ed8f09723e224bd (patch)
tree674f4c6ef66888fb6c06cec2e1dfb50671d8ec88 /github3/api.py
parentUpdate requests (fixs with auth) (diff)
downloadpython-github3-beebe5c3bd0a2016468953909ed8f09723e224bd.tar.xz
python-github3-beebe5c3bd0a2016468953909ed8f09723e224bd.zip
Testing post gist
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 81ae3e7..4cb0199 100644
--- a/github3/api.py
+++ b/github3/api.py
@@ -217,6 +217,9 @@ class Github(GithubCore):
"""Get organization."""
return self._get_resource(('orgs', login), Org)
+ def post_gist(self, json_data):
+ self.session.post(settings.base_url+'gist', json_data)
+
class ResponseError(Exception):
"""The API Response was unexpected."""