Twilio.AspNet.Mvc 5.8.1

There is a newer version of this package available.
See the version list below for details.
Install-Package Twilio.AspNet.Mvc -Version 5.8.1
dotnet add package Twilio.AspNet.Mvc --version 5.8.1
<PackageReference Include="Twilio.AspNet.Mvc" Version="5.8.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Twilio.AspNet.Mvc --version 5.8.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Twilio.AspNet.Mvc, 5.8.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Twilio.AspNet.Mvc as a Cake Addin
#addin nuget:?package=Twilio.AspNet.Mvc&version=5.8.1

// Install Twilio.AspNet.Mvc as a Cake Tool
#tool nuget:?package=Twilio.AspNet.Mvc&version=5.8.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Twilio.AspNet

Build status

Twilio tools for ASP.NET MVC 3-5 for use with v5.x of the Twilio helper library.

The plan is to support ASP.NET Core soon.

Twilio.AspNet.Mvc

Requirements

Requires .NET 4.5.1 or later with ASP.NET MVC 3-5.

Installation

Install-Package Twilio.AspNet.Mvc

Incoming SMS

using Twilio.AspNet.Common;
using Twilio.AspNet.Mvc;
using Twilio.TwiML;

namespace WebApplication23.Controllers
{
    public class SmsController : TwilioController
    {
        // GET: Sms
        public TwiMLResult Index(SmsRequest request)
        {
            var response = new MessagingResponse();
            response.Message(
                $"Hey there {request.From}! " +
                "How 'bout those Seahawks?"
            );
            return TwiML(response);
        }
    }
}

Incoming Voice Call

using Twilio.AspNet.Common;
using Twilio.AspNet.Mvc;
using Twilio.TwiML;

namespace WebApplication23.Controllers
{
    public class VoiceController : TwilioController
    {
        // GET: Voice
        public TwiMLResult Index(VoiceRequest request)
        {
            var response = new VoiceResponse();
            response.Say($"Welcome. Are you from {request.FromCity}?");
            return TwiML(response);
        }
    }
}

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Twilio.AspNet.Mvc:

Repository Stars
ONLYOFFICE/CommunityServer
Free open source office suite with business productivity tools: document and project management, CRM, mail aggregator.
Version Downloads Last updated
5.37.2 45,725 11/6/2020
5.33.1 147,172 10/16/2019
5.20.1 230,893 10/26/2018
5.9.7 191,873 3/2/2018
5.9.6 3,542 2/12/2018
5.8.3 26,459 11/9/2017
5.8.1 7,332 10/31/2017
5.0.2 46,822 6/7/2017
5.0.1 39,465 2/22/2017

Compatible with Twilio helper library 5.8.1 and above.