Skip to content

Instantly share code, notes, and snippets.

@Theo-
Created July 29, 2017 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Theo-/e8cad318c7a9883d79755cb6f0c3299f to your computer and use it in GitHub Desktop.
Save Theo-/e8cad318c7a9883d79755cb6f0c3299f to your computer and use it in GitHub Desktop.
WebhookCare
var webhookcare = require('webhookcare')('<API KEY>')
var payload = {
result: 'ok!'
}
webhookcare.send('http://user.com/callback') // Provide the url
.header('X-Secret-Header', 'a secret header') // Add headers (optional)
.json(payload) // provide a json payload (optional)
.end() // Send the request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment