Files
n8n-nodes-gwezz-changdunovel/credentials/GwezzChangdunovelApi.credentials.ts
2025-10-29 18:44:21 +08:00

38 lines
1003 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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',
},
};
}