Disqus Webhooks Example: start consuming Disqus webhooks and send to ZetaHub
Click Show
(up top) to try the live demo right now, or Remix this
to make it your own.
- Edit the parameters in
🗝.env
and in the url inserver.js
"https://disqus.com/api/3.0/forums/webhooks/create.json?"
+"secret="+process.env.WEBHOOKS_SECRET_KEY
+"&api_key="+process.env.WEBHOOKS_PUBLIC_KEY
+"&access_token="+process.env.WEBHOOKS_ACCESS_TOKEN
+"&forum=disqus-demo-pro"
+"&url=https://disqus-webhook-example.glitch.me/webhook",
- uncomment
// createSubscription()
to create a webhook subscription for the url specified withurl
Also:
- need to add glitch domain to Disqus Application > Settings > Domains
- ZetaHub keys
- Disqus keys
- Disqus shortname
That's it! 🎉
To see your webhooks roll in, click "Show"
👆 and leave a comment or vote in Disqus embed.
This example remixed from wistia-webhooks-example.