6 messages in com.googlegroups.google-picasa-data-apiRe: Retrieving the Picasa Username| From | Sent On | Attachments |
|---|---|---|
| jrs...@yahoo.com | 27 Aug 2007 11:59 | |
| Sven | 27 Aug 2007 12:06 | |
| jrs...@yahoo.com | 27 Aug 2007 12:26 | |
| Sven | 27 Aug 2007 13:04 | |
| jrs...@yahoo.com | 29 Aug 2007 07:18 | |
| Ryan Boyd (Google) | 29 Aug 2007 13:18 |
| Subject: | Re: Retrieving the Picasa Username![]() |
|---|---|
| From: | Sven (s....@google.com) |
| Date: | 08/27/2007 01:04:30 PM |
| List: | com.googlegroups.google-picasa-data-api |
Yes, exactly. That should give you the albums for the currently authenticated user.
On 27/08/07, jrs...@yahoo.com <jrs...@yahoo.com> wrote:
Hi Sven,
Thanks for the reply.
What I don't understand is how I tie the token to the '/data/feed/api/ user/default' request. Is this done by modifying the header in the form of - Authorization: AuthSub token="myToken"?
Thanks,
jim
On Aug 27, 3:07 pm, Sven <s....@google.com> wrote:
On 27/08/07, jrs...@yahoo.com <jrs...@yahoo.com> wrote:
Hi,
I've been successful in setting up the AuthSub/AuthSubRequest process to allow a user to grant my site privs and provide me with a permanent session id. This appears to work fine.
Problem is... I could find no way for the API to provide me with the picasa username, thus I have no way to tie the session token with the user who has signed in?? The 'Picasa Web Albums Data API Reference Guide' makes no mention of how to handle this issue. Is the only way for me to deal with this is to ask the user what their username is? If so, doesn't this just add an unnecessary step in the process (since they've just granted my site access to their account)?
After search the API help, I find a google note instructing me to use the 'http://picasaweb.google.com/data/feed/api/user/default'default user request. Obviously, with the process being run on the server side, this will not work.
Why won't this work for you? Once you have authenticated the user, you can use the auth token and the /data/feed/api/user/default feed to access their data.




