UNPKG

@skriptfabrik/n8n-nodes-moco

Version:
52 lines 1.54 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MocoApi = void 0; class MocoApi { constructor() { this.name = 'mocoApi'; this.displayName = 'MOCO API'; this.documentationUrl = 'https://github.com/skriptfabrik/n8n-nodes/blob/main/nodes/moco/README.md'; this.properties = [ { displayName: 'Sub-Domain', name: 'subDomain', type: 'string', default: '', }, { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true, }, default: '', }, { displayName: 'Web Hook Secret', name: 'webhookSecret', type: 'string', typeOptions: { password: true, }, default: '', }, ]; this.authenticate = { type: 'generic', properties: { headers: { authorization: '=Token token={{$credentials.apiKey}}', }, }, }; this.test = { request: { baseURL: '=https://{{$credentials.subDomain}}.mocoapp.com/api/v1', url: '/session', }, }; } } exports.MocoApi = MocoApi; //# sourceMappingURL=MocoApi.credentials.js.map