Thursday, December 18, 2008

OpenSocial

(My Original Blog Post: -*http://api-madness.com/post/opensocial-2/)
[youtube]http://www.youtube.com/watch?v=a9j_ta74CQo[/youtube]

Attention! API Garbage (might be unreadable):

list friends gift

What do you see him just created that didn t give storefronts on our little bit so we can see the diffs three we re going to start a modifier gives you functions so just updated it also requested about their data request objects were going to specify that in addition to updating the viewer s application data we also request information with your viewer friends and the personal information stored on computer in the look friends function are also going to do something similar to the literalist friends of your friends we also request the personal application storage of your going to make these two requests parallel each other so that we initialize the gadget or give a gift we can send the callback sensitive information in a modifier on look friends function so that in addition to specifying the viewer and the viewer friends we pull out the gifted it which is the list of gifts to give again we create the list of friends as the selection menu and then once that has been inserted into the page recall the update gift list function which was little list of gifts we are given update gift list pulls information out of the data rate we have given it specified by the viewer ID in the key of gifts which is where information is stored and then take this data converted back from adjacent string into a JavaScript object that we can use once we have this object which is the parent of a friend ID and a gift ID we can convert that into a string which specifies the friend of your giving a gift to and the gift we ve given them we can answer this list and the page as HTML finally make a small change to the gadget XML file so that we have summer to insert HTML is a new version of our gadget but now displays a list of gifts we ve given so I clicked on the gift of button it shows up in the list below for more financial like to show you and more information on the social API please check out the tutorial on code.google.com for the open social such

No comments: