Net::Delicious - OOP for the del.icio.us API
use Net::Delicious; use Log::Dispatch::Screen; my $del = Net::Delicious->new({user=>"foo", pswd=>"bar"}); foreach my $p ($del->recent_posts()) { print $p->description()."\n"; }
OOP for the del.icio.us API
Valid arguments are :
user
String. required
Your del.icio.us username.
pswd
Your del.icio.us password.
updates
String.
The path to a directory where the timestamp for the last update to your bookmarks can be recorded. This is used by the all_posts method to prevent abusive requests.
Default is the current user's home directory, followed by a temporary directory as determined by File::Temp.
debug
Boolean.
Add a Log::Dispatch::Screen dispatcher to log debug (and higher) notices. Notices will be printed to STDERR.
Returns a Net::Delicious object. Woot!
Makes a post to del.icio.us.
url
Url for post
description
Description for post.
extended
Extended for post.
tags
Space-delimited list of tags.
dt
Datestamp for post, format "CCYY-MM-DDThh:mm:ssZ"
Returns true or false.
Delete a post from del.icio.us.
Get a list of dates with the number of posts at each date.
tag
Filter by this tag.
Returns a list of Net::Delicious::Date objects when called in an array context.
Returns a Net::Delicious::Iterator object when called in a scalar context.
Get a list of most recent posts, possibly filtered by tag.
count
Int.
Number of posts to return. Default is 20; maximum is 100
Returns a list of Net::Delicious::Post objects when called in an array context.
If no posts have been added between calls to this method, it will return an empty list (or undef if called in a scalar context.)
Returns return the time of the last update formatted as a W3CDTF string.
Get a list of posts on a given date, filtered by tag. If no date is supplied, most recent date will be used.
Filter by this date.
Returns a list of tags.
Renames tags across all posts.
old
Old tag
new
New tag
Get a list of inbox entries.
Filter by this date
Get a list of dates containing inbox entries.
This may be updated to return a Net::Delicious::Inbox object.
Get a list of your subscriptions.
Returns a list of Net::Delicious::Subscription objects when called in an array context.
Adds a subscription.
Username.
Tag - leave blank for all posts
Returns a Log::Dispatch object.
Errors are logged via the object's logger method which returns a Log::Dispatch object. If you want to get at the errors it is up to you to provide it with a dispatcher.
0.92
$Date: 2004/12/12 22:42:48 $
Aaron Straup Cope <ascope@cpan.org>
http://del.icio.us/doc/api
The version number (0.9) reflects the fact the del.icio.us API still has a great big "I am a moving target" disclaimer around its neck.
This package implements the API in its entirety as of DATE.
Copyright (c) 2004, Aaron Straup Cope. All Rights Reserved.
This is free software, you may use it and distribute it under the same terms as Perl itself.
To install Net::Delicious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Delicious
CPAN shell
perl -MCPAN -e shell install Net::Delicious
For more information on module installation, please visit the detailed CPAN module installation guide.