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
|
|
@ -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';
|
import { INodeType, INodeTypeDescription, NodeConnectionTypes } from 'n8n-workflow';
|
||||||
export class VerificarEmail implements INodeType {
|
export class VerificarEmail implements INodeType {
|
||||||
description: INodeTypeDescription = {
|
description: INodeTypeDescription = {
|
||||||
displayName: 'Verificacion de Email',
|
displayName: 'Verificacion de Validez de Email',
|
||||||
name: 'verificarEmail',
|
name: 'verificarEmail',
|
||||||
icon: 'file:mail-mail-email.svg',
|
icon: 'file:mail-mail-email.svg',
|
||||||
group: ['transform'],
|
group: ['transform'],
|
||||||
|
|
@ -15,12 +15,12 @@ export class VerificarEmail implements INodeType {
|
||||||
outputs: [NodeConnectionTypes.Main],
|
outputs: [NodeConnectionTypes.Main],
|
||||||
credentials: [
|
credentials: [
|
||||||
{
|
{
|
||||||
name: 'VerificarEmailApi',
|
name: 'verificarEmailApi',
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
requestDefaults: {
|
requestDefaults: {
|
||||||
baseURL: 'https://api.emailable.com/v1/verify',
|
baseURL: 'https://api.emailable.com/v1', // Solo el dominio.
|
||||||
headers: {
|
headers: {
|
||||||
Accept: 'application/json',
|
Accept: 'application/json',
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|
@ -35,11 +35,14 @@ export class VerificarEmail implements INodeType {
|
||||||
required: true,
|
required: true,
|
||||||
default: 'dylanbohorquez77@gmail.com',
|
default: 'dylanbohorquez77@gmail.com',
|
||||||
routing: {
|
routing: {
|
||||||
|
request: {
|
||||||
|
url: '/verify',
|
||||||
qs: {
|
qs: {
|
||||||
email: '={{$value}}',
|
email: '={{$value}}',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
],
|
],
|
||||||
usableAsTool: true
|
usableAsTool: true
|
||||||
};
|
};
|
||||||
|
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",
|
"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",
|
"license": "MIT",
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"n8n-community-node-package"
|
"n8n-community-node-package"
|
||||||
],
|
],
|
||||||
"author": {
|
"author": {
|
||||||
"name": "",
|
"name": "Dylan Bohorquez",
|
||||||
"email": ""
|
"email": "dylan.bohorquez@agrosoft.com.ec"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
@ -31,12 +31,10 @@
|
||||||
"n8nNodesApiVersion": 1,
|
"n8nNodesApiVersion": 1,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"credentials": [
|
"credentials": [
|
||||||
"dist/credentials/GithubIssuesApi.credentials.js",
|
"dist/credentials/VerificarEmailApi.credentials.js"
|
||||||
"dist/credentials/GithubIssuesOAuth2Api.credentials.js"
|
|
||||||
],
|
],
|
||||||
"nodes": [
|
"nodes": [
|
||||||
"dist/nodes/GithubIssues/GithubIssues.node.js",
|
"dist/nodes/VerificarEmail/VerificarEmail.node.js"
|
||||||
"dist/nodes/Example/Example.node.js"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue