Skip to content

Instantly share code, notes, and snippets.

@kerslake
Created August 27, 2014 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kerslake/5bcf4c55d7b2ed207393 to your computer and use it in GitHub Desktop.
Save kerslake/5bcf4c55d7b2ed207393 to your computer and use it in GitHub Desktop.
public class UserController : TwilioApiController
{
public HttpResponseMessage Post(VoiceRequest request, string pin)
{
var user = AuthenticationService.GetUser(pin);
var response = new TwilioResponse();
response.Say(string.Format("Hello {0}", user.Name));
response.Pause(2);
response.Hangup();
return this.TwiMLResponse(response);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment