@wildix/xbees-conversations-client > ShowChannelCommand
ShowChannelCommand class
Allows a user to show an existing hidden channel. This operation requires the channel to be accessible to the user.
Signature:
export declare class ShowChannelCommand extends ShowChannelCommand_base
Extends: ShowChannelCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { ConversationsClient, ShowChannelCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, ShowChannelCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = { // ShowChannelInput
channelId: "STRING_VALUE", // required
userId: "STRING_VALUE",
};
const command = new ShowChannelCommand(input);
const response = await client.send(command);
// {};