Created
July 15, 2015 17:40
-
-
Save rjames86/305dab31fb2768c15635 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import httplib | |
import urllib | |
def pushover(title, message): | |
conn = httplib.HTTPSConnection("api.pushover.net:443") | |
conn.request( | |
"POST", "/1/messages.json", | |
urllib.urlencode({ | |
"token": "", | |
"user": "", | |
"title": title, | |
"message": message, | |
}), {"Content-type": "application/x-www-form-urlencoded"}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment