October 23, 2001
So the weblogs.com change happened

So the weblogs.com change happened today, and I was asleep at the switch, so I needed to come up with a XML-RPC notification utility quickly. Thanks to phpxmlrpc, it was damned easy:



<?
include("xmlrpc.inc");
$weblog_name = new xmlrpcval("marginalia.org");
$weblog_address = new xmlrpcval("http://www.marginalia.org");

$msg = new xmlrpcmsg("weblogUpdates.ping");
$msg->addParam($weblog_name);
$msg->addParam($weblog_address);

$client=new xmlrpc_client("/RPC2", "rpc.weblogs.com", 80);

$response = $client->send($msg);

if ($response->faultCode()) {
print $response->serialize();
} else {
print "weblogs.com pinged.";
}
?>



Next problem to solve is a favorite list using the changes.xml file available at weblogs.com.

Posted by Bill Stilwell at October 23, 2001 12:00 AM
Comments
Post a comment
Name:


Email Address:


URL:


Comments:


Remember info?