Please I need help in implementing web hook receiver in ASP.Net Application
Loading
Please I need help in implementing web hook receiver in ASP.Net Application
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
John IwaszPosted Dec 28, 2022, 3:37 PM
Using the Microsoft.AspNetCore.WebHooks.Receivers package is not a good idea as it's deprecated. Setting up a controller to receive a web hook request is generally the same as setting up any other web api controller. Testing it is the hard part as you need the sender to generate a request that lands on your webhook. That requires some configuration on the sender to point it to your development URL. If the provider is a service like Twilio or Github, you will need to authenticate the request and that process should be covered in documentation.
To test, you can use a free instance of ngrok. It creates a public endpoint that you can register on the service that routes to a port on your dev environment.
You can register the public ngork URL with your service provider and then any messages generated are forwarded to your dev endpoint running on a local port.
Pasang TamangPosted Dec 28, 2022, 8:58 AM
Hi,
Here is nice documentation about WebHook receiver
https://learn.microsoft.com/en-us/aspnet/webhooks/receiving/receivers
Regards,
Pasang