Created
August 27, 2014 09:24
-
-
Save kerslake/5bcf4c55d7b2ed207393 to your computer and use it in GitHub Desktop.
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
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