2022-07-24 08:36:17 -07:00
|
|
|
import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
|
2019-07-07 10:19:07 -07:00
|
|
|
|
|
|
|
export class AirtableApi implements ICredentialType {
|
|
|
|
name = 'airtableApi';
|
|
|
|
displayName = 'Airtable API';
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'airtable';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2019-07-07 10:19:07 -07:00
|
|
|
{
|
|
|
|
displayName: 'API Key',
|
|
|
|
name: 'apiKey',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-07-07 10:19:07 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
2022-07-10 03:32:19 -07:00
|
|
|
authenticate: IAuthenticateGeneric = {
|
|
|
|
type: 'generic',
|
|
|
|
properties: {
|
2022-07-14 01:28:34 -07:00
|
|
|
qs: {
|
|
|
|
api_key: '={{$credentials.apiKey}}',
|
2022-07-10 03:32:19 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
2019-07-07 10:19:07 -07:00
|
|
|
}
|