Skip to main content

@wildix/xbees-users-client > BatchGetUsersCommand

BatchGetUsersCommand class

Signature:

export declare class BatchGetUsersCommand extends BatchGetUsersCommand_base 

Extends: BatchGetUsersCommand_base

Example

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

import { UsersClient, BatchGetUsersCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, BatchGetUsersCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // BatchGetUsersInput
id: [ // UsersIdList // required
"STRING_VALUE",
],
};
const command = new BatchGetUsersCommand(input);
const response = await client.send(command);
// { // BatchGetUsersOutput
// users: [ // UsersList // required
// { // User
// id: "STRING_VALUE", // required
// name: "STRING_VALUE",
// email: "STRING_VALUE",
// phone: "STRING_VALUE",
// picture: "STRING_VALUE",
// locale: "STRING_VALUE",
// timeZone: "STRING_VALUE",
// company: "STRING_VALUE",
// bot: true || false,
// pbxDomain: "STRING_VALUE",
// pbxPort: "STRING_VALUE",
// pbxExtension: "STRING_VALUE",
// pbxSerial: "STRING_VALUE",
// pbxUserId: "STRING_VALUE",
// createdAt: "STRING_VALUE",
// updatedAt: "STRING_VALUE",
// },
// ],
// };