The below code is from base.py
def post(self, url, body=None, headers=None, **params):
headers = headers or {}
url += self.urlencode(params)
if 'content-type' not in headers:
headers['content-type'] = 'application/json'
return self.request('POST', url, body, headers)
the params dictionary cannot contain body key or a headers key. As the below example, I want to pass body='body of message' as a param to the Api
some_object = {'foo': 'bar'}
client.rooms.message.post(body=some_object, tags="social devcon", body="body of message")
as the body is referenced as body of POST method. Is there any way to pass body as a parameter
The below code is from
base.pythe
paramsdictionary cannot containbodykey or aheaderskey. As the below example, I want to passbody='body of message' as a param to the Apias the
bodyis referenced as body of POST method. Is there any way to passbodyas a parameter