Hi Dan,

Thanks for the reply. I am facing the same problem

You said its not easy to find the email address. Can you please
clarify, is it at all possible to find the email address and how? In
my gadget, I need email address only, and I can not ask user to go
through authorization as I dont need to interact with google apis.

Waiting for your answer eagerly, as its a major blocker for me.

Thanks
-Sumit.



On Oct 2, 6:02 am, "Dan (Google)" <[email protected]> wrote:
> Hi,
>
> It is not currently possible to easily get the current user'semail
> address. If you just need a constant, unique identifier for the
> current user, you can use the OpenSocial ID for the viewer/owner.
>
> Dan
>
> On Sep 24, 9:16 am, alam123 <[email protected]> wrote:
>
>
>
> > I was hoping if someone can give me some insight if the below is
> > possible...
>
> > I'm just starting developing google gadget within igoogle environment
> > and i was wondering if it is possible, or are there any APIs to
> > request/retrieve/display the current igoogle logged in user'semail
> > address??
>
> > below is a snippet of the code, i understand within opensocial there
> > is theemail.field.address class, but it is returning undefined... any
> > help would be great.
>
> > thanks
>
> > <?xml version="1.0" encoding="UTF-8"?>
> > <Module>
> > <ModulePrefs title="hello world example">
> >   <Require feature="opensocial-0.8"/>
> > </ModulePrefs>
>
> > <Content type="html"><![CDATA[
> > <script type="text/javascript">
> > var req = opensocial.newDataRequest();
> > req.add(req.newFetchPersonRequest(opensocial.IdSpec.PersonId.OWNER),
> > 'owner');
> > req.send(fetchPersonHandler);
>
> > function fetchPersonHandler(resp) {
> >   var ownerResp = resp.get('owner');
>
> >   if (!ownerResp.hadError()) {
> >     var owner = ownerResp.getData();
> >     var owneremail = owner.getField(opensocial.Email.Field.ADDRESS);
>
> >     alert(owneremail);
>
> >   }
>
> > };
>
> >   </script>
> > ]]></Content>
> > </Module>

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