UNPKG

@blotato/n8n-nodes-blotato

Version:
44 lines 1.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BlotatoApi = void 0; class BlotatoApi { constructor() { this.name = 'blotatoApi'; this.displayName = 'Blotato API'; this.documentationUrl = 'https://help.blotato.com/api/start#authentication'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', description: 'Your Blotato API key', }, { displayName: 'Blotato Server', name: 'server', type: 'string', default: 'https://backend.blotato.com', description: 'The server to connect to. Just leave is as a default', }, ]; this.authenticate = { type: 'generic', properties: { headers: { 'blotato-api-key': '={{$credentials?.apiKey}}', }, }, }; this.test = { request: { baseURL: '={{$credentials?.server}}', url: '/v2/users/me', method: 'GET', }, }; } } exports.BlotatoApi = BlotatoApi; //# sourceMappingURL=BlotatoApi.credentials.js.map