views:

299

answers:

1

I want to develop a webpage which fetches some data from my orkut account using OpenSocial APIs. The language I am working with is Javascript and I use jQuery. However I must admit that I an novice as far as JS is concerned. I have looked at opensocial-jquery, it seems restricted to gadgets and jOpenSocial lacks any good documentation and does not seems to be handling OAuth. Can you suggest a JS library which is a easy to use wrapper around OpenSocial? TIA

+1  A: 

It looks like opensocial-jquery will satisfy most of what you need. It's not limited to gadgets (here's a fetch person example: http://code.google.com/p/opensocial-jquery/wiki/ExamplePerson) and it wraps gadgets.io.makeRequest, which allows the AJAX functions to work.

I'm not sure what you mean by "handling OAuth" - you shouldn't need to do much in the way of implementing OAuth. There is a feature called the OAuth proxy in iGoogle, but opensocial-jquery supports that as well: http://code.google.com/p/opensocial-jquery/wiki/ExampleFriendFeedOAuth (appears to be in Japanese but the sample code is easy enough to understand).

Arne Roomann-Kurrik