2019-07-07 10:19:07 -07:00
|
|
|
import {
|
2022-07-10 03:32:19 -07:00
|
|
|
IAuthenticateGeneric,
|
2019-07-07 10:19:07 -07:00
|
|
|
ICredentialType,
|
2021-06-12 09:39:55 -07:00
|
|
|
INodeProperties,
|
2019-07-07 10:19:07 -07:00
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
}
|