Hello,

I want to be able retrieve pictures from my Picasa web albums, both
public and private (unlisted), and display them on my own web page.

I am using "Simpleviewer Multi Album Viewer for Picasa Web
Albums" (http://www.paulvanroekel.nl/picasawebalbums/albumviewers/
simpleviewer/) for this, which works great, but for public albums
only. What I want is to add the ability to read private albums, too,
and this is proving to be more difficult than what I can achieve with
my rather limited knowledge of PWA API and PHP programming. Basically,
I am now at a level where I can understand concepts and tools (like
XML album feed, properties, SimpleXML, authentication, etc.) to the
extent that I can make modifications to existing code to do some
limited adaptation/customization (but it would take me too long before
I could write my own code). This is exactly the kind of help I am now
looking for: sample code that I can change and add to my existing
scripts.

The current solution reads in the PWA XML feed (http://
picasaweb.google.com/data/feed/api/user/$userid) using cURL, parses it
using SimpleXML, and displays all the _public_ albums (along with
certain properties like photographer, etc.) with a PHP script (and
some custom Flash to make the album look cool).
Based on my limited understanding of how private albums work (by
extending the URLs with "?authkey=$authkey_string"), I wanted to
extend the URLs with suitable 'authkey' strings so I can read the
private albums, too. If I manually enter something like "http://
picasaweb.google.com/data/feed/api/user/$userid?authkey=
$authkey_string", I get XML, in which I can see the album 'authkey'-s,
but I cannot make my script read them (it keeps reading my public
albums only). My guess is that I am doing something wrong with
handling authentication. (I've read about OAuth 2.0 at
http://code.google.com/apis/picasaweb/docs/2.0/developers_guide_protocol.html,
but the more I read it, the more I realize how much I don't know...)

Could anyone help me understand how I can read private (unlisted)
Picasa albums, preferably pointing me to some sample code, which I
could use in my script.
If needed, I can provide more details of my current scripts, but as
far as handling the albums is concerned, I am doing everything as
found in the Simpleviewer package (http://www.paulvanroekel.nl/
picasawebalbums/albumviewers/simpleviewer/download/
pwasimpleviewerm.zip).

Thank you so much for any help in advance!

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