I'm sure that I'm missing something obvious, but I can't figure out what it
is. I'm trying to retrieve a list of photos with a particular tag in any
album belonging to a specific user. Here's my code:
$service = new Zend_Gdata_Photos();
$query = new Zend_Gdata_Photos_UserQuery();
$query->setUser( 'stchrisschoolnh' );
$query->setKind( 'photo' );
$query->setTag( 'show' );
$query->setProjection( 'api' );
$query->setImgMax( 'd' );
$query->setMaxResults( 20 );
echo $query->getQueryUrl() . "<br>";
try
{
$feed = $service->getUserFeed(null, $query);
}
catch ( Zend_Gdata_App_Exception $e )
{
echo $e->getMessage();
}
echo "count=" . $feed->count() . "<br>";
foreach ( $feed->entries as $e )
{
echo "title=" . $e->summary->text . "<br>";
echo "url=" . $e->content->src . "<br>";
}
When I run this code, I only get one photo in the feed. However, if I take
the result of getQueryUrl and open that URL in IE, I get three photos,
which is what I am expecting.
What am I doing wrong?
Thanks,
Mark
--
You received this message because you are subscribed to the Google Groups
"Google Picasa Web Albums API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-picasa-data-api/-/rvBZfcdR-QoJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-picasa-data-api?hl=en.