Thank you for your answer.
I'm a newbie in google api and opensocial stuff, so sorry if my
questions are to simple.
I played a little with opensocial (in this case 0.7). What I can
receive inside a container is e.g. the
- Name of the viewer (viewer.getDisplayName()) - but this is working
in orcut not in igoogle.
- the ID (viewer.getID()) - this seems to work everywhere.
So I could use e.g. the ID to create my user in my database and
recognize him.
But I would prefer to know the viewers email address, this should also
be uniqe.
Here are two questions:
- How can I get the viewers email address?
- If one is not logged in, he is never able to add a gadget somewhere?
In other words - can I assume, the a user, who uses a gadget is logged
in to a google service? What happens with the viewers data, if he adds
a gadget to other websites, is the ID or the google email address also
available there?

Thank you
Torsten


On 16 Sep., 08:33, "Vision Jinx (Guru)" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Because your gadget/ajax app is being served in an iframe it will have
> no knowledge of its parent frames settings (like the currently logged
> in users email address). You will probably need to look at the Google
> Account Authentication API for doing what you want.
>
> http://code.google.com/apis/accounts/
>
> http://code.google.com/apis/accounts/docs/AuthForWebApps.html
>
> There may be new features in the new API for doing this but they are
> not fully supported (available outside the sandbox) or fully tested
> yet (hence the sandbox) so I would maybe try the links above as being
> more stable.
>
> Cheers!
> Vision Jinx
>
> On Sep 10, 7:06 am, westor <[EMAIL PROTECTED]> wrote:
>
> > Hi again,
>
> > I asked already this question, but the answer was not clear enough to
> > see, what my next steps should be.
>
> > I have an AJAX application which I will offer as an iGoogle gadget.
> > Gadget type = url should work.
> > The applications should use the current logged in google user to
> > authenticate against my application. And if the user is not already
> > existent in my application database, I have to create him. I'd like to
> > save his google mail address for this reason.
> > Do I need open social api (which version?) to do these tasks? Are
> > there examples for this?
>
> > Thank you
> > Torsten

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" 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-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to