Giter Site home page Giter Site logo

rajasekhard2015 / automated-survey-csharp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from twiliodeved/automated-survey-csharp

0.0 0.0 0.0 2.21 MB

Automated surveys in C#

Home Page: https://www.twilio.com/docs/tutorials/walkthrough/automated-survey/csharp/mvc

License: MIT License

C# 91.40% HTML 8.26% ASP.NET 0.34%

automated-survey-csharp's Introduction

Twilio

Automated Surveys using ASP.NET MVC

This application demonstrates how to use Twilio and TwiML to perform automated phone surveys.

Read the full tutorial here!

Running locally

This application requires Visual Studio and SQLServer Express 2019 with LocalDB enabled.

  1. Clone the repository and cd into it.

  2. Open the solution file in Visual Studio.

    Open the solution file

  3. Build the solution.

    Build the solution

  4. Run Update-Database to execute the migrations.

    (Be sure to check that your database server name matches the one from the connection string on Web.config. For reference, default values where used upon SQLServer installation)

    Run Update-Database

    Running the command Update-Database will run the migrations and run the Seed method, if you want to inspect this you can inspect SQL Server Object Explorer.

That's it!

Configuring Twilio to call your application

Exposing the application using ngrok

For this demo it's necessary that your local application instance is accessible from the Internet. The easiest way to accomplish this during development is using ngrok. The installer and the installation instructions are available here.

Once you have the application running you can expose it to the wider internet by running the following command (port 1153 is the default port for this application).

ngrok http 1153 -host-header="localhost:1153"

Configuring Twilio Webhooks

In order to receive incoming calls we need to first configure our Twilio phone number.

Configure Twilio Phone

Click on the red number, and then set the Voice Request URL. Don’t forget to save the changes.

Set Voice Request URL

Meta

  • No warranty expressed or implied. Software is as is. Diggity.
  • MIT License
  • Lovingly crafted by Twilio Developer Education.

automated-survey-csharp's People

Contributors

dependabot[bot] avatar dependabot-preview[bot] avatar acamino avatar mmena1 avatar smendes avatar well1791 avatar maylonpedroso avatar kathyguerron avatar kwhinnery avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.