@oneacrefund/n8n-nodes-kutt
Version:
This is an n8n community node for the Kutt URL Shortening service
42 lines • 1.22 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.KuttCredentialsApi = void 0;
class KuttCredentialsApi {
constructor() {
this.name = 'kuttCredentialsApi';
this.displayName = 'Kutt Credentials API';
this.properties = [
{
displayName: 'API Base',
name: 'baseUrl',
default: 'https://kutt.it/api/v2',
type: 'string',
},
{
displayName: 'API Token',
name: 'token',
default: '',
type: 'string',
typeOptions: {
password: true,
},
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
'X-API-KEY': '={{$credentials.token}}',
},
},
};
this.test = {
request: {
baseURL: '={{$credentials.baseUrl}}',
url: 'health',
},
};
}
}
exports.KuttCredentialsApi = KuttCredentialsApi;
//# sourceMappingURL=KuttCredentialsApi.credentials.js.map