n8n-nodes-base
Version:
Base nodes of n8n
19 lines • 730 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.postEphemeral = postEphemeral;
const transport_1 = require("../../../transport");
async function postEphemeral(index) {
const qs = {};
const requestMethod = 'POST';
const endpoint = 'posts/ephemeral';
const body = {
user_id: this.getNodeParameter('userId', index),
post: {
channel_id: this.getNodeParameter('channelId', index),
message: this.getNodeParameter('message', index),
},
};
const responseData = await transport_1.apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
}
//# sourceMappingURL=execute.js.map