Files
Superalgos/DesignSpace/Workspace/FunctionLibraries/WebhookFunctions.js
T
2020-04-16 18:19:58 +02:00

19 lines
417 B
JavaScript

function newWebhookFunctions () {
thisObject = {
sendTestMessage: sendTestMessage
}
return thisObject
function sendTestMessage (node) {
let testMessage = loadPropertyFromNodeConfig(node.payload, 'testMessage')
let letURL = loadPropertyFromNodeConfig(node.payload, 'webhookURL')
callServer(testMessage, letURL, onResponse)
function onResponse (err) {
console.log(err)
}
}
}