Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit c778607

Browse files
committed
Update to use "json" for the session post command.
1 parent 2c76099 commit c778607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ElvantoAPI/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _Post(self, endpoint, **kwargs):
135135
"""
136136
global api_url
137137
posturl = api_url + endpoint + ("" if endpoint[:-1] == "." else ".") + "json"
138-
self.data = self.s.post(posturl, data=kwargs) #This is the code that does the actual call
138+
self.data = self.s.post(posturl, json=kwargs) #This is the code that does the actual call
139139
info = json.loads(self.data.text)
140140
if info["status"] != "ok":
141141
if int(info["error"]["code"]) == 121: #Token Expired

0 commit comments

Comments
 (0)