Advogato diary entry deletion
I've been looking for an automated way to delete all my old entries on Advogato.org so deekayen.net could have exclusive Google results for the entries, but I couldn't find one, so I made one. It uses the Drupal 4.6 XMLRPC library with 8 lines of code added to the top to make the Advogato XMLRPC requests. This is what I added to the top of Drupal 4.6's include/xmlrpc.php file before I ran the script at a command line. Echos of the number 1 are a success.
set_time_limit(0);
$username = 'deekayen';
$password = 'my_password';
$len = (int)xmlrpc('http://www.advogato.org/XMLRPC', 'diary.len', $username);
$cookie = xmlrpc('http://www.advogato.org/XMLRPC', 'authenticate', $username, $password);
for($i = 0; $i <= $len; $i++) {
echo xmlrpc('http://www.advogato.org/XMLRPC', 'diary.set', $cookie, $i, ' ');
}» deekayen's blog ·
·
·
Topics: PHP
·
·
Topics: PHP

Post new comment