|
List Info
Thread: Picasa Pagination
|
|
| Picasa Pagination |

|
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 |

|
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 $previousFeed = $photos->getAlbumFeed($previousLink->href); } if ($nextLink !== null) {
echo "next url: " . $nextLink->href . "<br />"; //$photos is an instance of Zend_Gdata_Photos $nextFeed = $photos->getAlbumFeed($nextLink->href); }
On Dec 7, 2007 7:50 PM, kwylez < kwylez  gmail.com" >kwylez gmail.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 |

|
2007-12-10 07:44:59 |
|
Ryan, Thanks for the code example. I will be looking at this today.
-Cory
On Dec 8, 2007 6:40 PM, Ryan Boyd < ryanboyd  google.com ">ryanboyd google.com> wrote:
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 $previousFeed = $photos->getAlbumFeed($previousLink->href); } if ($nextLink !== null) {
echo "next url: " . $nextLink->href . "<br />"; //$photos is an instance of Zend_Gdata_Photos $nextFeed = $photos->getAlbumFeed($nextLink->href); }
On Dec 7, 2007 7:50 PM, kwylez < kwylez  gmail.com" target="_blank">kwylez gmail.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 kwylez gmail.com">kwylez gmail.com http://www.corywiles.com
|
[1-3]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|