0 Replies - 2797 Views - Last Post: 13 July 2012 - 12:49 AM Rate Topic: -----

#1 Black_Widow  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 01-February 09

Use of API for SMS

Posted 13 July 2012 - 12:49 AM

I am using an API for sending SMS through an ASP.NET application.
Even after providing all the credentials I am getting this error..

Code=0 You are not valid api user

this is the code I have done so far

 string sURL = "http://hapi.smsapi.org/SendSMS.aspx?UserName=" + UserName + "&password=" + password + "&MobileNo=" + MobileNo + "&SenderID=" + SenderID + "&CDMAHeader=" + CDMAHeader + "&Message=" + Message + "";

            // Create the web request  
            HttpWebRequest request = WebRequest.Create(sURL) as HttpWebRequest;

            // Get response  
            using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)

            {
                // Get the response stream  
                StreamReader reader = new StreamReader(response.GetResponseStream());

                // Console application output  
                Console.WriteLine(reader.ReadToEnd());
                Console.ReadLine();



Any Suggestions....

Is This A Good Question/Topic? 0
  • +

Page 1 of 1