Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 14, 2013 05:24 AM by samwize
Member
141 Points
77 Posts
Jan 10, 2013 03:06 PM|LINK
Hello
I am new in SMS marketing. I want to make a page which can send SMS. I have HTTP API
http://bulksms.sritechdeveloper.in/sendsms?uname=yourUsername&pwd=yourPassword&senderid=yourSenderid&to=9444xxxxxx&msg=yourMessage&route=yourRoute
but I am not geeting How to code for this?
can You please help me?
All-Star
27896 Points
4618 Posts
Jan 10, 2013 03:15 PM|LINK
You will need to use some type of service most likely to perform this, especialy if you are going to be performing it on a large scale.
SMSified appears to have quite an extensive and friendly API for performing this very task.
A fully featured example on sending outbound SMS messages using SMSified can be found here.
Example
// SMSified API endpoint. string webTarget = "https://api.smsified.com/v1/smsmessaging/outbound/{0}/requests"; // Parameters to send with API request. string webPost = "address={0}&message={1}"; // SMSified credentials. string userName = ""; string password = ""; string senderNumber = ""; // Create new HTTP request. string url = String.Format(webTarget, senderNumber); HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); req.Method = "POST"; req.ContentType = "application/x-www-form-urlencoded"; byte[] postData = Encoding.ASCII.GetBytes(String.Format(webPost, "14075551212", "This is a test from C#")); req.ContentLength = postData.Length; // Set HTTP authorization header. string authInfo = userName + ":" + password; authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo)); req.Headers["Authorization"] = "Basic " + authInfo; // Send HTTP request. Stream PostStream = req.GetRequestStream(); PostStream.Write(postData, 0, postData.Length); HttpWebResponse res = (HttpWebResponse)req.GetResponse();
2 Points
1 Post
Jan 14, 2013 05:24 AM|LINK
What is the error you getting? You need to make a basic HTTP GET/POST to that URL.
Many SMS providers provide similar HTTP API.
You could also take a look at Hoiio API, which clearly states the paramenters and responses. http://developer.hoiio.com/docs/sms_send.html
Pankil
Member
141 Points
77 Posts
How to Send SMS using HTTP API in c#.net
Jan 10, 2013 03:06 PM|LINK
Hello
I am new in SMS marketing. I want to make a page which can send SMS. I have HTTP API
http://bulksms.sritechdeveloper.in/sendsms?uname=yourUsername&pwd=yourPassword&senderid=yourSenderid&to=9444xxxxxx&msg=yourMessage&route=yourRoute
but I am not geeting How to code for this?
can You please help me?
Pankil
Rion William...
All-Star
27896 Points
4618 Posts
Re: How to Send SMS using HTTP API in c#.net
Jan 10, 2013 03:15 PM|LINK
You will need to use some type of service most likely to perform this, especialy if you are going to be performing it on a large scale.
SMSified appears to have quite an extensive and friendly API for performing this very task.
A fully featured example on sending outbound SMS messages using SMSified can be found here.
Example
// SMSified API endpoint. string webTarget = "https://api.smsified.com/v1/smsmessaging/outbound/{0}/requests"; // Parameters to send with API request. string webPost = "address={0}&message={1}"; // SMSified credentials. string userName = ""; string password = ""; string senderNumber = ""; // Create new HTTP request. string url = String.Format(webTarget, senderNumber); HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); req.Method = "POST"; req.ContentType = "application/x-www-form-urlencoded"; byte[] postData = Encoding.ASCII.GetBytes(String.Format(webPost, "14075551212", "This is a test from C#")); req.ContentLength = postData.Length; // Set HTTP authorization header. string authInfo = userName + ":" + password; authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo)); req.Headers["Authorization"] = "Basic " + authInfo; // Send HTTP request. Stream PostStream = req.GetRequestStream(); PostStream.Write(postData, 0, postData.Length); HttpWebResponse res = (HttpWebResponse)req.GetResponse();samwize
Member
2 Points
1 Post
Re: How to Send SMS using HTTP API in c#.net
Jan 14, 2013 05:24 AM|LINK
What is the error you getting? You need to make a basic HTTP GET/POST to that URL.
Many SMS providers provide similar HTTP API.
You could also take a look at Hoiio API, which clearly states the paramenters and responses. http://developer.hoiio.com/docs/sms_send.html