I've spent the day working on a patch to extend the client functionality another big step. Notably, the below patch enables clients to access the
getfriendpostsmode which returns, basically, the events on your friends page. It fully supports specifying how many items to return and if you want to skip items or not. Most of the code is pulled from ljviews.pl's friends view generator, so it has the same sort of checks and balances to make sure they're not pulling everything that's ever happened on the friends page. Maximum items returns is 50. There are also options to enable you to skip returning the text of the events and the logprops, individually configurable.
|username to view from|
|password or MD5 hashed password|
|items to return|
|number of items to skip|
|1==return logprops, 0==don't|
|1==return text, 0==don't|
Return values are like this:
|error message of success==FAIL|
|number of events returned|
|number of events skipped|
|subject of event #X|
|text of event #X if gettext==1|
|timestamp of event|
|the actual person who posted this event|
|the journal the event was posted in (community name)|
|[j]itemid of this event|
|number of comments on this entry|
|number of properties on this event|
|name of property|
|contents of property|
Ahh! Lots of data, eh? Okay. This has been tested on my local server and is currently running there if anyone wants to play with it. I've tested it with communities and secured entries. I've tested the skip mechanism and specifying the number of items to return. It should work with clustering because the functions it calls are cluster-aware functions.
Comments? Questions? Suggestions? Y'know where to reach me.
Click here for the patch itself.