I can't be the first one to ask about that.
How to get that handy thumbnails and direct photo link I can see in
picasa-web via python 1.0 API?

I was able to upload new photos, change metadata and everything, now I
just want links with the proper size.

As stated in 
http://code.google.com/intl/ru-RU/apis/picasaweb/docs/2.0/reference.html#Parameters,
to get a different thumbnails size 'thumbsize' option should be set. I
couldn't find any appropriate method for that in python API, so, I
just call a Get method with changed uri:

photos = picasaPoster.gdClient.GetUserFeed(kind='photo', limit='10')
for photo in photos.entry:
        photo_url = '/data/feed/api/user/%s/photoid/%s?thumbsize=800'
% (username, photo.gphoto_id.text)
        photo = picasaPoster.gdClient.Get(photo_url)

At this point I assume that 'photo' should be a PhotoEntry. But it's
just GDataFeed
I checked all variables, and it turnes out that the thumbnail I
requested is somewhere in photo.FindExtensions(). Is there a way to
parse that data somehow neatly, with some handy API call?
Next, there is a GetMedia() method in PhotosService. Calling it with
the photo_url I assumed to get Media for that photo, but it just
returnes blank.
Same for GetEntry, in hope to get a PhotoEntry with thumbnails.

I actually didn't think getting thumbnails could become a problem at
all, so I'm a bit stuck now.
In a result I want 2 links:
- direct photo link (smth looking like: 
https://picasaweb.google.com/lh/photo/VJtf-RVWwl1xEYvwEz-5gQ)
- 800px thumbnail link, like this one:
https://lh6.googleusercontent.com/-M3-P6QrM-NM/Tp8mOdPZ3KI/AAAAAAAABAM/CqJJccFl3ac/s800/Constantly%252520falling.jpg

any way to do that without walking ExtensionElement's for each photo
trying to determine whether it has proper thumbnails or not?

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

Reply via email to