feat(Hubspot Node): enable hubspot credentials for http predefined types (#3686)

This commit is contained in:
vcrwr
2022-10-17 13:13:59 +02:00
committed by GitHub
parent fc87650180
commit b5c40e6294
3 changed files with 37 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
export class HubspotApi implements ICredentialType {
name = 'hubspotApi';
@@ -12,4 +12,20 @@ export class HubspotApi implements ICredentialType {
default: '',
},
];
authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
qs: {
hapikey: '={{$credentials.apiKey}}',
},
},
};
test: ICredentialTestRequest = {
request: {
baseURL: 'https://api.hubapi.com',
url: '/account-info/v3/details',
},
};
}