mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-30 06:59:41 -08:00
35 lines
663 B
TypeScript
35 lines
663 B
TypeScript
|
import {
|
||
|
IAuthenticateGeneric,
|
||
|
ICredentialTestRequest,
|
||
|
ICredentialType,
|
||
|
INodeProperties,
|
||
|
} from 'n8n-workflow';
|
||
|
|
||
|
export class SendInBlueApi implements ICredentialType {
|
||
|
name = 'sendInBlueApi';
|
||
|
displayName = 'SendInBlue';
|
||
|
documentationUrl = 'sendInBlueApi';
|
||
|
properties: INodeProperties[] = [
|
||
|
{
|
||
|
displayName: 'API Key',
|
||
|
name: 'apiKey',
|
||
|
type: 'string',
|
||
|
default: '',
|
||
|
},
|
||
|
];
|
||
|
authenticate: IAuthenticateGeneric = {
|
||
|
type: 'generic',
|
||
|
properties: {
|
||
|
headers: {
|
||
|
'api-key': '={{$credentials.apiKey}}',
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
test: ICredentialTestRequest = {
|
||
|
request: {
|
||
|
baseURL: 'https://api.sendinblue.com/v3',
|
||
|
url: '/account',
|
||
|
},
|
||
|
};
|
||
|
}
|