This application example demonstrates how to do Simple phone verification with C# ASP.NET Core MVC, and Twilio Verify.
We are currently in the process of updating this sample template. If you are encountering any issues with the sample, please open an issue at github.com/twilio-labs/code-exchange/issues and we'll try to help you.
-
First clone this repository and
cdinto it.$ git clone [email protected]:TwilioDevEd/verify-v2-quickstart-csharp.git $ cd verify-v2-quickstart-csharp/VerifyV2Quickstart/
-
Create a new file
twilio.jsonand update the content.{ "Twilio": { "AccountSid": "Your Twilio Account SID", "AuthToken": "Your Twilio Auth Token", "VerificationSid": "Your Verify Service SID" } } -
Build the solution
dotnet build. -
Run
dotnet ef database updateto create the local DB. -
Run the application
dotnet run. -
Check it out at http://localhost:5000
That's it!
-
cd into VerifyV2Quickstart.Tests project
cd verify-v2-quickstart-csharp/VerifyV2Quickstart.Tests -
Run tests
dotnet test
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.