How to integrate mvaayoo messaging API code in C# windows application

  • Thread starter Thread starter Jparv
  • Start date Start date
J

Jparv

Guest
Hello,

Want to send sms using this below API but dont know where I have to write this code on formload or on button click?



string strUrl = "http://api.mVaayoo.com/mvaayooapi/MessageCompose?user=password@gmail.com:yoo@1234&senderID=TEST SMS&receipientno=919993154778&msgtxt=This is a test from mVaayoo API&state=4";
WebRequest request = HttpWebRequest.Create(strUrl);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream s = (Stream)response.GetResponseStream();
StreamReader readStream = new StreamReader( s );
string dataString = readStream.ReadToEnd();
response.Close();
s.Close();
readStream.Close();

And I am using this below controls

f93a571e78231522717f9b6f226867fb._.png


Continue reading...
 
Back
Top