« iRule: DiggBar Frame Buster | Main | Groovy Script: Use HTTP Builder to Check Web Server Type »

04/18/2009

Groovy XMLRPC: Practice Scripts

I've been playing with Groovy lately and using it to play with some web services. They will only work if you have the groovy xmlrpc library in your $GROOVY_LIB. The following scripts are basic ping scripts for blog directories Technorati, IceRocket, and Blo.gs. Plug in your blog's title and blog's URL and ping away!

Groovy - Technorati Ping

#!/usr/bin/env groovy

import groovy.net.xmlrpc.*

def server = new XMLRPCServerProxy("http://rpc.technorati.com/rpc/ping")

def result = server.weblogUpdates.ping("BLOG TITLE" , "BLOG URL")

if (result != null)
println "Thanks for the ping!"

 

Groovy - IceRocket Ping

#!/usr/bin/env groovy

import groovy.net.xmlrpc.*

def server = new XMLRPCServerProxy("http://rpc.icerocket.com:10080/")

def result = server.ping("BLOG TITLE" , "BLOG URL")

if (result != null)
println "Thanks for the ping!"

 

Groovy - weblogs.com Ping

#!/usr/bin/env groovy

import groovy.net.xmlrpc.*

def server = new XMLRPCServerProxy("http://ping.blo.gs/")

def result = server.weblogUpdates.extendedPing("BLOG TITLE" , "BLOG URL" , "FEED URL")

if (result != null)
println "Thanks for the ping!"

TrackBack

TrackBack URL for this entry:
https://www.typepad.com/services/trackback/6a01156fbc6fe6970c0115722883ad970b

Listed below are links to weblogs that reference Groovy XMLRPC: Practice Scripts:

Comments