n8n/packages/nodes-base/credentials/JotFormApi.credentials.ts

35 lines
765 B
TypeScript
Raw Normal View History

import { ICredentialType, INodeProperties } from 'n8n-workflow';
2020-01-20 13:52:34 -08:00
export class JotFormApi implements ICredentialType {
name = 'jotFormApi';
displayName = 'JotForm API';
documentationUrl = 'jotForm';
properties: INodeProperties[] = [
2020-01-20 13:52:34 -08:00
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
2020-01-20 13:52:34 -08:00
default: '',
},
{
displayName: 'API Domain',
name: 'apiDomain',
type: 'options',
options: [
{
name: 'api.jotform.com',
value: 'api.jotform.com',
},
{
name: 'eu-api.jotform.com',
value: 'eu-api.jotform.com',
},
],
default: 'api.jotform.com',
description:
'The API domain to use. Use "eu-api.jotform.com" if your account is in based in Europe.',
},
2020-01-20 13:52:34 -08:00
];
}