Skip to main content

@wildix/xbees-kite-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 { KiteClient, ListWhatsAppNumbersCommand } from "@wildix/xbees-kite-client"; // ES Modules import
// const { KiteClient, ListWhatsAppNumbersCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
const client = new KiteClient(config);
const input = { // ListWhatsAppNumbersInput
companyId: "STRING_VALUE",
};
const command = new ListWhatsAppNumbersCommand(input);
const response = await client.send(command);
// { // ListWhatsAppNumbersOutput
// numbers: [ // WhatsAppServiceNumbersList // required
// { // WhatsAppServiceNumber
// number: "STRING_VALUE", // required
// service: { // Service
// id: Number("int"), // required
// uri: "STRING_VALUE", // required
// title: "STRING_VALUE", // required
// settings: { // ServiceSettings
// phoneNumber: "STRING_VALUE",
// messagingNumber: "STRING_VALUE",
// },
// extensions: [ // ExtensionsList // required
// "STRING_VALUE",
// ],
// pbx: { // ServicePbx
// domain: "STRING_VALUE", // required
// port: Number("int"), // required
// },
// },
// },
// ],
// };