2007-12-30 by Jonathan Clarke - 0 Replies - 7195 Views

Testing Technorati and XML-RPC

Technorati XML-RPC Code

Below is a little bit of code that updates technorati once a blog article is posted.  Once technorati has been updated then it filters out through to other various websites.  The aim is to keep both technorati as well as ping-o-matic updated on a regular basis.  Anyhow, going to test it out now.  Hope that it works. Technorati Profile

def self.technorati
        begin
            server = XMLRPC::Client.new("rpc.technorati.com","/rpc/ping",80)
            begin
                puts result = server.call("weblogUpdates.ping","Beilabs","http://www.beilabs.com")
            rescue XMLRPC::FaultException => e
                  puts "Error: [#{ e.faultCode }] #{ e.faultString }"
            end
        rescue Exception => e
              puts "Error: #{ e.message }"
        end
      end

Write a Comment

Name: * Required Field
Email: * Required Field
Website:
Non Robots Only:
simple_captcha.jpg