List Info

Thread: Picasa Pagination




Picasa Pagination
user name
2007-12-07 21:50:35
Has anyone had any luck with using pagination utilizing
Picasa API? I am at a
loss as to find the most efficient way to handle this.

I am able to retrieve all my albums/photos, but I would like
to page through
the photos so that web clients don't have to download 200+
pictures at a
time.

Thanks,
Cory
-- 
View this message in context: http://www.nabble.com/Picasa-Pagination-tf
4965828s16154.html#a14225183
Sent from the Zend gdata mailing list archive at
Nabble.com.


Re: Picasa Pagination
user name
2007-12-08 18:40:21
Hi Cory,

We're actually trying to make this slightly easier.  In the meantime, take a look at the code below:

Cheers,
-Ryan



// Let's say you have a feed of photos called $feed (probably a Zend_Gdata_Photos_AlbumFeed):
$previousLink = $feed->getLink("previous");
$nextLink = $feed->getLink("next");

if ($previousLink !== null) {
  echo "previous url: " . $previousLink->href . "<br />";;
  // $photos is an instance of Zend_Gdata_Photos
&nbsp; $previousFeed = $photos-&gt;getAlbumFeed($previousLink->href);
}
if ($nextLink !== null) {
  echo "next url: " . $nextLink->href . "<br />";;
  //$photos is an instance of Zend_Gdata_Photos
&nbsp; $nextFeed&nbsp; = $photos-&gt;getAlbumFeed($nextLink->href);
}

On Dec 7, 2007 7:50 PM, kwylez < kwylezgmail.com">kwylezgmail.com> wrote:

Has anyone had any luck with using pagination utilizing Picasa API? I am at a
loss as to find the most efficient way to handle this.

I am able to retrieve all my albums/photos, but I would like to page through
the photos so that web clients don't have to download 200+ pictures at a
time.

Thanks,
Cory
--
View this message in context: http://www.nabble.com/Picasa-Pagination-tf4965828s16154.html#a14225183
Sent from the Zend gdata mailing list archive at Nabble.com.


Re: Picasa Pagination
user name
2007-12-10 07:44:59
Ryan,
 ; Thanks for the code example.&nbsp; I will be looking at this today.

-Cory

On Dec 8, 2007 6:40 PM, Ryan Boyd < ryanboydgoogle.com">ryanboydgoogle.com> wrote:
Hi Cory,

We&#39;re actually trying to make this slightly easier.&nbsp; In the meantime, take a look at the code below:

Cheers,
-Ryan



// Let's say you have a feed of photos called $feed (probably a Zend_Gdata_Photos_AlbumFeed):
$previousLink = $feed->getLink(&quot;previous");
$nextLink = $feed->getLink(&quot;next&quot;);

if ($previousLink !== null) {
  echo "previous url: " . $previousLink->href . "<br />";;
  // $photos is an instance of Zend_Gdata_Photos
&nbsp; $previousFeed = $photos-&gt;getAlbumFeed($previousLink->href);
}
if ($nextLink !== null) {
  echo "next url: " . $nextLink->href . "<br />";;
  //$photos is an instance of Zend_Gdata_Photos
&nbsp; $nextFeed&nbsp; = $photos-&gt;getAlbumFeed($nextLink->href);
}

On Dec 7, 2007 7:50 PM, kwylez < kwylezgmail.com" target="_blank">kwylezgmail.com> wrote:

Has anyone had any luck with using pagination utilizing Picasa API? I am at a
loss as to find the most efficient way to handle this.

I am able to retrieve all my albums/photos, but I would like to page through
the photos so that web clients don't have to download 200+ pictures at a
time.

Thanks,
Cory
--
View this message in context: http://www.nabble.com/Picasa-Pagination-tf4965828s16154.html#a14225183
Sent from the Zend gdata mailing list archive at Nabble.com.





--
Cory Wiles
kwylezgmail.com">kwylezgmail.com
http://www.corywiles.com
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )