@wildix-internal/wim-webhooks-client > SendMessageBatchCommand
SendMessageBatchCommand class
Signature:
export declare class SendMessageBatchCommand extends SendMessageBatchCommand_base
Extends: SendMessageBatchCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WebhooksClient, SendMessageBatchCommand } from "@wildix-internal/wim-webhooks-client"; // ES Modules import
// const { WebhooksClient, SendMessageBatchCommand } = require("@wildix-internal/wim-webhooks-client"); // CommonJS import
const client = new WebhooksClient(config);
const input = { // SendMessageBatchInput
messages: [ // WebhookMessagesList
{ // WebhookMessage
deduplicationId: "STRING_VALUE", // required
groupId: "STRING_VALUE", // required
integrationId: "STRING_VALUE", // required
body: "STRING_VALUE", // required
endpoint: { // MessageEndpoint
type: "sqs" || "webhook", // required
url: "STRING_VALUE", // required
key: "STRING_VALUE",
secret: "STRING_VALUE", // required
},
},
],
};
const command = new SendMessageBatchCommand(input);
const response = await client.send(command);
// { // SendMessageBatchOutput
// ids: [ // WebhookMessagesIdList
// "STRING_VALUE",
// ],
// };