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();
}
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();
}
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.
ReplyDeleteThis blog is so informative for providing a valuable information about Call URL API for SMS sending using function in C#.NET
ReplyDeleteC# SMS Gateway Integration
Send pre-recorded voice through bulk Voice SMS software, Voice SMS mobile app or via voice Bulk SMS API in single click.
ReplyDelete