This file contains hidden or 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
module.exports = function(context, req) { | |
context.log('push data:', req.body); | |
var str = req.body; | |
var results = str.split("&"); | |
var slackText = getParam(results, "text").replace(/\+/g, " ").replace(/mytodo/g, ""); | |
var userName = getParam(results, "user_name").replace(/\+/g, " "); | |
context.log(getParam(results, "token")); | |
context.log(getParam(results, "channel_name")); |
NewerOlder