Hi Mark,

I'm assuming you're iterating over a bunch of AlbumEntry objects:

http://framework.zend.com/apidoc/core/Zend_Gdata/Photos/Zend_Gdata_Photos_AlbumEntry.html

To get the cover you can look at the media:content or the media:thumbnail
with something like

if ($albumEntry->getMediaGroup()->getContent() != null) {
  $mediaContentArray = $photoEntry->getMediaGroup()->getContent();
  $contentUrl = $mediaContentArray[0]->getUrl();
}

if ($albumEntry->getMediaGroup()->getThumbnail() != null) {
  $mediaThumbnailArray = $photoEntry->getMediaGroup()->getThumbnail();
  $firstThumbnailUrl = $mediaThumbnailArray[0]->getUrl();
}

Cheers,
-Jeff

On Mon, Feb 16, 2009 at 2:50 PM, tip2tail <m...@tip2tail.co.uk> wrote:

>
> Hi all,
>
> Fairly confident PHP coder but new to this Zend/GData lark so sorry if
> this has been covered before.  I did search for about 30 mins but came
> up with diddly squat so far!
>
> Anyway,  developing my personal site to use the photos as data fed
> from PWA and so far have been able to list all albums, all photos in
> an album, see the photos etc but I need to get the Album Cover Image
> (that appears on the PWA home page for my albums.  I think this is
> refered to as the Album Icon in the API but I'm unsure as how to
> retrieve this from the Zend feed.
>
> Anyone able to help?
>
> Thanks!
>
> Mark
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to Google-Picasa-Data-API@googlegroups.com
To unsubscribe from this group, send email to 
google-picasa-data-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Picasa-Data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to