Save 37% off PRO during our Black Friday Sale! »

Dropbox Webhooks

Dropbox Webhooks

Webhooks are a way for web apps to get real-time notifications when users' files change in Dropbox.

This presentation is a brief overview of Dropbox webhooks. Learn more here: https://www.dropbox.com/developers/webhooks/tutorial.

E79da0981ef1f312f9ba7d4331653992?s=128

Steve Marx

May 21, 2014
Tweet

Transcript

  1. Dropbox Webhooks or “Don’t call me. I’ll call you.” Steve

    Marx @smarx smarx@dropbox.com
  2. Polling

  3. Long-polling

  4. Long-polling with multiple users

  5. Webhooks!

  6. Adding a webhook

  7. The verification request GET webhooksdemo.webscript.io/?challenge=abc123 HTTP/1.1 User-Agent: DropboxWebhooks/1.0 --- HTTP/1.1

    200 Content-Length: 6 abc123
  8. A notification request POST webhooksdemo.webscript.io/ HTTP/1.1 User-Agent: DropboxWebhooks/1.0 X-Dropbox-Signature: 938f38e2b76dc0e69cfd7ea0735d251567…

    Content-Type: application/json {"delta": {"users": [12345678]}} --- HTTP/1.1 200 Content-Length: 0
  9. A notification request POST webhooksdemo.webscript.io/ HTTP/1.1 User-Agent: DropboxWebhooks/1.0 X-Dropbox-Signature: 938f38e2b76dc0e69cfd7ea0735d251567…

    Content-Type: application/json {"delta": {"users": [12345678]}} --- HTTP/1.1 200 Content-Length: 0 HEX(HMAC_SHA256(app_secret, request_body))
  10. Let’s see some code!

  11. None
  12. None
  13. None
  14. None
  15. Eat, drink, and use webhooks.