diff options
author | 2011-11-07 14:38:32 +0200 | |
---|---|---|
committer | 2011-11-07 14:38:32 +0200 | |
commit | a423c22a02c85ea16ae42c1b5a0a0a365eccd61c (patch) | |
tree | 9d184047d290a74787f9c5ebcde6854fcf44756d /github3/api.py | |
parent | Update requests (fixs with auth) (diff) | |
download | python-github3-a423c22a02c85ea16ae42c1b5a0a0a365eccd61c.tar.xz python-github3-a423c22a02c85ea16ae42c1b5a0a0a365eccd61c.zip |
_post_resource
Diffstat (limited to 'github3/api.py')
-rw-r--r-- | github3/api.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/github3/api.py b/github3/api.py index 81ae3e7..78f87b3 100644 --- a/github3/api.py +++ b/github3/api.py @@ -105,6 +105,11 @@ class GithubCore(object): return msg + def _post_resource(self, resource, obj, data, **kwargs): + r = self._http_resource('POST', resource, data=data, params=kwargs) + item = self._resource_deserialize(r.content) + + return obj.new_from_dict(item, gh=self) @staticmethod def _total_pages_from_header(link_header): |