OpenSocial Tutorial – Part 4: Listing Gifts You’ve Sent

(My Original Blog Post: -*http://api-madness.com/post/opensocial-tutorial-part-4-listing-gifts-youve-sent-2/)

Attention! API Garbage (might be unreadable):

list friends information

Use him and him just class autoloader this CD gives you just modify arguments to functions so just how do you do it also requested about a data request objects were going to specified in addition to updating the viewer s application data we also request information with your viewer friends and the personal information storage of 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 than we modified our offload friends function so that in addition to specifying the run of your friends to pull out the gifted it which is the list of gifts to give again we create the list of friends as a 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 within take this data converted back from injuries on 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 front of your given the gift you 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 somewhere to insert HTML is a new version of our gadget but now displays the list of gifts we ve given so I clicked on the gift of button it shows up in the list below for more information on what I ve showed you in more information on the social API please check out the tutorial at code.google.com for the open social section

~ by bitahatini on March 2, 2009.

Leave a comment