@wildix/wms-api-client > GetColleagueByIdCommand
GetColleagueByIdCommand class
Signature:
export declare class GetColleagueByIdCommand extends GetColleagueByIdCommand_base
Extends: GetColleagueByIdCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WmsApiClient, GetColleagueByIdCommand } from "@wildix/wms-api-client"; // ES Modules import
// const { WmsApiClient, GetColleagueByIdCommand } = require("@wildix/wms-api-client"); // CommonJS import
const client = new WmsApiClient(config);
const input = { // GetColleagueByIdInput
id: Number("int"), // required
};
const command = new GetColleagueByIdCommand(input);
const response = await client.send(command);
// { // GetColleagueByIdOutput
// type: "result" || "error", // required
// result: { // PbxColleague
// id: "STRING_VALUE", // required
// name: "STRING_VALUE",
// login: "STRING_VALUE",
// extension: "STRING_VALUE", // required
// officePhone: "STRING_VALUE",
// mobilePhone: "STRING_VALUE",
// faxNumber: "STRING_VALUE",
// email: "STRING_VALUE",
// pbxDn: "STRING_VALUE", // required
// pbx: "STRING_VALUE", // required
// role: "admin" || "user" || "fax" || "park_orbit" || "room", // required
// groupName: "STRING_VALUE", // required
// groupDn: "STRING_VALUE", // required
// language: "STRING_VALUE", // required
// dialplan: "STRING_VALUE", // required
// faxDialplan: "STRING_VALUE", // required
// department: "STRING_VALUE",
// picture: "STRING_VALUE", // required
// sourceId: "STRING_VALUE",
// licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
// jid: "STRING_VALUE", // required
// },
// };