public async System.Threading.Tasks.Task <ActionResult> SendTextAsync(Phone phone) { Callee callee = db.Callees.Where(c => c.CalleeId == phone.CalleeId).Single(); TwilioWrapperClient sms = new TwilioWrapperClient(APIKeys.sID, APIKeys.AuthToken); await sms.SendSmsAsync("+14143107982", "+12629332309", phone.outgoingText); return(RedirectToAction("Index")); }
public async System.Threading.Tasks.Task <ActionResult> DialAsync(Phone phone) { System.Console.WriteLine("CALLEE ID: " + phone.CalleeId); Callee callee = db.Callees.Where(c => c.CalleeId == phone.CalleeId).Single(); TwilioWrapperClient test = new TwilioWrapperClient(APIKeys.sID, APIKeys.AuthToken); await test.CallAsync("+14143107982", callee.phoneNumber, "Goodbye"); return(RedirectToAction("Index")); }
public ActionResult RecieveText() { TwilioWrapperClient rps = new TwilioWrapperClient(APIKeys.sID, APIKeys.AuthToken); return(View()); }