1 Commits
Author SHA1 Message Date
olli1986 dd041aefde credentials/BillbeeApi.credentials.ts aktualisiert 2026-09-13 16:22:16 +02:00
+20 -9
View File
@@ -7,11 +7,8 @@ import type {
export class BillbeeApi implements ICredentialType { export class BillbeeApi implements ICredentialType {
name = 'N8nDevBillbeeApi'; name = 'N8nDevBillbeeApi';
displayName = 'Billbee API'; displayName = 'Billbee API';
icon: Icon = { light: 'file:../nodes/Billbee/billbee.png', dark: 'file:../nodes/Billbee/billbee.dark.png' }; icon: Icon = { light: 'file:../nodes/Billbee/billbee.png', dark: 'file:../nodes/Billbee/billbee.dark.png' };
documentationUrl = ''; documentationUrl = '';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
@@ -21,8 +18,6 @@ export class BillbeeApi implements ICredentialType {
type: 'string', type: 'string',
default: 'https://app.billbee.io', default: 'https://app.billbee.io',
required: true, required: true,
placeholder: 'https://app.billbee.io',
description: 'The base URL of your Billbee API server',
}, },
{ {
displayName: 'API Key', displayName: 'API Key',
@@ -30,9 +25,23 @@ export class BillbeeApi implements ICredentialType {
type: 'string', type: 'string',
typeOptions: { password: true }, typeOptions: { password: true },
default: '', default: '',
required: false, required: true,
},
{
displayName: 'Billbee Benutzername / E-Mail',
name: 'username',
type: 'string',
default: '',
required: true,
},
{
displayName: 'API-Passwort',
name: 'password',
type: 'string',
typeOptions: { password: true },
default: '',
required: true,
}, },
]; ];
authenticate: IAuthenticateGeneric = { authenticate: IAuthenticateGeneric = {
@@ -41,8 +50,10 @@ export class BillbeeApi implements ICredentialType {
headers: { headers: {
'X-Billbee-Api-Key': '={{$credentials.apiKey}}', 'X-Billbee-Api-Key': '={{$credentials.apiKey}}',
}, },
auth: {
username: '={{$credentials.username}}',
password: '={{$credentials.password}}',
},
}, },
}; };
} }