2022-07-24 08:36:17 -07:00
import { ICredentialType , INodeProperties } from 'n8n-workflow' ;
2020-01-28 06:46:38 -08:00
export class HarvestApi implements ICredentialType {
name = 'harvestApi' ;
2022-12-02 12:54:28 -08:00
2020-01-28 06:46:38 -08:00
displayName = 'Harvest API' ;
2022-12-02 12:54:28 -08:00
2020-08-17 05:42:09 -07:00
documentationUrl = 'harvest' ;
2022-12-02 12:54:28 -08:00
2021-06-12 09:39:55 -07:00
properties : INodeProperties [ ] = [
2020-01-28 06:46:38 -08:00
{
displayName : 'Access Token' ,
name : 'accessToken' ,
2021-06-12 09:39:55 -07:00
type : 'string' ,
2022-11-01 09:41:45 -07:00
typeOptions : { password : true } ,
2020-01-28 06:46:38 -08:00
default : '' ,
2022-07-24 08:36:17 -07:00
description :
'Visit your account details page, and grab the Access Token. See <a href="https://help.getharvest.com/api-v2/authentication-api/authentication/authentication/">Harvest Personal Access Tokens</a>.' ,
2020-01-28 06:46:38 -08:00
} ,
] ;
}