Skip to main content

@wildix/classound-client > ListWhatsAppTemplatesCommand

ListWhatsAppTemplatesCommand class

Signature:

export declare class ListWhatsAppTemplatesCommand extends ListWhatsAppTemplatesCommand_base 

Extends: ListWhatsAppTemplatesCommand_base

Example

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

import { ClassoundClient, ListWhatsAppTemplatesCommand } from "@wildix/classound-client"; // ES Modules import
// const { ClassoundClient, ListWhatsAppTemplatesCommand } = require("@wildix/classound-client"); // CommonJS import
const client = new ClassoundClient(config);
const input = { // ListWhatsAppTemplatesInput
did: "STRING_VALUE", // required
};
const command = new ListWhatsAppTemplatesCommand(input);
const response = await client.send(command);
// { // ListWhatsAppTemplatesOutput
// type: "STRING_VALUE", // required
// success: true || false, // required
// did: "STRING_VALUE", // required
// data: [ // TemplateList // required
// { // Template
// name: "STRING_VALUE", // required
// parameterFormat: "NAMED", // required
// components: [ // ComponentList // required
// { // Component
// type: "HEADER" || "BODY" || "FOOTER" || "BUTTONS", // required
// format: "TEXT" || "IMAGE", // required
// text: "STRING_VALUE",
// example: { // ComponentExample
// headerHandle: [ // StringList
// "STRING_VALUE",
// ],
// bodyTextNamedParams: [ // BodyTextNamedParamList
// { // BodyTextNamedParam
// paramName: "STRING_VALUE", // required
// example: "STRING_VALUE", // required
// },
// ],
// },
// buttons: [ // ButtonList
// { // Button
// type: "QUICK_REPLY" || "URL" || "PHONE_NUMBER" || "OTP" || "MPM" || "CATALOG" || "FLOW" || "VOICE_CALL" || "APP", // required
// text: "STRING_VALUE", // required
// flowId: Number("long"),
// flowAction: "STRING_VALUE",
// navigateScreen: "STRING_VALUE",
// },
// ],
// },
// ],
// language: "STRING_VALUE", // required
// status: "APPROVED" || "PAUSED" || "REJECTED", // required
// category: "MARKETING" || "UTILITY" || "AUTHENTICATION", // required
// subCategory: "STRING_VALUE",
// id: "STRING_VALUE", // required
// },
// ],
// };