This is a Bulk sms send UI. Users Can create Group, Create
Custom SMS, Create a Effective date
(Send automatic sms by process, services).
.Net Framework
C# Language
Rest API
Custom SMS, Create a Effective date
(Send automatic sms by process, services).
.Net Framework
C# Language
Rest API
public JsonResult ExecuteMessage(string SendTo, string SENDMessageDetailsId)
{
HttpClient Client = new HttpClient();
Client.BaseAddress = new Uri("http://192.192.192.233:8091/"); //api/nonmaskingsms/easysend?sender=01713140127&message=hello%20bangladesh)
Client.DefaultRequestHeaders.Clear();
Client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
//Client.DefaultRequestHeaders.Add("Accept", "application/json");
//Client.DefaultRequestHeaders.Add("Content-Type", "application/json");
HttpResponseMessage message = Client.GetAsync($"api/......../(nonmaskingsms/easysend)?sender={SendTo}&message={SENDMessageDetailsId}").Result;
if (message.IsSuccessStatusCode)
{
return Json(1, JsonRequestBehavior.AllowGet);
}
else
return Json(0, JsonRequestBehavior.AllowGet);
}
No comments:
Post a Comment