UNPKG

n8n-nodes-cloudconvert

Version:

A Node to send file conversion jobs to cloudconvert.com

50 lines 1.91 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CloudConvertCredentialsApi = void 0; class CloudConvertCredentialsApi { constructor() { this.name = 'cloudConvertCredentialsApi'; this.displayName = 'CloudConvert Credentials API'; this.properties = [ { displayName: 'You can generate your API keys from your <a href="https://cloudconvert.com/dashboard/api/v2/keys" target="_blank">CloudConvert dashboard</a><br/>Depending on what you want to do, you will most likely need at least the <strong><code>task.read</code></strong> and <strong><code>task.write</code></strong> scopes', name: 'notice', type: 'notice', default: '', }, { displayName: 'API Key', name: 'key', type: 'string', typeOptions: { password: true, }, default: '', }, { displayName: 'Sandbox', description: 'Whether this API key is for the sandbox environment?', name: 'sandbox', type: 'boolean', default: false, }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '=Bearer {{$credentials.key}}', 'Content-type': 'application/json', }, }, }; this.test = { request: { baseURL: `=https://api.{{$credentials.sandbox ? 'sandbox.' : ''}}cloudconvert.com`, url: '/v2/jobs', }, }; } } exports.CloudConvertCredentialsApi = CloudConvertCredentialsApi; //# sourceMappingURL=CloudConvertCredentialsApi.credentials.js.map