Skip to main content

@wildix/wim-knowledge-base-client > GetDocumentDownloadUrlCommand

GetDocumentDownloadUrlCommand class

Get a presigned URL for downloading the original file of the document

Signature:

export declare class GetDocumentDownloadUrlCommand extends GetDocumentDownloadUrlCommand_base 

Extends: GetDocumentDownloadUrlCommand_base

Example

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

import { KnowledgeBaseClient, GetDocumentDownloadUrlCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
// const { KnowledgeBaseClient, GetDocumentDownloadUrlCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
const client = new KnowledgeBaseClient(config);
const input = { // GetDocumentDownloadUrlInput
companyId: "STRING_VALUE",
dataSourceId: "STRING_VALUE", // required
documentId: "STRING_VALUE", // required
};
const command = new GetDocumentDownloadUrlCommand(input);
const response = await client.send(command);
// { // GetDocumentDownloadUrlOutput
// downloadUrl: "STRING_VALUE", // required
// };