UNPKG

@brightdata/n8n-nodes-brightdata

Version:
38 lines 1.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BrightDataApi = void 0; class BrightDataApi { constructor() { this.name = 'brightdataApi'; this.displayName = 'BrightData API'; this.documentationUrl = 'https://docs.brightdata.com/api-reference/introduction'; this.properties = [ { displayName: 'Token', name: 'token', type: 'string', typeOptions: { password: true, }, default: '', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '={{"Bearer " + $credentials.token}}', }, }, }; this.test = { request: { baseURL: 'https://api.brightdata.com', url: '/zone/get_active_zones', method: 'GET', }, }; } } exports.BrightDataApi = BrightDataApi; //# sourceMappingURL=BrightDataApi.credentials.js.map