Return to Snippet

Revision: 21968
at December 27, 2009 04:51 by javadude


Initial Code
import org.apache.xmlrpc.client.XmlRpcClient
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl

def XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl()
config.setServerURL(new URL("http://snipplr.com/xml-rpc.php"))
def XmlRpcClient client = new XmlRpcClient()
client.setConfig(config)

Object[] params = ["[yourAPIkey]"]
def result = client.execute("user.checkkey",params)
println result

params = ["[yourAPIkey]","groovy"]
result = client.execute("snippet.list",params)
println result

Initial URL
http://www.bighugesystems.com/wordpress/?p=51

Initial Description

                                

Initial Title
Accessing SNIPPLR with Groovy and Apache XML-RPC

Initial Tags
apache, groovy

Initial Language
Groovy