confluency
v0.10.0
Published
Downloads
45
Readme
node-confluence
- https://docs.atlassian.com/atlassian-confluence/REST/latest/
- https://developer.atlassian.com/confdev/confluence-rest-api/confluence-rest-api-examples
- http://stackoverflow.com/questions/29531312/confluence-rest-api-authorization-issue
- http://stackoverflow.com/questions/23523705/how-to-create-new-page-in-confluence-using-their-rest-api
How to test
$ npm test # for module users
$ npm run babeltest # for developers
How to use
const host = 'https://xxx.atlassian.net';
const context = process.env.CONFLUENCE_CONTEXT || '';
const confluency = new Confluency({ host, context });
confluency.getPage(1081354).then(data => {
console.log(data);
});
Support features
getPage(pageId, expand)
getChildren(pageId, {all, expand=[]} = {})
getPages(spaceKey, opts={limit: 25})
getSpaces(opts={limit:25})
getSpace(spaceKey)
create({space, title, content, parent})
update({space, id, title, content, parent, version})
del(pageId)
tagLabel(pageId, label)
tagLabels(pageId, labels)
getLabels(pageId)
untagLabel(pageId, label)
search(cql, {limit}={})
changeParent(pageId, parentId)
convertWikiMarkup(content)