@wildix/wim-knowledge-base-client > GetDocumentMarkdownCommand
GetDocumentMarkdownCommand class
Get the markdown content of a document by its ID
Signature:
export declare class GetDocumentMarkdownCommand extends GetDocumentMarkdownCommand_base
Extends: GetDocumentMarkdownCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { KnowledgeBaseClient, GetDocumentMarkdownCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
// const { KnowledgeBaseClient, GetDocumentMarkdownCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
const client = new KnowledgeBaseClient(config);
const input = { // GetDocumentMarkdownInput
companyId: "STRING_VALUE",
dataSourceId: "STRING_VALUE", // required
documentId: "STRING_VALUE", // required
};
const command = new GetDocumentMarkdownCommand(input);
const response = await client.send(command);
// { // GetDocumentMarkdownOutput
// markdown: "STRING_VALUE", // required
// };