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's email
address??

below is a snippet of the code, i understand within opensocial there
is the email.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