The Artima Developer Community
Sponsored Link

PHP Buzz Forum
12 Services_Delicious 13

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Stephan Schmidt

Posts: 238
Nickname: schst
Registered: Sep, 2004

Stephan Schmidt is a founding member of PHP Application Tools and a PEAR developer.
12 Services_Delicious 13 Posted: Nov 5, 2004 12:32 PM
Reply to this message Reply

This post originated from an RSS feed registered with PHP Buzz by Stephan Schmidt.
Original Post: 12 Services_Delicious 13
Feed Title: a programmer's best friend
Feed URL: http://blog.php-tools.net/rss.php?version=1.0
Feed Description: The blog of PHP Application Tools
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Stephan Schmidt
Latest Posts From a programmer's best friend

Advertisement
c01 I just proposed a new package for inclusion in PEAR: Services_Delicious, a client for the REST-based webservice offered by del.icio.us. del.icio.us is a site for social bookmarking, which stores your bookmarks in a database that is accessible by others as well.
This is kinda like blogging, but without having to write all of this annoying text to describe what you are linking to.
The webservice allows you to search in your bookmarks (by selecting only bookmarks with a special tag), add new bookmarks and delete existing ones.
Using the PHP interface is quite easy:
<?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";
}
?>

The bookmarks can be browsed using your webbrowser or you may parse the RSS feed, like planet-php.net is already doing.
Now I'm eager to get some feedback on this class before starting the call for votes.
17

Read: 12 Services_Delicious 13

Topic: Notes on XmlHttpRequest Previous Topic   Next Topic Topic: Don't Blame Me Bumper Stickers Now Available.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use