@wildix/xbees-conversations-client > GetUploadedFileInfoCommand
GetUploadedFileInfoCommand class
Retrieves information about an uploaded file in a specified channel.
Signature:
export declare class GetUploadedFileInfoCommand extends GetUploadedFileInfoCommand_base
Extends: GetUploadedFileInfoCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { ConversationsClient, GetUploadedFileInfoCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, GetUploadedFileInfoCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = { // GetUploadedFileInfoInput
channelId: "STRING_VALUE", // required
fileId: "STRING_VALUE", // required
category: "channels" || "recordings" || "wizyconfRecordings",
};
const command = new GetUploadedFileInfoCommand(input);
const response = await client.send(command);
// { // GetUploadedFileInfoOutput
// file: { // MessageAttachment
// id: "STRING_VALUE", // required
// fsId: "STRING_VALUE", // required
// mime: "STRING_VALUE",
// name: "STRING_VALUE", // required
// size: Number("int"), // required
// width: Number("int"),
// height: Number("int"),
// thumbnail: "STRING_VALUE",
// },
// };