2021-02-14 08:56:34 -08:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
2021-06-12 09:39:55 -07:00
|
|
|
INodeProperties,
|
2021-02-14 08:56:34 -08:00
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export class PostHogApi implements ICredentialType {
|
|
|
|
name = 'postHogApi';
|
|
|
|
displayName = 'PostHog API';
|
2021-06-18 14:46:21 -07:00
|
|
|
documentationUrl = 'postHog';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2021-02-14 08:56:34 -08:00
|
|
|
{
|
|
|
|
displayName: 'URL',
|
|
|
|
name: 'url',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2021-02-14 08:56:34 -08:00
|
|
|
default: 'https://app.posthog.com',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'API Key',
|
|
|
|
name: 'apiKey',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2021-02-14 08:56:34 -08:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|