Send Mass Push Notification By Tag - ASP.net C#

Source Code:

  
                   using System.Net;


  public static string SendMassPushByTag(string tag, string message, string destinationurl)
  {
      string strResponse = "0";
      string apikey = "YOUR-API-KEY";


      string URI = "http://send.pushnotificationapi.com/v1/push/send_by_tag";

     string myParameters = "api_key=" + apikey + "&msg_title=" + message + "&tag=" + tag + "&destination_url=" + destinationurl;



      using (WebClient wc = new WebClient())
      {
          wc.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
          strResponse = wc.UploadString(URI, myParameters);


      }

     return strResponse;
  }