2020-02-03 14:11:35 -08:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
2021-06-12 09:39:55 -07:00
|
|
|
INodeProperties,
|
2020-02-03 14:11:35 -08:00
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
|
|
|
|
export class ClockifyApi implements ICredentialType {
|
|
|
|
name = 'clockifyApi';
|
|
|
|
displayName = 'Clockify API';
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'clockify';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-02-03 14:11:35 -08:00
|
|
|
// The credentials to get from user and save encrypted.
|
|
|
|
// Properties can be defined exactly in the same way
|
|
|
|
// as node properties.
|
|
|
|
{
|
|
|
|
displayName: 'API Key',
|
|
|
|
name: 'apiKey',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-02-03 14:11:35 -08:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|