Send Push Notifications Over PushOver

2 years 8 months ago - 2 years 8 months ago #2502 by lennysh
Just figured I'd share the code I'm using to send notifications using PushOver from the EasyIoT Server...

(If you prefer to use PushBullet instead, I posted that code on this topic ...)

public void PushOverSend(string Title, string Msg)
	System.Collections.Specialized.NameValueCollection queryString = new System.Collections.Specialized.NameValueCollection();
	queryString["token"] = "Application API Token/Key";
	queryString["user"] = "Your User Key";
	queryString["title"] = Title;
	queryString["message"] = Msg;

	try {
      	System.Net.ServicePointManager.ServerCertificateValidationCallback = new System.Net.Security.RemoteCertificateValidationCallback(delegate { return true; });
		using (System.Net.WebClient client = new System.Net.WebClient()) {
			client.UploadValues("", queryString);

	} catch (Exception ex) {

And here is how to use the code in an Automation Program...
PushOverSend("EasyIoT Message", "Test Message from my PushOver Code!");

Please Log in or Create an account to join the conversation.

Time to create page: 0.165 seconds