2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2021-08-01 04:49:24 -07:00
|
|
|
|
|
|
|
export class MarketstackApi implements ICredentialType {
|
|
|
|
name = 'marketstackApi';
|
|
|
|
displayName = 'Marketstack API';
|
|
|
|
documentationUrl = 'marketstack';
|
2021-10-07 14:07:56 -07:00
|
|
|
properties: INodeProperties[] = [
|
2021-08-01 04:49:24 -07:00
|
|
|
{
|
|
|
|
displayName: 'API Key',
|
|
|
|
name: 'apiKey',
|
2021-10-07 14:07:56 -07:00
|
|
|
type: 'string',
|
2022-11-01 09:41:45 -07:00
|
|
|
typeOptions: { password: true },
|
2021-08-01 04:49:24 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Use HTTPS',
|
|
|
|
name: 'useHttps',
|
2021-10-07 14:07:56 -07:00
|
|
|
type: 'boolean',
|
2021-08-01 04:49:24 -07:00
|
|
|
default: false,
|
2022-04-13 23:32:27 -07:00
|
|
|
description: 'Whether to use HTTPS (paid plans only)',
|
2021-08-01 04:49:24 -07:00
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|