We provide sample apps on GitHub, which you can set up and repurpose, or which you can use to quickly test your Webhooks configuration.
Let's walk through setting up a sample app on Heroku:
TOKEN. Assign (paste) your App Secret to the
APP_SECRETconfig var, and assign any string to
TOKEN. We will include this string in any verification requests when you configure the Webhooks product in the App Dashboard (the app will validate the request on its own).
Your app should now be ready to go. Before you return to your App Dashboard to configure the Webhooks product:
). This page will display newly received update notification data, so reload it throughout testing.
TOKENvalue you set above; you'll also need this during product configuration.
The app uses Node.js and these packages:
body-parser(for parsing JSON)
express-x-hub(for SHA1 support)
You can easily verify that your sample app can receive Webhook events.
curl https://<your-subdomain>.herokuapp.comin a terminal window.