Skip to content

Instantly share code, notes, and snippets.

Created February 4, 2019 16:13
What would you like to do?
A function for sending Pushover Notifications ( )
function sendPushoverNotif(token, target, message, title){
message = encodeURIComponent(message); // make url friendly
var xhr = new XMLHttpRequest();"POST", "", true);
xhr.setRequestHeader("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