webhook & mailhook

12

Click here to load reader

Upload: hean-hong-leong

Post on 29-Jan-2018

385 views

Category:

Software


2 download

TRANSCRIPT

Page 2: Webhook & Mailhook

Agenda

● What Is Webhook?● Webhook Example● Why Webhook?● What Is Mailhook?● Mailhook Example● Why Mailhook?

Page 3: Webhook & 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

Page 4: Webhook & Mailhook

What Is Webhook?

Page 5: Webhook & Mailhook

GitHub Webhook

Page 6: Webhook & Mailhook

PayPal IPN

Page 7: Webhook & Mailhook

Why Webhook?

● Decouple event trigger and event handler● Publish/subscribe instead of polling

Page 8: Webhook & Mailhook

What Is Mailhook?

Page 9: Webhook & Mailhook

Mailgun

Page 10: Webhook & Mailhook

Why Mailhook?

● Process emails (in web app) without needing to host/implement SMTP server

Page 11: Webhook & Mailhook

Tip For Software Development

● Use RequestBin to study data been sent in HTTP callbacks

RequestBin - http://requestb.in/

Page 12: Webhook & Mailhook

So Long, and Thanks for All the Fish