UNPKG

n8n-nodes-digital-ocean

Version:

n8n community node to work with the Digital Ocean API

37 lines 1.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DigitalOceanApi = void 0; class DigitalOceanApi { constructor() { this.name = 'digitalOceanApi'; this.displayName = 'Digital Ocean API'; this.documentationUrl = 'https://www.npmjs.com/package/n8n-nodes-digital-ocean'; this.properties = [ { displayName: 'Access Token', name: 'accessToken', type: 'string', typeOptions: { password: true, }, default: '', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '={{"Bearer " + $credentials.accessToken}}', }, }, }; this.test = { request: { baseURL: 'https://api.digitalocean.com', url: '/v2/account', }, }; } } exports.DigitalOceanApi = DigitalOceanApi; //# sourceMappingURL=DigitalOceanApi.credentials.js.map