Send Mass Push Notifications - ASP.net C#

Source Code:

  
                    using System.Net;

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


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

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



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


        }

        return strResponse;
    }