mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 22:54:05 -08:00
d5d4dd3845
* Notion cred updated * Airtable new cred * revamped twilio cred * urlscanlo revamp cred * Wordpress revamp cred with testing * SendGrid cred revamped * 🐛 Fix imports * 🐛 Fixes imports in urlscanio * Fix airtable cred injection * Fixes notion request, changes way of cred injection * Change auth type from method to generic * Fix minor issues * Fix lint issue Co-authored-by: Omar Ajoue <krynble@gmail.com>
37 lines
676 B
TypeScript
37 lines
676 B
TypeScript
import {
|
|
IAuthenticateGeneric,
|
|
ICredentialTestRequest,
|
|
ICredentialType,
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
export class UrlScanIoApi implements ICredentialType {
|
|
name = 'urlScanIoApi';
|
|
displayName = 'urlscan.io API';
|
|
documentationUrl = 'urlScanIo';
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'API Key',
|
|
name: 'apiKey',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
},
|
|
];
|
|
authenticate = {
|
|
type: 'generic',
|
|
properties: {
|
|
headers: {
|
|
'API-KEY': '={{$credentials.apiKey}}',
|
|
},
|
|
},
|
|
} as IAuthenticateGeneric;
|
|
|
|
test: ICredentialTestRequest = {
|
|
request: {
|
|
baseURL: 'https://urlscan.io',
|
|
url: '/user/quotas',
|
|
},
|
|
};
|
|
}
|