mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-12-20 02:36:16 -06:00
Credencial y nodo de VerificarEmailconfigurado exitosamente
This commit is contained in:
parent
9bc48cec2c
commit
1e3b2dc957
6 changed files with 80 additions and 13 deletions
49
nodes/VerificarEmail/VerificarEmail.node.ts
Normal file
49
nodes/VerificarEmail/VerificarEmail.node.ts
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
import { INodeType, INodeTypeDescription, NodeConnectionTypes } from 'n8n-workflow';
|
||||
export class VerificarEmail implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Verificacion de Validez de Email',
|
||||
name: 'verificarEmail',
|
||||
icon: 'file:mail-mail-email.svg',
|
||||
group: ['transform'],
|
||||
version: 1,
|
||||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||
description: 'Node para verificar emails usando un servicio externo (emailable.com)',
|
||||
defaults: {
|
||||
name: 'Verficar Email',
|
||||
},
|
||||
inputs: [NodeConnectionTypes.Main],
|
||||
outputs: [NodeConnectionTypes.Main],
|
||||
credentials: [
|
||||
{
|
||||
name: 'verificarEmailApi',
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
requestDefaults: {
|
||||
baseURL: 'https://api.emailable.com/v1', // Solo el dominio.
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
},
|
||||
properties: [
|
||||
{
|
||||
displayName: 'Validar Email',
|
||||
name: 'email',
|
||||
type: 'string',
|
||||
placeholder: 'correo@email.com',
|
||||
required: true,
|
||||
default: 'dylanbohorquez77@gmail.com',
|
||||
routing: {
|
||||
request: {
|
||||
url: '/verify',
|
||||
qs: {
|
||||
email: '={{$value}}',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
usableAsTool: true
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue