Skip to main content

@wildix/xbees-conversations-client > GetFilePresignedDownloadUrlCommand

GetFilePresignedDownloadUrlCommand class

Retrieves a presigned URL for downloading a specific file from a message in a specified channel.

Signature:

export declare class GetFilePresignedDownloadUrlCommand extends GetFilePresignedDownloadUrlCommand_base 

Extends: GetFilePresignedDownloadUrlCommand_base

Example

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

import { ConversationsClient, GetFilePresignedDownloadUrlCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, GetFilePresignedDownloadUrlCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = { // GetFilePresignedDownloadUrlInput
channelId: "STRING_VALUE", // required
messageId: "STRING_VALUE", // required
fileId: "STRING_VALUE", // required
category: "channels" || "recordings" || "wizyconfRecordings",
download: Number("int"),
};
const command = new GetFilePresignedDownloadUrlCommand(input);
const response = await client.send(command);
// { // GetFilePresignedDownloadUrlOutput
// presignedDownloadUrl: "STRING_VALUE", // required
// };