module Confluence
A useful helper for running Confluence
XML-RPC from Ruby. Takes care of adding the token to each method call (so you can call server.getSpaces() instead of server.getSpaces(token)). Also takes care of re-logging in if your login times out.
Usage:
server = Confluence::RPC.new
(“confluence.atlassian.com”) server.login(“user”, “password”) puts server.getSpaces()