aboutsummaryrefslogtreecommitdiffstats
path: root/github3/handlers/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'github3/handlers/base.py')
-rw-r--r--github3/handlers/base.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/github3/handlers/base.py b/github3/handlers/base.py
index 858ca51..9e5a110 100644
--- a/github3/handlers/base.py
+++ b/github3/handlers/base.py
@@ -55,3 +55,10 @@ class Handler(object):
converter.inject(model)
return converter.loads(raw_resource)
+ def _post_resource(self, resource, data, model=None):
+ """ Handler request to create a resource """
+
+ raw_resource = self._gh.post(resource, data=data)
+ converter = self._get_converter()
+ converter.inject(model)
+ return converter.loads(raw_resource)