Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed the issue with POST/PUT that the body cannot be set as string

  • Loading branch information...
commit 7bc5310b94f0cb817f97efccf2201c85b3b5b1dc 1 parent 489924f
@cm-cnnxty cm-cnnxty authored
Showing with 5 additions and 5 deletions.
  1. +4 −4 apibee/client.py
  2. +1 −1  setup.py
View
8 apibee/client.py
@@ -68,11 +68,11 @@ def head(self):
def delete(self):
return super(Client, self).delete(self._base_url, params_dict=self._final_query)
- def post(self, **payload):
- return super(Client, self).post(self._base_url, payload=payload)
+ def post(self, **other):
+ return super(Client, self).post(self._base_url, params_dict=self._final_query, **other)
- def put(self, **payload):
- return super(Client, self).put(self._base_url, payload=payload)
+ def put(self, **other):
+ return super(Client, self).put(self._base_url, params_dict=self._final_query, **other)
def build_request(self, resource, query):
View
2  setup.py
@@ -38,7 +38,7 @@
setup(
name = 'apibee',
- version = '0.2', # TODO don't forget to change version
+ version = '0.2-fix', # TODO don't forget to change version
description = 'A dynamic api client',
long_description = codecs.open('README.rst', "r", "utf-8").read(),
Please sign in to comment.
Something went wrong with that request. Please try again.