UNPKG

@picsart/n8n-nodes-picsart-apis

Version:

n8n nodes to integrate Picsart API: remove backgrounds and enhance images with AI-powered tools.

43 lines 1.36 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PicsartApi = void 0; class PicsartApi { constructor() { this.name = 'picsartApi'; this.displayName = 'Picsart API'; this.documentationUrl = 'https://docs.picsart.io/docs/getting-started-with-picsart-api'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', default: '', required: true, typeOptions: { password: true, }, description: 'Your Picsart API key. You can get it from https://console.picsart.io/dashboard', }, ]; this.authenticate = { type: 'generic', properties: { headers: { 'x-picsart-api-key': '={{$credentials.apiKey}}', }, }, }; this.test = { request: { baseURL: 'https://api.picsart.io', url: '/tools/1.0/balance', method: 'GET', headers: { 'accept': 'application/json', }, }, }; } } exports.PicsartApi = PicsartApi; //# sourceMappingURL=PicsartApi.credentials.js.map