n8n-nodes-whatsapp-buttons
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -16,3 +16,3 @@ "use strict"; | ||
version: 1, | ||
subtitle: "0.1.0", | ||
subtitle: "0.1.1", | ||
description: "Send Message With Buttons", | ||
@@ -160,22 +160,6 @@ defaults: { | ||
}, | ||
action: { | ||
buttons: [ | ||
{ | ||
type: "reply", | ||
reply: { | ||
id: "<UNIQUE_BUTTON_ID_1>", | ||
title: "<BUTTON_TITLE_1>", | ||
}, | ||
}, | ||
{ | ||
type: "reply", | ||
reply: { | ||
id: "<UNIQUE_BUTTON_ID_2>", | ||
title: "<BUTTON_TITLE_2>", | ||
}, | ||
}, | ||
], | ||
}, | ||
action: {}, | ||
}, | ||
}; | ||
console.log(jsonPayload); | ||
if (headerAction == "image") { | ||
@@ -189,2 +173,3 @@ jsonPayload.interactive.header = { | ||
} | ||
console.log(jsonPayload); | ||
if (footer.length > 0) { | ||
@@ -195,2 +180,3 @@ jsonPayload.interactive.footer = { | ||
} | ||
console.log(jsonPayload); | ||
if (queryParameters.length > 0) { | ||
@@ -212,2 +198,3 @@ const parametersArray = queryParameters.map((x) => { | ||
} | ||
console.log(jsonPayload); | ||
return axios_1.default.post(url, JSON.stringify(jsonPayload), { | ||
@@ -214,0 +201,0 @@ headers: { Authorization: `Bearer ${credentials.apiKey}` }, |
{ | ||
"name": "n8n-nodes-whatsapp-buttons", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Encapsulate WhatsApp Business API for sending messages with actions", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
{ | ||
"name": "n8n-nodes-whatsapp-buttons", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Encapsulate WhatsApp Business API for sending messages with actions", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91222
263