| delicious-backup documentation | view source | Contained in the delicious-backup distribution. |
Net::Delicious::Simple - Net::Delicious for backups
version 0.013
use Net::Delicious::Simple;
my $del = Net::Delicious->new(user => 'plki', pswd => 'secret');
print "$_->{href}\n" for $del->all_posts;
If you want to do anything interesting with del.icio.us automation, you
probably want Net::Delicious. It's good. This module is not. It's just
here to return all of your tags or posts as a basic Perl data structure. This
makes it very easy to store that structure using existing dumpers. In fact, it
only exists to power delbackup, which dumps to YAML or Netscape::Bookmarks.
The constructor gets passed the same things as you'd pass to Net::Delicious.
Basically, you need to pass user and pswd arguments, giving your login
credentials.
This returns all of your posts, in a list. Every post is hash with the following keys: description, extended, href, tags, and datetime.
Tags is an arrayref, and datetime is in seconds-sicne-epoch, GMT.
Ricardo SIGNES <rjbs@cpan.org>
(C) 2004, Ricardo SIGNES. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| delicious-backup documentation | view source | Contained in the delicious-backup distribution. |