mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-12-19 18:36:14 -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}}'
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue