I'm not sure 2legged OAuth is what he wants. He just wants to pull the logged in user's email from iGoogle (no data exchange). Opensocial allows you to do something like that with the Person object.
See http://groups.google.com/group/Google-Gadgets-API/browse_thread/thread/3d48e0d525aaeaf7/2b221ec05540af35?lnk=gst&q=logged+in+username#2b221ec05540af35 http://code.google.com/apis/opensocial/docs/0.8/reference/#opensocial.Person_method_summary Eric On Feb 7, 12:27 am, "Tony (Google)" <[email protected]> wrote: > Hi Oskar, > > I am not exactly sure about your use case but it seems like you would > be interested in looking at 2-legged OAuth: > > http://code.google.com/apis/accounts/docs/OAuth.html#GoogleAppsOAuth > > Thanks, > > --Tony > > On Feb 6, 3:14 am, Oskar Casquero <[email protected]> wrote: > > > Hi! > > Within a Google Apps domain, I'm developing a gadget that connects to a > > service where the same username of Google Apps is used. In order to avoid > > asking the user to fill a gadget property where the username is saved, I > > would like to know if it is possible to extract (via API) the username from > > iGoogle context. > > > Regards, > > ----- > > > Oskar Casquero Oyarzabal > > Department of Systems Engineering and Automatic Control > > University of the Basque Country > > > Mailing Address: > > University College of Technical Industrial Engineering of Bilbao > > Plaza de la Casilla 3 > > ZIP: 48012 - Bilbao (Spain) > > > Phone & Fax: 94 601 4459 > > E-mail: [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Apps APIs" 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-apps-apis?hl=en -~----------~----~----~----~------~----~------~--~---
