Skip to content

Instantly share code, notes, and snippets.

@jeffhollan
Created May 6, 2016 19:59
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 jeffhollan/f2ce8319f9fa0fa2bb8b4fc7bfef0861 to your computer and use it in GitHub Desktop.
Save jeffhollan/f2ce8319f9fa0fa2bb8b4fc7bfef0861 to your computer and use it in GitHub Desktop.
module.exports = function (context, data) {
context.log('Webhook was triggered!');
var buffer = new Buffer(data.body, 'base64');
context.res = {
status: 200,
body: buffer.toString('utf8')
}
context.done();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment