Comment on Dropbox WebhooksparentComments−vladgur12yWhats 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−smarxOP12yWebhooks 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.−smarxOP12yI went ahead and published Python code to generate fake webhook requests. See https://github.com/dropbox/dropbox_hook.−johns12yhttp://john-sheehan.com/blog/a-survey-of-the-localhost-proxy...
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.
http://john-sheehan.com/blog/a-survey-of-the-localhost-proxy...