fix(wufooTrigger Node): fix form names not being listed correctly (#4151)

This commit is contained in:
Jonathan Bennetts
2022-09-30 12:18:14 +01:00
committed by GitHub
parent 764bd3522b
commit 616d62aa8e
3 changed files with 29 additions and 11 deletions

View File

@@ -1,4 +1,9 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class WufooApi implements ICredentialType {
name = 'wufooApi';
@@ -18,4 +23,21 @@ export class WufooApi implements ICredentialType {
default: '',
},
];
authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
auth: {
username: '={{$credentials.apiKey}}',
password: 'not-needed',
},
},
};
test: ICredentialTestRequest = {
request: {
baseURL: '=https://{{$credentials.subdomain}}.wufoo.com',
url: '/api/v3/forms.json',
},
};
}