Return to Snippet

Revision: 2931
at May 11, 2007 04:06 by olivernautsch


Initial Code
package net.nautsch.snipplr;

import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;

class SnipplrRunner {

  static void main(args) {
	  XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl()
	  config.setServerURL(new URL("http://snipplr.com/xml-rpc.php"))
	  
	  XmlRpcClient client = new XmlRpcClient()
	  client.setConfig(config)
	  Object[] params = ["<insert your id here>"]
	                     
	  def boolean result = client.execute("user.checkkey", params)
	  println result
  }
}

Initial URL
www.nautsch.net

Initial Description
simple example and my first entry in snipplr

Initial Title
access snipplr with groovy via XML-RPC

Initial Tags

                                

Initial Language
Groovy