v0.11
This commit is contained in:
37
credentials/GwezzChangdunovelApi.credentials.ts
Normal file
37
credentials/GwezzChangdunovelApi.credentials.ts
Normal 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',
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user