feat(LoneScale Node): Add LoneScale node and Trigger node (#5146)

This commit is contained in:
Yann ALEMAN
2023-05-23 13:52:54 +02:00
committed by GitHub
parent ec393bc041
commit 4b854333d4
9 changed files with 745 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class LoneScaleApi implements ICredentialType {
name = 'loneScaleApi';
displayName = 'LoneScale API';
properties: INodeProperties[] = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];
authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
headers: {
Authorization: '={{$credentials.apiKey}}',
},
},
};
test: ICredentialTestRequest = {
request: {
baseURL: 'https://public-api.lonescale.com',
url: '/users',
},
};
}