Fix request body data

This commit is contained in:
Kumi 2020-10-24 11:44:06 +02:00
parent 0c587f8716
commit 70165413a5
2 changed files with 2 additions and 2 deletions

View file

@ -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":

View file

@ -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