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

Source Code:

  
                using System.Net;


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

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

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

        

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


        }

        return strResponse;
    }