webhooks
This commit is contained in:
1 parent
abb05c7e77
commit
b5d3971ee0
2 files changed
+24
-1
No files matched your search
@@ -0,0 +1,18 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user