Skip to content

Instantly share code, notes, and snippets.

@Theo-
Created July 28, 2017 23:29
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-/f86e68c07d757aa91e3bc22e6a2d9672 to your computer and use it in GitHub Desktop.
Save Theo-/f86e68c07d757aa91e3bc22e6a2d9672 to your computer and use it in GitHub Desktop.
Dispatch Demo
var dispatch = require('dispatch');
dispatch.url('https://user.com/callback')
.send({
json: 'payload'
})
.then((result) => {
// Webhook successfully delivered
}, (error) => {
// Retrying later
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment