PylonsHQ.

Layout: Fixed-width

Using XML-RPC With Confluence

Skip to end of metadata
Go to start of metadata

You can use this code to update the contents of this page:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
import sys
from xmlrpclib import Server

def update_page(server, username, password, space, title, content):
    s = Server(server)
    token = s.confluence1.login(username, password)
    page = s.confluence1.getPage(token, space, title)
    page["content"] = content
    s.confluence1.storePage(token, page)

update_page(
    server="http://docs.pythonweb.org/rpc/xmlrpc",
    username="username",
    password="password",
    space="pylonscookbook",
    title="Using XML-RPC With Confluence",
    content="Well, here is the first test.",
)

The full range of XML-RPC functions available are described at http://confluence.atlassian.com/display/DOC/Remote+API+Specification

If you need a username and password you can sign up at http://docs.pythonweb.org/signup.action

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Powered by Pylons - Contact Administrators