Skip to main content

@wildix/wms-api-client > ListPbxDepartmentsCommand

ListPbxDepartmentsCommand class

Signature:

export declare class ListPbxDepartmentsCommand extends ListPbxDepartmentsCommand_base 

Extends: ListPbxDepartmentsCommand_base

Example

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

import { WmsApiClient, ListPbxDepartmentsCommand } from "@wildix/wms-api-client"; // ES Modules import
// const { WmsApiClient, ListPbxDepartmentsCommand } = require("@wildix/wms-api-client"); // CommonJS import
const client = new WmsApiClient(config);
const input = {};
const command = new ListPbxDepartmentsCommand(input);
const response = await client.send(command);
// { // ListPbxDepartmentsOutput
// type: "result" || "error", // required
// result: { // ListPbxDepartmentsResult
// records: [ // PbxDepartmentsList // required
// { // PbxDepartment
// id: "STRING_VALUE", // required
// name: "STRING_VALUE", // required
// users: [ // PbxDepartmentUsers
// "STRING_VALUE",
// ],
// items: [
// {
// id: "STRING_VALUE", // required
// name: "STRING_VALUE", // required
// users: [
// "STRING_VALUE",
// ],
// items: "<PbxDepartmentsList>",
// },
// ],
// },
// ],
// },
// };