Hi,
I'm trying to get all activities for a specific user (viewer)... The
code snippet in gadget xml looks like...
function getData() {
var req = opensocial.newDataRequest();
req.add(req.
newFetchActivitiesRequest(opensocial.DataRequest.FETCH_ACTIVITIES),
'activities');
req.send(onLoadFriends);
};
When I execute this gadget xml (call through html) in shindig
container... the POST request has only operation type specified (i.e.,
type=FETCH_ACTIVITIES) and "idSpec" is missing in the post request.
I tried the same approach to get all friends for viewer as follows...
function getData() {
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER),
'viewer');
req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.VIEWER_FRIENDS),
'viewerFriends');
req.send(onLoadFriends);
};
this works fine... the POST request has function type and "idSpec"
parameter values and I got the correct response.
Is the approach (for FETCH_ACTIVITIES) used by me is correct??
Do I need to send JSON instead ??
NOTE: I could get "CreateActivityPriority" working fine.
Any pointers would be highly appreciated.
--SUresh
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---