Kindly help me out that, how to write the complete coding for bulk sms api in asp.net using post method.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dhandapani TRPosted Dec 5, 2018, 9:39 PM
Dhandapani TRPosted Dec 5, 2017, 12:32 PM
Posted Dec 3, 2017, 1:02 PM
Dhandapani TRPosted Dec 3, 2017, 4:55 AM
var request = new RestRequest(Method.POST);
request.AddHeader("accept", "application/xml");
request.AddHeader("content-type", "application/xml");
request.AddHeader("authorization", "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==");
request.AddParameter("application/json", "{\"from\":\"InfoSMS\", \"to\":\"41793026727\",\"text\":\"Test SMS.\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Posted Dec 3, 2017, 3:22 AM