Skip Menu |

This queue is for tickets about the Net-Delicious CPAN distribution.

Report information
The Basics
Id: 8026
Status: resolved
Priority: 0/
Queue: Net-Delicious

People
Owner: Nobody in particular
Requestors: rs [...] crystalflame.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Date: Fri, 15 Oct 2004 15:08:28 -0700
From: Richard Soderberg <rsoderberg [...] gmail.com>
To: bug-Net-Delicious [...] rt.cpan.org
Subject: ->posts({ tag => ... }) no longer returning multiple results
Testing revealed that my instance of Net::Delicious no longer returns multiple results for posts({ tag => ...}); it worked last week, so I can't say what changed, but I can say that I had to apply the following diff to code I wrote last week in order to get it working with Net::Delicious: my $del = Net::Delicious->new( { user => "...", pswd => "..." } ); -my @posts = $del->posts( { tag => "website" } ); +my @all = $del->all_posts(); +my @posts = grep { $_->tags() =~ /\bwebsite\b/ } @all; - R.
I will try to get to this in the next day or so. Thanks for the heads up. [rs@crystalflame.net - Fri Oct 15 18:14:15 2004]: Show quoted text
> Testing revealed that my instance of Net::Delicious no longer returns > multiple results for posts({ tag => ...}); it worked last week, so I > can't say what changed, but I can say that I had to apply the > following diff to code I wrote last week in order to get it working > with Net::Delicious: > > my $del = Net::Delicious->new( { user => "...", pswd => "..." } ); > > -my @posts = $del->posts( { tag => "website" } ); > +my @all = $del->all_posts(); > > +my @posts = grep { $_->tags() =~ /\bwebsite\b/ } @all; > > - R.
This is not a problem with N:D - according to the API docs : function: http://del.icio.us/api/posts/get? &tag= filter by this tag - optional &dt= filter by this date returns a list of posts on a given date, filtered by tag. if no date is supplied, most recent date will be used The tag limit will only return matching posts for the date being polled, rather than all. Grepping on 'all_posts' will work, technically, but I am not going to add it to the package given the following notice in the API docs : function: http://del.icio.us/api/posts/all returns all posts. use sparingly. [rs@crystalflame.net - Fri Oct 15 18:14:15 2004]: Show quoted text
> Testing revealed that my instance of Net::Delicious no longer returns > multiple results for posts({ tag => ...}); it worked last week, so I > can't say what changed, but I can say that I had to apply the > following diff to code I wrote last week in order to get it working > with Net::Delicious: > > my $del = Net::Delicious->new( { user => "...", pswd => "..." } ); > > -my @posts = $del->posts( { tag => "website" } ); > +my @all = $del->all_posts(); > > +my @posts = grep { $_->tags() =~ /\bwebsite\b/ } @all; > > - R.