aspnet / WebHooks

[Archived] Libraries to create and consume web hooks on ASP.NET Core. Project moved to https://github.com/aspnet/AspLabs
Apache License 2.0
627 stars 439 forks source link

Webhook sender real example require #120

Closed shahzadgodil closed 6 years ago

shahzadgodil commented 7 years ago

Hello,

I am looking for real life Webhook example.

I want to implement Webhook “SENDER” for sending events to Zapier in my ASP.net application.

I want to send AddCustomer and DeleteCustomer event from my application to Zapier App event.

How I can write code for send JSON data in AddCustomer and DeleteCustomer function? What exact functions will be called of WebHook classes in AddCustomer and DeleteCustomerc?

I have also see this sample for implementing Webhook Sender. But I didn’t find any real life example in it https://blogs.msdn.microsoft.com/webdev/2015/09/15/sending-webhooks-with-asp-net-webhooks-preview/

Thanks Shahzad

garora commented 7 years ago

@shahzadgodil - have you gone through these WebHook Custom Sender?

shahzadgodil commented 7 years ago

https://blogs.msdn.microsoft.com/webdev/2015/09/15/sending-webhooks-with-asp-net-webhooks-preview/

The receiver examples are quite clear and giving you real life example. But sender examples are not in detail. How can I send data from my AddEmployee via webhook with actual data

I want code example

dougbu commented 6 years ago

The Custom Sender sample is the best place to start.

The basic requirement is to use the Microsoft.AspNet.WebHooks.Custom* packages and override the behaviour to match the Zapier protocol. The WebHooks sender implements a custom protocol, not Zapier's. Suspect overrides will mainly be to methods in the WebHookSender subclass that makes sense in your scenario.