@wildix/classound-client > ListWhatsAppNumbersCommand
ListWhatsAppNumbersCommand class
Signature:
export declare class ListWhatsAppNumbersCommand extends ListWhatsAppNumbersCommand_base
Extends: ListWhatsAppNumbersCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { ClassoundClient, ListWhatsAppNumbersCommand } from "@wildix/classound-client"; // ES Modules import
// const { ClassoundClient, ListWhatsAppNumbersCommand } = require("@wildix/classound-client"); // CommonJS import
const client = new ClassoundClient(config);
const input = { // ListWhatsAppNumbersInput
companyId: "STRING_VALUE", // required
};
const command = new ListWhatsAppNumbersCommand(input);
const response = await client.send(command);
// { // ListWhatsAppNumbersOutput
// type: "STRING_VALUE", // required
// success: true || false, // required
// timestamp: Number("long"), // required
// result: { // WhatsAppNumbersResult
// companyId: "STRING_VALUE", // required
// numbers: [ // PhoneNumberList // required
// "STRING_VALUE",
// ],
// },
// };