Skip to content

Commit 7322338

Browse files
Merge pull request #2 from LCAS/marc-hanheide-patch-1
Change params to json in post request
2 parents 1196949 + 3e13120 commit 7322338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

figshare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def __post(self, url, params=None, use_cache=True):
161161
return self.__cache[hash_key]
162162
else:
163163
headers = { "Authorization": "token " + self.token } if self.token else {}
164-
result = post(self.base_url + url, headers=headers, params=params).json()
164+
result = post(self.base_url + url, headers=headers, json=params).json()
165165
self.__cache[hash_key] = result
166166
self.save_cache()
167167
return result

0 commit comments

Comments
 (0)