This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web.Mvc; | |
using Twilio; | |
using Twilio.TwiML; | |
using Twilio.TwiML.Mvc; | |
namespace MessageResponseDemo.Controllers | |
{ | |
public class MessageController : TwilioController | |
{ | |
public ActionResult Incoming() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web.Mvc; | |
using Twilio; | |
namespace MessageDemo.Controllers | |
{ | |
public class MessageController : TwilioController | |
{ | |
public void Outgoing() | |
{ | |
var twilioRestClient = new TwilioRestClient("{{Insert AccountSid}}", "{{Insert AuthToken}}"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Page Language="C#" %> | |
<script runat="server"> | |
protected void Page_Load(object sender, EventArgs e) | |
{ | |
Response.ContentType = "text/xml"; | |
} | |
</script> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Dial> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Twilio.TwiML; | |
using Twilio.TwiML.Mvc; | |
namespace Demo.Controllers | |
{ | |
public class DialExampleController : TwilioController | |
{ | |
public ActionResult Dial() | |
{ | |
var response = new TwilioResponse(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Threading; | |
using System.Web.Mvc; | |
using Twilio; | |
using Twilio.TwiML; | |
using Twilio.TwiML.Mvc; | |
namespace MultithreadedSendDemo.Controllers | |
{ | |
public class MessageController : TwilioController | |
{ |