DeliciousPosts is a PHP utility for grabbing data from the Delicious social bookmarking service, caching it locally, and displaying it using an XSLT stylesheet.




require "DeliciousPosts.php";

$username = "del.icio.us_username";
$password = "del.icio.us_password";
$tag = "your_favorite_tag";

$dp = new DeliciousPosts($username, $password);
$posts = $dp->getPosts($tag);
echo $posts;

By default, DeliciousPosts uses a stylesheet called “delstyle.xsl”, which is included with the distribution and displays an unordered list of linked posts. To change this, use the setStylesheet option.

By default, DeliciousPosts caches results for 86400 seconds (1 day). If you want to change this, do so using the setCacheTime function. Please be respectful of the API service and keep this number large.



© 2008 Ron Gilmour

This software is distributed under the terms of the GNU General Public License. A copy of this license is bundled with the software.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Print Friendly