Files
n8n-nodes-gwezz-changdunovel/credentials/GwezzChangdunovelApi.credentials.ts
2025-10-30 16:34:43 +08:00

39 lines
1001 B
TypeScript
Raw Permalink 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 Changdu Novel API';
icon = { light: 'file:../icons/gwezz.svg', dark: 'file:../icons/gwezz.dark.svg' } as Icon;
documentationUrl = 'https://gitea.gwezz.com/n8n-nodes/n8n-nodes-gwezz-changdunovel/wiki';
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: {
method: 'GET',
url: 'https://httpbin.org/status/200',
},
};
}