Skip to main content

@wildix/xbees-users-client > GetUserCommand

GetUserCommand class

Signature:

export declare class GetUserCommand extends GetUserCommand_base 

Extends: GetUserCommand_base

Example

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

import { UsersClient, GetUserCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, GetUserCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // GetUserInput
userId: "STRING_VALUE", // required
};
const command = new GetUserCommand(input);
const response = await client.send(command);
// { // GetUserOutput
// user: { // 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",
// },
// };