Fix request body data
This commit is contained in:
parent
0c587f8716
commit
70165413a5
2 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ class KumiSMS:
|
|||
|
||||
def _request(self, url, data={}):
|
||||
data.update({"key": self.key})
|
||||
body = json.dumps(data)
|
||||
body = json.dumps(data).encode()
|
||||
request = urllib.request.urlopen(url, body)
|
||||
content = json.loads(request.read())
|
||||
if content["status"] == "error":
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[metadata]
|
||||
name = kumisms
|
||||
version = 0.1.2
|
||||
version = 0.1.3
|
||||
description = Class to interact with KumiSMS
|
||||
long_description = file: README.md
|
||||
url = https://kumig.it/kumisystems/pykumisms
|
||||
|
|
Loading…
Reference in a new issue