Commit 70165413 authored by Kumi's avatar Kumi
Browse files

Fix request body data

parent 0c587f87
Pipeline #326 failed with stages
in 0 seconds
......@@ -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":
......
[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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment