11 lines
371 B
Python
11 lines
371 B
Python
import http.client, urllib
|
|
|
|
conn = http.client.HTTPSConnection("api.pushover.net:443")
|
|
conn.request("POST", "/1/messages.json",
|
|
urllib.parse.urlencode({
|
|
"token": "avzcexyjeu7y71pcskwshyx8ytmq8i",
|
|
"user": "uo2sf2pmrtjvt8auu786fviabimimr",
|
|
"message": "Reporting was running!",
|
|
}), { "Content-type": "application/x-www-form-urlencoded" })
|
|
conn.getresponse()
|