feat(Airtop Node): Add Airtop node (#13809)

This commit is contained in:
Cesar Sanchez
2025-04-01 21:51:04 +02:00
committed by GitHub
parent cf37ee3ced
commit a7a165dda2
48 changed files with 5026 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
import type {
IAuthenticateGeneric,
ICredentialType,
ICredentialTestRequest,
INodeProperties,
} from 'n8n-workflow';
export class AirtopApi implements ICredentialType {
name = 'airtopApi';
displayName = 'Airtop API';
documentationUrl = 'airtop';
properties: INodeProperties[] = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
default: '',
description:
'The Airtop API key. You can create one at <a href="https://portal.airtop.ai/api-keys" target="_blank">Airtop</a> for free.',
required: true,
typeOptions: {
password: true,
},
noDataExpression: true,
},
];
authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
headers: {
Authorization: '=Bearer {{$credentials.apiKey}}',
'api-key': '={{$credentials.apiKey}}',
},
},
};
test: ICredentialTestRequest = {
request: {
method: 'GET',
baseURL: 'https://api.airtop.ai/api/v1',
url: '/sessions',
qs: {
limit: 10,
},
},
};
}