Khaleel Rahman

Khaleel Rahman

  • NA
  • 69
  • 6.4k

How To Integrate SMS API To my ASP.Net Web application

Oct 10 2017 5:31 AM
I have a code send from my sms providers it looks like this
  1. var client = new RestClient("https://api.infobip.com/sms/1/text/multi");  
  2. var request = new RestRequest(Method.POST);  
  3. request.AddHeader("accept""application/json");  
  4. request.AddHeader("content-type""application/json");  
  5. request.AddHeader("authorization""Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==");  
  6. request.AddParameter("application/json""{\"messages\":[{\"from\":\"InfoSMS\", \"to\":[\"41793026727\", \"41793026731\"], \"text\":\"May the Force be with you!\"}, {\"from\":\"41793026700\", \"to\":\"41793026785\", \"text\":\"A long time ago, in a galaxy far, far away... It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.\"}]}", ParameterType.RequestBody);  
  7. IRestResponse response = client.Execute(request);  
I need to integrate this to my asp.net web application

Answers (1)