Click here to Skip to main content
16,006,440 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
code is given below

C#
string stru = "http://enterprise.smsgupshup.com/GatewayAPI/rest?method=SendMessage&send_to=9747447228&msg=Welcome&msg_type=TEXT&userid=xxxxxxx&auth_scheme=plain&password=xxxxxxx&v=1.1&format=text";
           // Create a request object
           WebRequest request = HttpWebRequest.Create(stru);
           // Get the response back
           HttpWebResponse response = (HttpWebResponse)request.GetResponse();
           sm = (Stream)response.GetResponseStream();
           StreamReader readStream = new StreamReader(sm);
           string dataString = readStream.ReadToEnd();
           response.Close();
           sm.Close();
           readStream.Close();
Posted
Comments
F-ES Sitecore 2-Feb-16 4:36am    
Consult the documentation as to how you use the API, or ask the people that make the API.
Athul MS 2-Feb-16 4:55am    
another error found
ie, error | 253 | Message specified does not match with any template.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900