Musings of a Manchester Drupal guy

Drupal, Open Source, Analytics, Social Media.

Thursday, September 08, 2005

How to ping technorati with coldfusion

This simple code will allow you to use Coldfusion to fire an xmlrpc request to the technorati API.

<cfoutput><?xml version="1.0"?>
<methodCall>
<methodName>weblogUpdates.ping</methodName>
<params>
<param>
<value>sitetitle
</param>
<param>
<value>urlofblog
</param>
</params>
</methodCall>
</cfoutput>


<cfhttp method="POST" url="http://rpc.technorati.com/rpc/ping">
<cfhttpparam name="param1" value="#myPackage#" type="xml">
</cfhttp>