OpenSocial Tutorial – Part 5: Listing Gifts You’ve Received

YouTube Preview Image

Attention! API Garbage (might be unreadable):

list gifts gift

Him storefronts also shows against him should adjust other funds toss the first reason do is make a small change to and edit XML soda place to insert our list of received gifts is really too small changes one to load funds and want to give to function so we have a request for funds data as well as our own first to modify load funds so that in addition to requesting information on the viewer of your friends as well as the viewer s personal application to the alternate request viewer finds application in next week the same change and give gift so the request early to learn we update our load funds so that in addition to point out information with your viewer finds image of data recorder information on your funding which is the list of gifts and all her friends and dysfunction that iterates through the list defines displays the menu so you may select a front to give a gift to updates the gift list which shows a list of gifts that you ve sent finally calls the new function update received list which shows the list of gifts that you receive from your friends update received list closely parallels up that gift must instead of generating just wants the list of gifts that you sent it iterates through each of your friends pulled out the application data just for the fun specified by reference ID and converts the data that pulls up into a JavaScript object once it has this wasn t just that your friend is giving it iterates through each of them comparing different idea that the gift was sent to majority if the IDs match it adds that gift is a gift that was given to you as the list of gifts that have been given to us and concluded that they are inserted into the page you can see the newly created version art at the display is not just options for sending him storefronts and a list of gifts that we party central principle is to give storefronts and sent us for more information on what you showed you as well as information on the open social API check out the tutorial and code.google.com under the open social section

OpenSocial Tutorial – Part 3: Giving Gifts

YouTube Preview Image

Attention! API Garbage (might be unreadable):

gift funds data

So sauce just so you will reduce you to XML file creating a foreign but I was the funds also gives an intriguing to get to the front next to modifier on load funds function and soda instead of listing the funds in the page it creates a menu of them so we can pick one front next recruiting other functions make options menu which takes a list of gifts that we specify and creates a tremendous that we can select a gift to give to her front that we modifier our initialization functions of instead of just letting her friends and also loves to give money when the gadget lets the last and most important step is running against a function this function takes the gift and the fund was to send a gift to and saves them into the persistent data storage of the open social API we do that by creating a new data request object and passing into a new update person update request specified to see the data under the viewer object that was in the request of the open social API which stores the data if you consider gadget in action specifying a list of gifts was the funds and fund to give a gift to the front for more information on what to show you check out the tutorial on code.google.com would be open social section

OpenSocial Tutorial – Part 3: Giving Gifts

YouTube Preview Image

Attention! API Garbage (might be unreadable):

gift data function

So exhausted you just have started a small modifications to the XML file creating a form that I was defined as those who gives a button to delete up to the front next to modify or almost friends function and so that instead of listing the front page it creates a menu of them so we can pick one front next recruit another function that make options menu which takes a list of gifts that were specified in creates a tremendous that we can select a gift to give to her front bedroom of our initialization functions of instead of just letting her friends and also loads the gift menu when the gadget lets the last and most important step is running against a function this function takes the gift and the friend was to send a gift to and saves them into the persistent data storage of the open social API we do that by creating a new data request object and passing into a new update person update request specifying to save the data under the viewer object and resend the request of the open social API which stores the data you consider gadget in action specifying a list of gifts a list of friends and a button to give a gift to the front for more information on what to show you check out the tutorial on code.google.com would be open social section

OpenSocial

YouTube Preview Image

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