Twilio.AspNet.Mvc 5.9.6

Suggested Alternatives

Twilio.AspNet.Mvc 8.0.0

Additional Details

Previous versions contain bugs and vulnerabilities. See CHANGELOG.md for more details.

There is a newer version of this package available.
See the version list below for details.
dotnet add package Twilio.AspNet.Mvc --version 5.9.6
NuGet\Install-Package Twilio.AspNet.Mvc -Version 5.9.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Twilio.AspNet.Mvc" Version="5.9.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Twilio.AspNet.Mvc --version 5.9.6
#r "nuget: Twilio.AspNet.Mvc, 5.9.6"
#r directive can be used in F# Interactive and Polyglot Notebooks. 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.9.6

// Install Twilio.AspNet.Mvc as a Cake Tool
#tool nuget:?package=Twilio.AspNet.Mvc&version=5.9.6

Twilio.AspNet

Build status

ASP.NET tools for use with v5.x of the Twilio helper library for use with:

  • ASP.NET MVC 3-5 on the .NET Framework
  • ASP.NET Core 1-2 on .NET Core

You only need this library if you wish to respond to Twilio webhooks for voice calls and SMS messages. If you only need to use the Twilio REST API's, then you only need the Twilio helper library.

Twilio.AspNet.Mvc

Requirements

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

Installation

Install-Package Twilio.AspNet.Mvc

Twilio.AspNet.Core

Requirements

Requires .NET Core 1.0 or later with ASP.NET Core 1.0 or later.

Installation

Install-Package Twilio.AspNet.Core

Code Samples for Either Library

Incoming SMS

using Twilio.AspNet.Common;
using Twilio.AspNet.Mvc; // or .Core
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; // or .Core
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);
        }
    }
}
Product Compatible and additional computed target framework versions.
.NET Framework net451 is compatible.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (2)

Showing the top 2 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.
shr670377723/CommunityServer-master
Version Downloads Last updated
8.0.2 25,821 5/11/2023
8.0.1 1,228 5/2/2023
8.0.1-rc 643 4/21/2023
8.0.0 10,214 3/2/2023
7.0.0 17,902 11/18/2022
7.0.0-rc 656 11/17/2022
6.0.0 40,441 8/5/2022
6.0.0-alpha2 652 8/4/2022
6.0.0-alpha 654 7/20/2022
5.77.0 8,161 7/19/2022
5.73.0 75,223 4/5/2022
5.71.0 17,560 2/24/2022
5.68.3 59,770 11/24/2021
5.37.2 188,811 11/6/2020
5.33.1 366,459 10/16/2019
5.20.1 564,930 10/26/2018
5.9.7 232,208 3/2/2018
5.9.6 8,519 2/12/2018
5.8.3 58,868 11/9/2017
5.8.1 12,183 10/31/2017
5.0.2 70,391 6/7/2017
5.0.1 54,070 2/22/2017

Broke out Twilio.AspNet.Common into separate package.