class ConfluencePagesLoaderClass representing a document loader for loading pages from Confluence.
expand parameter for confluence rest api description can be found at https://developer.atlassian.com/server/confluence/expansions-in-the-rest-api/
Fetches data from the Confluence API using the provided URL.
Fetches all the pages in the specified space and converts each page to a Document instance.
const loader = new ConfluencePagesLoader({
baseUrl: "https:
spaceKey: "~EXAMPLE362906de5d343d49dcdbae5dEXAMPLE",
username: "your-username",
accessToken: "your-access-token",
});
const documents = await loader.load();
console.log(documents);