OS Lite API (OSAPI) running on iGoogle

OpenSocial 0.9 specification introduced a simpler API called OS Lite (OSAPI) which uses a syntax that's friendlier for Javascript developers. iGoogle works with most OpenSocial 0.9 features. The implementation of OSAPI should work as documented at opensocial.org. Check the pic for a basic example execute a request to fetch and display a list of the […]

OpenSocial 0.9 specification introduced a simpler API called OS Lite (OSAPI) which uses a syntax that's friendlier for Javascript developers. iGoogle works with most OpenSocial 0.9 features. The implementation of OSAPI should work as documented at opensocial.org. Check the pic for a basic example execute a request to fetch and display a list of the user's friends. When running the code, look at JSON response from iGoogle and you'll see that data structure is pretty straightforward. Use the tools built into your browser: ‘Firebug if you are using Firefox; Chrome or Safari Developer tools; Opera Dragonfly; Internet Explorer 8's debugger,’ that help you debug Javascript, show HTTP messages that’re going to iGoogle from your gadget and responses iGoogle sends back. There's also OpenSocial Developer App which’s a gadget that’ll build arbitrary messages that you can incorporate in test code,” explains Google.

[Source]

About The Author

Deepak Gupta is a IT & Web Consultant. He is the founder and CEO of diTii.com & DIT Technologies, where he's engaged in providing Technology Consultancy, Design and Development of Desktop, Web and Mobile applications using various tools and softwares. Sign-up for the Email for daily updates. Google+ Profile.