I just released the first public version of
Services_Delicious, a PHP API for the REST based webservice of the social bookmarking site
del.icio.us. If you've read my
last blog entry on this topic, you already know, what it can do for you.
If you are not familiar with social bookmarking, here's an introduction for you:
Social bookmarking allows you to compile a list of categorized links that are accessible through a website by other users. This has the advantage that you can also browse the bookmarks of others and easily find interesting site. del.icio.us is a quite pouplar bookmarking site, which also offers a webservice to add new bookmarks or read your existing ones using HTTP and XML.
When using Services_Delicous you can easily manage your bookmarks using PHP:
<?php
$dlc = &new Services_Delicious($username, $password);
$posts = $dlc->getRecentPosts('php', 10);
print_r($posts);
?>
Adding a new bookmark is not any harder:
<?php
$dlc = &new Services_Delicious($username, $password);
$result = $dlc->addPost('http://pear.php.net', 'PHP Extension and Application Repository', 'The home of Services_Delicious', array('php', 'pear'));
if (PEAR::isError($result)) {
die($result->getMessage());
} else {
echo "Success";
}
?>
Services_Delicious provides a lot of more methods, API documentation should show up on the PEAR website quite soon and I already started writing the end-user documentation for the PEAR manual.
Today Stephan Schmidt threw the first public release of his new PEAR package Services_Delicious, which allows to communicate with del.isio.us through PHP pretty easily. His announcement shows a pretty little example. Since I'm currently on a del.icio.us t
Tracked: Nov 23, 23:09
Released today . Too bad it's PEAR with the non-compatible license with the GPL.
Tracked: Nov 23, 23:37
Traduction du billet 'First public release of Services_Delicious' de php-tools: Stéphane vient de publier la première version de sa librairie Services_Delicious, une interface PHP pour accéder au WebService de type REST du site del.icio.us. Ce site per
Tracked: Nov 24, 12:14