Skip to content

Instantly share code, notes, and snippets.

@kerslake
Created August 27, 2014 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kerslake/4b42ae4bed2eec64ee77 to your computer and use it in GitHub Desktop.
Save kerslake/4b42ae4bed2eec64ee77 to your computer and use it in GitHub Desktop.
public class WelcomeController : TwilioApiController
{
public HttpResponseMessage Post(VoiceRequest request)
{
var response = new TwilioResponse();
response.Say("Welcome to this Twilio demo app. Please enter your 3 digit pin code.");
response.Gather(new { numDigits = 3, action = string.Format("/api/Authenticate") });
return this.TwiMLResponse(response);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment