Thursday, 21 November 2013

HOw To Call URL API for SMS sending using function in C#.NET

Copy & Paste this code and call this function anywhere you use to use API:


 public void SendSMS()
        {
            //HTTP connection
            HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("your url API");
            //Get response from Ozeki NG SMS Gateway Server and read the answer
            HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
            System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
            string responseString = respStreamReader.ReadToEnd();
            respStreamReader.Close();
            myResp.Close();

        }

3 comments:

  1. Thanks for sharing this blog. We have now started providing bulk SMS API C# India that is very powerful and easy to integrate into your own software/application/website. As it saves your lot of valuable time in logging our interface again and again.

    ReplyDelete
  2. This blog is so informative for providing a valuable information about Call URL API for SMS sending using function in C#.NET

    C# SMS Gateway Integration

    ReplyDelete
  3. Send pre-recorded voice through bulk Voice SMS software, Voice SMS mobile app or via voice Bulk SMS API in single click.

    ReplyDelete