-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
working on issue with file name and dots
- Loading branch information
1 parent
f7a5df1
commit da96647
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters