Skip to content

Comment on Dropbox Webhooksparent

Comments

Whats the best/recommended way to test webhooks with a server running locally? Do you require webhook urls to be SSLd?

P.S. Also eagerly waiting for your Shared Folder API [1] :)

https://news.ycombinator.com/item?id=7484409

Webhooks don't require SSL. We're going to publish a little Python script soon that can generate fake webhook notifications for local testing, but in the meantime, I'd suggest just using curl. Something like this:

curl http://127.0.0.1/whatever -d '{"deltas": {"users:" [12345]}}'

Another possibility is to use a tool like ngrok or localtunnel, which is what some of our beta testers did.

I went ahead and published Python code to generate fake webhook requests. See https://github.com/dropbox/dropbox_hook.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.