Hi, thanks for your response. It does help.
I still needed to know if the DATA API is available for our use to store our app data values. When I try to use it I get no results and no errors so I cant really tell if its working.... Not sure if its not fully functional.
Am trying to use the newFetchPersonAppDataRequest & newUpdatePersonAppDataRequest to retrieve data and update data for a user. Ibelieve the newUpdatePersonAppDataRequest function is working but cannot validate this as the newFetchPersonAppDataRequest is not working. I do not get any errors nor do I get any results. Provided below is the code I am using. The callback for getdata does not get fired at all. And inside getdata how do I retrieve our keydata?
Thanks again,
V
function GetData()
{
os = opensocial.Container.get();
req = os.newDataRequest();
req.add(os.newFetchPersonAppDataRequest("VIEWER", "mykeyname"));
req.send(getVariable_callback);
alert("here");
}
function getVariable_callback(data)
{
if (response.hadError())
{
alert("error occurred");
}
else
{
alert("no error");
}
}
function SetData()
{
var req = opensocial.newDataRequest();
req.add(req.newUpdatePersonAppDataRequest("VIEWER", "mykeyname", "mykeyvalue"));
req.send(setVariable_callback);
}
function setVariable_callback(response)
{
alert("inside callback");
}
</script>