Hi, I am using the following code to fetch activities.

function getActivities(){
    var req = opensocial.newDataRequest();
 
req.add(req.newFetchActivitiesRequest(opensocial.DataRequest.PersonId.VIEWER,
{}), 'viewerActivities');
    req.send(showActivities);
}

function showActivities(dataResponse){
        if (dataResponse.hadError()) {
            alert("Error in activity response");
        }
        else {
            alert("Got activities " + dataResponse);
            var viewerActivities =
dataResponse.get('viewerActivities').getData()['activities'];
            alert(viewerActivities);
        }
}


But, I am getting error in the response object received in the
callback method(dataResponse.hadError() == true)). As per
http://code.google.com/apis/opensocial/docs/0.7/reference/opensocial.DataRequest.html#newFetchActivitiesRequest,
the optional params are not yet supported, so i am just passing an
empty map.
Am i missing something while constructing the request? Also,
1. Is there any _proper_ spec/example for activities posting and
fetching activities using OS 0.7? I could see one only for OS 0.6
2. Doesn't Orkut display the posted activities in the profile page?

-Vikram
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to