mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-12-18 18:23:01 -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
|
|
@ -0,0 +1,46 @@
|
|||
import {
|
||||
IAuthenticateGeneric,
|
||||
Icon,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class VerificarEmailApi implements ICredentialType {
|
||||
name = 'verificarEmailApi';
|
||||
displayName = 'Verificar Email API';
|
||||
icon: Icon = 'file:mail-mail-email.svg';
|
||||
// Uses the link to this tutorial as an example
|
||||
// Replace with your own docs links when building your own nodes
|
||||
documentationUrl = 'https://docs.n8n.io/integrations/creating-nodes/build/declarative-style-node/';
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Keyy',
|
||||
name: 'apiKey',
|
||||
typeOptions: {
|
||||
password: true,
|
||||
},
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
qs: {
|
||||
'api_key': '={{$credentials.apiKey}}'
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
method: 'GET',
|
||||
url: 'https://api.emailable.com/v1/verify', // Replace with actual endpoint
|
||||
qs: {
|
||||
email: 'dylan.bohorquez@agrosoft.com.ec', // Example email for testing
|
||||
api_key: '={{$credentials.apiKey}}'
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
20
nodes/VerificarEmail/VerificarEmail.node.json
Normal file
20
nodes/VerificarEmail/VerificarEmail.node.json
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"node": "n8n-nodes-base.verificarEmail",
|
||||
"nodeVersion": "1.0",
|
||||
"codexVersion": "1.0",
|
||||
"categories": [
|
||||
"Miscellaneous"
|
||||
],
|
||||
"resources": {
|
||||
"credentialDocumentation": [
|
||||
{
|
||||
"url": ""
|
||||
}
|
||||
],
|
||||
"primaryDocumentation": [
|
||||
{
|
||||
"url": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { INodeType, INodeTypeDescription, NodeConnectionTypes } from 'n8n-workflow';
|
||||
export class VerificarEmail implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Verificacion de Email',
|
||||
displayName: 'Verificacion de Validez de Email',
|
||||
name: 'verificarEmail',
|
||||
icon: 'file:mail-mail-email.svg',
|
||||
group: ['transform'],
|
||||
|
|
@ -15,12 +15,12 @@ export class VerificarEmail implements INodeType {
|
|||
outputs: [NodeConnectionTypes.Main],
|
||||
credentials: [
|
||||
{
|
||||
name: 'VerificarEmailApi',
|
||||
name: 'verificarEmailApi',
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
requestDefaults: {
|
||||
baseURL: 'https://api.emailable.com/v1/verify',
|
||||
baseURL: 'https://api.emailable.com/v1', // Solo el dominio.
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
|
|
@ -35,8 +35,11 @@ export class VerificarEmail implements INodeType {
|
|||
required: true,
|
||||
default: 'dylanbohorquez77@gmail.com',
|
||||
routing: {
|
||||
qs: {
|
||||
email: '={{$value}}',
|
||||
request: {
|
||||
url: '/verify',
|
||||
qs: {
|
||||
email: '={{$value}}',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Before Width: | Height: | Size: 827 B After Width: | Height: | Size: 827 B |
14
package.json
14
package.json
|
|
@ -1,15 +1,15 @@
|
|||
{
|
||||
"name": "n8n-nodes-<...>",
|
||||
"name": "n8n-nodes-VerificarEmail",
|
||||
"version": "0.1.0",
|
||||
"description": "",
|
||||
"description": "Nodo de n8n para verificar la validez de correos electrónicos utilizando una API externa (emailable.com)",
|
||||
"license": "MIT",
|
||||
"homepage": "",
|
||||
"keywords": [
|
||||
"n8n-community-node-package"
|
||||
],
|
||||
"author": {
|
||||
"name": "",
|
||||
"email": ""
|
||||
"name": "Dylan Bohorquez",
|
||||
"email": "dylan.bohorquez@agrosoft.com.ec"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
@ -31,12 +31,10 @@
|
|||
"n8nNodesApiVersion": 1,
|
||||
"strict": true,
|
||||
"credentials": [
|
||||
"dist/credentials/GithubIssuesApi.credentials.js",
|
||||
"dist/credentials/GithubIssuesOAuth2Api.credentials.js"
|
||||
"dist/credentials/VerificarEmailApi.credentials.js"
|
||||
],
|
||||
"nodes": [
|
||||
"dist/nodes/GithubIssues/GithubIssues.node.js",
|
||||
"dist/nodes/Example/Example.node.js"
|
||||
"dist/nodes/VerificarEmail/VerificarEmail.node.js"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue