Skip to content

Commit

Permalink
working on issue with file name and dots
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbenge committed Jul 18, 2017
1 parent f7a5df1 commit da96647
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions io-event-logging-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
var request = require('request-promise');
//var documentdb = require('documentdb');

function logData(postData) {
var options = {
method: 'post',
body: postData,
json: true,
url: 'https://requestb.in/15rsccl1'
}

request(options, function (error, response, data) {
if (!error) {
console.log(body);
}
});
}

function main(params) {
/* respond to the challenge request with an echo */
if (params.challenge) {
return { "challenge": params.challenge };
}

if(params.echo){
return { "echo": params.echo };
}

logData(params);
}

exports.main = main;
2 changes: 1 addition & 1 deletion manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ package:
actions:
handle-webhook:
version: 1.0
location: io-event-logging-test-1.0.1.js
location: io-event-logging-test.js
runtime: nodejs@6
inputs:

0 comments on commit da96647

Please sign in to comment.