#!/usr/bin/python import xmlrpc import xmlrpc.client """ create a proxy object with methods that can be used to invoke corresponding RPC calls on the remote server """ server = xmlrpc.client.ServerProxy('https://confluence.ssi-schaefer.ch/rpc/xmlrpc') try: """ log in a user Returns a String authentication token to be passed as authentication to all other remote calls. It's not bulletproof auth, but it will do for now. Must be called before any other method in a 'remote conversation'. From 1.3 onwards, you can supply an empty string as the token to be treated as being the anonymous user. """ token = server.confluence1.login('helpclient', 'asdf1234%'); """ returns the HTML rendered content for this page Setting the "style" parameter to "clean" will cause the page to be rendered as just a single block of HTML within a div, without the HTML preamble and stylesheet that would otherwise be added. """ print(server.confluence1.renderContent(token, 'PMS', '8225785', '', {"style" : "clean"})) except (xmlrpclib.Fault, err): print( "Fault code: %d" % err.faultCode) print( "Fault string: %s" % err.faultString)