I've got a functional testing daemon that verifies the status of a specific environment. I would like it to programmatically update a confluence page with the results of the test, each time the test is run. Is that possible?
If so, then how can I do it in Python?
And, if not in Python, is there an example in Java that I can use as a starting point?
Community moderators have prevented the ability to post new answers.
There are plenty of examples, just google for it, anyway - here is one
import xmlrpclib CONFLUENCE_URL='http://localhost:8280/wiki/rpc/xmlrpc' client = xmlrpclib.Server(CONFLUENCE_URL,verbose=0) authToken=client.confluence2.login(CONFLUENCE_LOGIN,CONFLUENCE_PASSWORD) page = client.confluence2.getPage(authToken, pageid) page['content'] = newcontent client.confluence2.storePage(authToken, page) client.confluence2.logout(authToken)
Confluence Command Line Interface has the storePage action. Construct a command string and run :).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.