Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

n8n-nodes-evolution-api

Package Overview
Dependencies
Maintainers
0
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

n8n-nodes-evolution-api - npm Package Compare versions

Comparing version 0.1.31 to 0.1.32

26

dist/nodes/HttpBin/HttpBin.node.js

@@ -156,2 +156,28 @@ "use strict";

}
if (resource === 'messages-api' && operation === 'sendImage') {
const credentials = await this.getCredentials('httpbinApi');
const serverUrl = credentials['server-url'];
const apiKey = credentials.apikey;
const instanceName = this.getNodeParameter('instanceName', 0);
const remoteJid = this.getNodeParameter('remoteJid', 0);
const media = this.getNodeParameter('media', 0);
const mimetype = this.getNodeParameter('mimetype', 0);
const caption = this.getNodeParameter('caption', 0);
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
apikey: apiKey,
},
uri: `${serverUrl}/message/sendMedia/${instanceName}`,
body: {
number: remoteJid,
media: media,
mimetype: mimetype,
caption: caption,
},
json: true,
};
responseData = await this.helpers.request(options);
}
return [this.helpers.returnJsonArray(responseData)];

@@ -158,0 +184,0 @@ }

153

dist/nodes/HttpBin/HttpVerbDescription.js

@@ -41,2 +41,3 @@ "use strict";

description: 'Criar uma instancia com Proxy',
action: 'Criar instancia com proxy',
routing: {

@@ -64,3 +65,2 @@ request: {

},
action: 'Criar instancia com proxy an instances api',
},

@@ -71,2 +71,3 @@ {

description: 'Buscar instancias existentes',
action: 'Buscar instancias',
routing: {

@@ -81,3 +82,2 @@ request: {

},
action: 'Buscar instancias an instances api',
},

@@ -102,2 +102,3 @@ ],

description: 'Enviar mensagem de texto',
action: 'Enviar texto',
routing: {

@@ -116,19 +117,85 @@ request: {

},
action: 'Enviar texto a messages api',
},
{
name: 'Enviar Midia',
value: 'sendMedia',
description: 'Buscar instâncias existentes',
name: 'Enviar Imagem',
value: 'sendImage',
description: 'Enviar mensagem de imagem',
action: 'Enviar imagem',
routing: {
request: {
method: 'GET',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/instance/fetchInstances{{$parameter.instanceName ? "?instanceName=" + $parameter.instanceName : ""}}',
method: 'POST',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/message/sendMedia/{{$parameter.instance}}',
headers: {
apikey: '={{$credentials.apikey}}',
},
body: {
number: '={{$node["Número"].number}}',
mediatype: 'image',
mimetype: '={{$node["Mimetype"].mimetype || "image/png"}}',
caption: '={{$node["Caption"].caption || "Teste de caption"}}',
media: '={{$node["Imagem"].media}}',
fileName: '={{$node["FileName"].fileName || "Imagem.png"}}',
},
},
},
action: 'Enviar midia a messages api',
},
{
name: 'Enviar Video',
value: 'sendVideo',
description: 'Enviar mensagem de video',
action: 'Enviar video',
routing: {
request: {
method: 'POST',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/message/sendMedia/{{$parameter.instance}}',
headers: {
apikey: '={{$credentials.apikey}}',
},
body: {
number: '={{$node["Número"].number}}',
midia: '={{$node["Video"].midia}}',
text: '={{$node["Mensagem"].text}}',
},
},
},
},
{
name: 'Enviar Audio',
value: 'sendAudio',
description: 'Enviar mensagem de audio',
action: 'Enviar audio',
routing: {
request: {
method: 'POST',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/message/sendWhatsAppAudio/{{$parameter.instance}}',
headers: {
apikey: '={{$credentials.apikey}}',
},
body: {
number: '={{$node["Número"].number}}',
midia: '={{$node["Audio"].midia}}',
},
},
},
},
{
name: 'Enviar Documento',
value: 'sendDocumento',
description: 'Enviar mensagem de video',
action: 'Enviar documento',
routing: {
request: {
method: 'POST',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/message/sendMedia/{{$parameter.instance}}',
headers: {
apikey: '={{$credentials.apikey}}',
},
body: {
number: '={{$node["Número"].number}}',
midia: '={{$node["Documento"].midia}}',
text: '={{$node["Mensagem"].text}}',
},
},
},
},
],

@@ -381,3 +448,3 @@ default: 'sendText',

{
displayName: 'Nome Da Instância',
displayName: 'Nome Da Inst��ncia',
name: 'instanceName',

@@ -422,2 +489,68 @@ type: 'string',

},
{
displayName: 'Número Do Destinatário',
name: 'remoteJid',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
resource: ['messages-api'],
operation: ['sendImage'],
},
},
},
{
displayName: 'Imagem',
name: 'media',
type: 'string',
default: '',
required: true,
description: 'URL ou base64 da imagem',
displayOptions: {
show: {
resource: ['messages-api'],
operation: ['sendImage'],
},
},
},
{
displayName: 'Mimetype',
name: 'mimetype',
type: 'string',
default: 'image/png',
description: 'Tipo MIME da imagem',
displayOptions: {
show: {
resource: ['messages-api'],
operation: ['sendImage'],
},
},
},
{
displayName: 'Caption',
name: 'caption',
type: 'string',
default: 'Teste de caption',
description: 'Legenda da imagem',
displayOptions: {
show: {
resource: ['messages-api'],
operation: ['sendImage'],
},
},
},
{
displayName: 'Nome Do Arquivo',
name: 'fileName',
type: 'string',
default: 'Imagem.png',
description: 'Nome do arquivo da imagem',
displayOptions: {
show: {
resource: ['messages-api'],
operation: ['sendImage'],
},
},
},
];

@@ -424,0 +557,0 @@ const deleteOperation = [

2

dist/package.json
{
"name": "n8n-nodes-evolution-api",
"version": "0.1.31",
"version": "0.1.32",
"description": "Api não oficial do WhatsApp",

@@ -5,0 +5,0 @@ "keywords": [

{
"name": "n8n-nodes-evolution-api",
"version": "0.1.31",
"version": "0.1.32",
"description": "Api não oficial do WhatsApp",

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc