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.
Dropbox Webhooksor “Don’t call me. I’ll call you.”Steve Marx@smarx[email protected]
View Slide
Polling
Long-polling
Long-polling withmultiple users
Webhooks!
Adding a webhook
The verification requestGET webhooksdemo.webscript.io/?challenge=abc123 HTTP/1.1User-Agent: DropboxWebhooks/1.0---HTTP/1.1 200Content-Length: 6abc123
A notification requestPOST webhooksdemo.webscript.io/ HTTP/1.1User-Agent: DropboxWebhooks/1.0X-Dropbox-Signature: 938f38e2b76dc0e69cfd7ea0735d251567…Content-Type: application/json{"delta": {"users": [12345678]}}---HTTP/1.1 200Content-Length: 0
A notification requestPOST webhooksdemo.webscript.io/ HTTP/1.1User-Agent: DropboxWebhooks/1.0X-Dropbox-Signature: 938f38e2b76dc0e69cfd7ea0735d251567…Content-Type: application/json{"delta": {"users": [12345678]}}---HTTP/1.1 200Content-Length: 0HEX(HMAC_SHA256(app_secret, request_body))
Let’s see some code!
Eat, drink, and use webhooks.