Skip to main content

@wildix/xbees-conversations-client > SendActionTriggerResultCommand

SendActionTriggerResultCommand class

Send result of the triggered action.

Signature:

export declare class SendActionTriggerResultCommand extends SendActionTriggerResultCommand_base 

Extends: SendActionTriggerResultCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { ConversationsClient, SendActionTriggerResultCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, SendActionTriggerResultCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = { // SendActionTriggerResultInput
triggerId: "STRING_VALUE", // required
status: "completed" || "pending", // required
result: {},
};
const command = new SendActionTriggerResultCommand(input);
const response = await client.send(command);
// {};