Latest Version: 0.9.6.2
  Dashboard > Pylons Cookbook > Using XML-RPC With Confluence
  Pylons Cookbook Log In | Sign Up   View a printable version of the current page.  
  Using XML-RPC With Confluence
Added by James Gardner, last edited by Philip Jenvey on Jun 25, 2007  (view change) show comment
Labels: 
(None)

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

Site running on a free Atlassian Confluence Open Source Project License granted to Pylons. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.3.3 Build:#645 Feb 13, 2007) - Bug/feature request - Contact Administrators
Top