UNPKG

n8n-nodes-toggl

Version:

n8n community node for Toggl Track time tracking integration with comprehensive operations including client management and webhook support

38 lines (37 loc) 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TogglApi = void 0; class TogglApi { constructor() { this.name = 'togglApi'; this.displayName = 'Toggl API'; this.documentationUrl = 'https://developers.track.toggl.com/docs/authentication'; this.properties = [ { displayName: 'API Token', name: 'apiToken', type: 'string', typeOptions: { password: true }, default: '', description: 'Your Toggl Track API token. You can find this in your Toggl profile settings.', }, ]; this.authenticate = { type: 'generic', properties: { auth: { username: '={{$credentials.apiToken}}', password: 'api_token', }, }, }; this.test = { request: { baseURL: 'https://api.track.toggl.com/api/v9', url: '/me', method: 'GET', }, }; } } exports.TogglApi = TogglApi;