Parameters to newFetchPersonAppDataRequest?

2 views
Skip to first unread message

Mike Austin

unread,
May 16, 2008, 8:38:09 PM5/16/08
to opensocial-an...@googlegroups.com

I’m a little late for bringing this up, and maybe it’s been covered already but..

 

Is there currently a way to restrict the number of results and change the offset when calling newFetchPersonAppDataRequest with VIEWER_FRIENDS or OWNER_FRIENDS?  For example, if the member using an app has 1000 friends (and assuming the friends all have the app), will this return data for 1000 members?

 

similar to newFetchPeopleRequest -

 

var params = {};

params[opensocial.DataRequest.PeopleRequestFields.FIRST] = this.offset;

params[opensocial.DataRequest.PeopleRequestFields.MAX] = this.pagesize;

request.add(request.newFetchPeopleRequest('OWNER_FRIENDS', params), 'friends');

 

 

Thanks,

 

Mike Austin

hi5.com

Arne Roomann-Kurrik

unread,
May 16, 2008, 9:45:17 PM5/16/08
to opensocial-an...@googlegroups.com
Hi Mike,

    A similar proposal was brought up here: http://groups.google.com/group/opensocial-and-gadgets-spec/browse_thread/thread/62c760430bd15e79# but was not formalized enough for inclusion in 0.8 (it is still open for 0.9).  From the general tone of that thread, it sounds like paging through the data store isn't quite the right approach to the problem of appData responses being too big - a more usable solution would be to join AppData with the results of a Person request, as paging through AppData independently of a Person request doesn't seem that useful.  You should probably contribute to that thread if you're interested in this functionality.

Cheers,
~Arne
--
OpenSocial IRC - irc://irc.freenode.net/opensocial
Reply all
Reply to author
Forward
0 new messages