Send SMS to mobile phone using SMS API in VB.net [Resolved]

Posted by Rashedbin under VB.NET on 6/27/2015 | Points: 10 | Views : 4155 | Status : [Member] | Replies : 1
i want to send SMS from my vb.net application.I have bought an API from a company.they provided this url

http://193.105.74.159/api/v3/sendsms/plain?user=UserName&password=PasswordTest&sender=Test&SMSText=Testinglong&GSM=8801XXXYYY&type=longSMS

they also gave me username and password.

now how i can send SMS using this url.




Responses

Posted by: Sheonarayan on: 6/29/2015 [Administrator] HonoraryPlatinum | Points: 50

Up
0
Down

Resolved
To call the API URL, write below code
System.Net.WebRequest request = System.Net.HttpWebRequest.Create("http://www.dotnetfunda.com");
System.Net.WebResponse response = request.GetResponse();
System.IO.StreamReader reader = new System.IO.StreamReader(response.GetResponseStream());
string responseText = reader.ReadToEnd(); // read the response from the url

responseText will be the status you would receive from the SMS API.



Regards,
Sheo Narayan
http://www.dotnetfunda.com

Rashedbin, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response