UNPKG

n8n-nodes-referral-factory

Version:
44 lines 1.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferralFactoryApi = void 0; class ReferralFactoryApi { constructor() { this.name = 'referralFactoryApi'; this.displayName = 'Referral Factory API'; this.documentationUrl = 'https://referral-factory.com/settings/webhooks-and-api'; this.properties = [ { displayName: 'API Access Token', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', }, { displayName: 'Base URL', name: 'baseUrl', type: 'hidden', default: 'https://referral-factory.com/api/n8n', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Accept: 'application/json', 'Content-Type': 'application/json', Authorization: '={{ "Bearer " + $credentials.apiKey }}', }, }, }; this.test = { request: { baseURL: 'https://referral-factory.com/api/n8n', url: '/test', method: 'GET', }, }; } } exports.ReferralFactoryApi = ReferralFactoryApi; //# sourceMappingURL=ReferralFactoryApi.credentials.js.map