Deveel Webhooks
DeveelGitHub
  • Deveel Webhooks
  • Getting Started
  • Concepts
    • What is a Webhook?
    • What is a Webhook Subscription?
    • What is a Sender of Webhooks?
    • What is a Receiver of Webhooks?
    • What is an Event Notification?
  • Sending Webhooks
    • Configuring the Sender
    • Signing Webhooks
    • Webhook Serialization
  • Webhook Notifications
    • Webhook Subscriptions Management
      • Data Layers
        • Entity Framework Layer
    • The WebhookNotifier Service
    • Webhook Factories
    • Filtering Webhook Subscriptions
  • Receivers
    • Webhook Receivers
    • Facebook Webhook Receiver
    • Receiving Webhooks
    • SendGrid Webhook and E-Mail Receiver
    • Twilio Webhook Receiver
  • Developer Guidelines
  • Frequently Asked Questions
Powered by GitBook
On this page
  • Installation
  • Configuration

Was this helpful?

Edit on GitHub
  1. Receivers

Twilio Webhook Receiver

Twilio is a cloud communications platform as a service (CPaaS) provider, allowing software developers to programmatically make and receive phone calls, send and receive text messages, and perform other communication functions using its web service APIs.

In the process of messaging, Twilio sends a webhook to a configured URL: this contains incoming messages, directed to the receiver, or the status of outgoing messages, sent by an application.

Installation

To enable your ASP.NET Core application to receive Twilio Webhooks, install the Deveel.Webhooks.Receiver.Twilio library, using the NuGet package manager:

dotnet add package Deveel.Webhooks.Receiver.Twilio

Configuration

To configure the Twilio Webhook Receiver, you need to add the TwilioWebhookReceiver to the services collection of your application, in the ConfigureServices method of the Startup class:

public void ConfigureServices(IServiceCollection services) {
  // ...
  services.AddTwilioReceiver();
  // ...
}

Then, you need to configure the receiver in the Configure method of the Startup class:

public void Configure(IApplicationBuilder app, IWebHostEnvironment env) {
  // ...
  app.MapTwilioWebhook("/twilio/webhook");

  app.MapTwilioWebhook("/twilio/other", webhook => {
    // ...
  });
  // ...
}
PreviousSendGrid Webhook and E-Mail ReceiverNextDeveloper Guidelines

Last updated 1 year ago

Was this helpful?