mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-12-19 10:33:01 -06:00
Clonacion de repositorio y desarrollo de nodo perosnalizado (ts) v1
This commit is contained in:
parent
2e9e5c61ed
commit
9bc48cec2c
27 changed files with 4096 additions and 1079 deletions
46
nodes/VerificarEmail.node.ts
Normal file
46
nodes/VerificarEmail.node.ts
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
import { INodeType, INodeTypeDescription, NodeConnectionTypes } from 'n8n-workflow';
|
||||
export class VerificarEmail implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Verificacion 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/verify',
|
||||
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: {
|
||||
qs: {
|
||||
email: '={{$value}}',
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
usableAsTool: true
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue