Skip to main content

@wildix/xbees-users-client > GetBotCommand

GetBotCommand class

Signature:

export declare class GetBotCommand extends GetBotCommand_base 

Extends: GetBotCommand_base

Example

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

import { UsersClient, GetBotCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, GetBotCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // GetBotInput
company: "STRING_VALUE",
botId: "STRING_VALUE", // required
};
const command = new GetBotCommand(input);
const response = await client.send(command);
// { // GetBotOutput
// bot: { // Bot
// id: "STRING_VALUE", // required
// name: "STRING_VALUE", // required
// picture: "STRING_VALUE",
// searchable: true || false,
// createdAt: "STRING_VALUE", // required
// updated: "STRING_VALUE",
// },
// };