UNPKG

n8n-nodes-cloudinary

Version:

The official Cloudinary n8n node - upload media, update asset tags and metadata, and more

49 lines 1.53 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CloudinaryApi = void 0; class CloudinaryApi { constructor() { this.name = 'cloudinaryApi'; this.displayName = 'Cloudinary API'; this.documentationUrl = 'https://cloudinary.com/documentation/image_upload_api_reference'; this.properties = [ { displayName: 'Cloud Name', name: 'cloudName', type: 'string', default: '', }, { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', }, { displayName: 'API Secret', name: 'apiSecret', type: 'string', default: '', typeOptions: { password: true }, }, ]; this.authenticate = { type: 'generic', properties: { auth: { username: '={{$credentials.apiKey}}', password: '={{$credentials.apiSecret}}', }, }, }; this.test = { request: { baseURL: '=https://api.cloudinary.com/v1_1/{{$credentials?.cloudName}}', url: '/ping', }, }; } } exports.CloudinaryApi = CloudinaryApi; //# sourceMappingURL=CloudinaryApi.credentials.js.map