Skip to content

Commit 111920b

Browse files
committed
update
1 parent e6b8a15 commit 111920b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zohocrm/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ def insert_record(self, module_name, data):
224224
print(1)
225225
return None
226226
url = BASE_URL + str(module_name)
227-
data = dict(data)
227+
data = json.dumps(data)
228228
print('*********************')
229229
print('DATA: ', data)
230-
return self._post(url, data={'data': data})
230+
return self._post(url, data=data)
231231

232232
def _get(self, endpoint, params=None):
233233
headers = {'Authorization': 'Zoho-oauthtoken {0}'.format(self.access_token), }

0 commit comments

Comments
 (0)