Add support for Confluence v4
Confluence API now supports access to older versions of Confluence. If you are using Confluence version 4, specify the version in your config file; for example:
var config = {
username: "testuser",
password: "test-user-pw",
baseUrl: "https://confluence-api-test.atlassian.net/wiki",
version: 4 // Confluence major version, optional
};
Thank you to @qvaqvaboo for adding this feature.