@wildix/wms-api-client > ListPbxGroupsCommand
ListPbxGroupsCommand class
Signature:
export declare class ListPbxGroupsCommand extends ListPbxGroupsCommand_base
Extends: ListPbxGroupsCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WmsApiClient, ListPbxGroupsCommand } from "@wildix/wms-api-client"; // ES Modules import
// const { WmsApiClient, ListPbxGroupsCommand } = require("@wildix/wms-api-client"); // CommonJS import
const client = new WmsApiClient(config);
const input = {};
const command = new ListPbxGroupsCommand(input);
const response = await client.send(command);
// { // ListPbxGroupsOutput
// type: "result" || "error", // required
// result: { // ListPbxGroupsResult
// total: Number("int"), // required
// records: [ // PbxGroupsList // required
// { // PbxGroup
// dn: "STRING_VALUE", // required
// id: "STRING_VALUE", // required
// name: "STRING_VALUE", // required
// wcgrp: "STRING_VALUE",
// },
// ],
// },
// };