appdotnet / api-spec

App.net API Documentation is on the web at https://developers.app.net. Source for these docs is in the new-docs branch here. Please use the issue tracker and submit pull requests! Help us build the real-time social service where users and developers come first, not advertisers.
https://developers.app.net
950 stars 98 forks source link

Provide endpoint with all messages for logged in user #252

Closed liGhun closed 11 years ago

liGhun commented 11 years ago

I would like to suggest an endpoint which returns a list of all messages for the current user like it is available for "my_stream" and similar. It should of course feature since and before parameters as well as a count parameter.

The only current way to be sure not to miss new entries is to get all channel Ids the user is subscribed to and then loop through them and fetch the messages. Quite much overhead I think

berg commented 11 years ago

Part of the reason why channels are efficient for certain applications is that we don't keep a fanned-out list of messages for each user. This does make rendering a set of channels a bit more difficult, but when combined with the mass-fetch endpoint for messages and pagination of the channels endpoint, it's not too hard to ensure that you've got everything.