Thanks, i think i already figure out how would 2-legged OAuth works as i got it working with python api. So now my only concern would be how to implement this in javascript? How can i pass secret key within url? or else? I know there it has to be used as there would be no authorization without it.
Any working examples would help a lot as i am not so agile in javascript as in python. ---------- Wiadomość przekazana dalej ---------- As far as I can understand, 2-legged OAuth is a server-2-server authorization, so I don't think you need to share your secret with Google in order to use it. You can have a look at this http://sites.google.com/site/oauthgoog/2leggedoauth/2opensocialrestapi I found it very helpful for understanding how 2-legged oauth works Paola On Oct 13, 2009 11:14am, Michał Klich <[email protected]> wrote: > Hi, > > Before i post my question i will give you some background. > What i am coding right now is a gadget that would allow to export private contacts to shared contacts within our company`s domain. After reading a lot (maybe not enough) i came to a point where i would like to use 2-legged authorization for doing this as i need to have admin access for this gadget so user can export his contacts. > > I managed to append list of shared contacts using javascript or python, also to retrieve and change private contacts using javascript. > > > My question would be about any examples or documentation which would help me making 2-legged auth to work. I have googled a lot but could not find any information helpful to me. Where would i pass secret key to google? would it be a parameter to makeRequest()? or would it be in a url? > > > > This should be asked first i guess, is it possible to have users login with this gadget as admins and export contacts? > > Thank you for replys. > > -- > Michał Klich > > > [email protected] > [email protected] > http://www.michalklich.com > > > > > > > > > -- Michał Klich [email protected] [email protected] http://www.michalklich.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
