webhook & mailhook
TRANSCRIPT
Webhook & Mailhook
Leong Hean [email protected](CC) BY
Agenda
● What Is Webhook?● Webhook Example● Why Webhook?● What Is Mailhook?● Mailhook Example● Why Mailhook?
What Is Webhook?
● “User defined HTTP callbacks”
1. System triggers events2. User provides callback URL for event of interest3. When event of interest is triggered, user gets notified via
HTTP request to provided URL
What Is Webhook?
GitHub Webhook
PayPal IPN
Why Webhook?
● Decouple event trigger and event handler● Publish/subscribe instead of polling
What Is Mailhook?
Mailgun
Why Mailhook?
● Process emails (in web app) without needing to host/implement SMTP server
Tip For Software Development
● Use RequestBin to study data been sent in HTTP callbacks
RequestBin - http://requestb.in/
So Long, and Thanks for All the Fish