diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)


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 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.


Share This Story, Choose Your Platform!

Get Latest News

Subscribe to Digital News Hub

Get our daily newsletter about the latest news in the industry.
First Name
Last Name
Email address
Secure and Spam free...