This commit is contained in:
2025-10-29 18:44:21 +08:00
parent 98210ef15c
commit da867e258e
10 changed files with 168 additions and 8 deletions

View File

@@ -0,0 +1,37 @@
import type { ICredentialTestRequest, ICredentialType, INodeProperties, Icon } from 'n8n-workflow';
export class GwezzChangdunovelApi implements ICredentialType {
name = 'gwezzChangdunovelApi';
displayName = 'Gwezz 常读分销 API';
icon = { light: 'file:../icons/gwezz.svg', dark: 'file:../icons/gwezz.dark.svg' } as Icon;
documentationUrl = 'https://github.com/org/-gwezz-changdunovel?tab=readme-ov-file#credentials';
properties: INodeProperties[] = [
{
displayName: 'distributor_id',
name: 'distributor_id',
type: 'string',
required: true,
default: '',
description: '分销商 ID可与常读商务同学沟通获取',
},
{
displayName: 'secret_key',
name: 'secret_key',
type: 'string',
typeOptions: { password: true },
required: true,
default: '',
description: '签名密钥,可与常读商务同学沟通获取',
},
];
test: ICredentialTestRequest = {
request: {
url: 'https://www.changdunovel.com/novelsale/openap',
},
};
}