Skip to main content

@wildix/xbees-users-client > ListBotApiKeysCommand

ListBotApiKeysCommand class

Signature:

export declare class ListBotApiKeysCommand extends ListBotApiKeysCommand_base 

Extends: ListBotApiKeysCommand_base

Example

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

import { UsersClient, ListBotApiKeysCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, ListBotApiKeysCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // ListBotApiKeysInput
company: "STRING_VALUE",
botId: "STRING_VALUE", // required
};
const command = new ListBotApiKeysCommand(input);
const response = await client.send(command);
// { // ListBotApiKeysOutput
// keys: [ // BotApiKeysList // required
// { // BotApiKey
// secret: "STRING_VALUE", // required
// name: "STRING_VALUE",
// createdAt: "STRING_VALUE", // required
// },
// ],
// };