mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
36 lines
876 B
TypeScript
36 lines
876 B
TypeScript
import type { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
|
|
export class AirtableApi implements ICredentialType {
|
|
name = 'airtableApi';
|
|
|
|
displayName = 'Airtable API';
|
|
|
|
documentationUrl = 'airtable';
|
|
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName:
|
|
'API Keys will be deprecated by the end of January 2024, see <a href="https://support.airtable.com/docs/airtable-api-key-deprecation-notice" target="_blank">this article</a> for more details. We recommend to use Personal Access Token instead.',
|
|
name: 'deprecated',
|
|
type: 'notice',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'API Key',
|
|
name: 'apiKey',
|
|
type: 'string',
|
|
typeOptions: { password: true },
|
|
default: '',
|
|
},
|
|
];
|
|
|
|
authenticate: IAuthenticateGeneric = {
|
|
type: 'generic',
|
|
properties: {
|
|
qs: {
|
|
api_key: '={{$credentials.apiKey}}',
|
|
},
|
|
},
|
|
};
|
|
}
|