n8n-nodes-wechat-offiaccount
Version:
33 lines • 1.04 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const RequestUtils_1 = __importDefault(require("../../../help/utils/RequestUtils"));
const DraftDeleteOperate = {
name: '删除草稿',
value: 'draft:delete',
options: [
{
displayName: '草稿ID',
name: 'media_id',
type: 'string',
required: true,
default: '',
description: '要删除的草稿的media_id',
},
],
async call(index) {
const mediaId = this.getNodeParameter('media_id', index);
const body = {
media_id: mediaId,
};
return RequestUtils_1.default.request.call(this, {
method: 'POST',
url: `/cgi-bin/draft/delete`,
body,
});
},
};
exports.default = DraftDeleteOperate;
//# sourceMappingURL=DraftDeleteOperate.js.map