n8n-nodes-wechat-publish
Version:
N8N nodes for WeChat Official Account publishing - Create drafts and publish articles to WeChat Official Account platform
51 lines (50 loc) • 1.73 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WeChatApi = void 0;
class WeChatApi {
constructor() {
this.name = 'weChatApi';
this.displayName = 'WeChat API';
this.documentationUrl = 'https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Get_access_token.html';
this.properties = [
{
displayName: 'App ID',
name: 'appId',
type: 'string',
required: true,
default: '',
description: 'The App ID of your WeChat Official Account',
placeholder: 'wx1234567890abcdef',
},
{
displayName: 'App Secret',
name: 'appSecret',
type: 'string',
required: true,
default: '',
typeOptions: {
password: true,
},
description: 'The App Secret of your WeChat Official Account',
placeholder: 'abcdef1234567890abcdef1234567890',
},
{
displayName: 'Base URL',
name: 'baseUrl',
type: 'string',
required: false,
default: 'https://api.weixin.qq.com',
description: 'The base URL for WeChat API requests',
},
{
displayName: 'Request Timeout',
name: 'timeout',
type: 'number',
required: false,
default: 30000,
description: 'Request timeout in milliseconds',
},
];
}
}
exports.WeChatApi = WeChatApi;