Please replace {channel}
, {token}
and data
argument.
import http.client
conn = http.client.HTTPSConnection("push.bugify.io", 443)
data = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
headers = {
'Content-Type': 'text/plain',
'Authorization': 'Bearer {token}'
}
conn.request("POST", "/{channel}", data, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))