Closed natestedman closed 11 years ago
We just rolled out special pagination parameters for since/before_id that should help with that: http://developers.app.net/docs/resources/post/#special-pagination-ids. You can now specify either marker
or marker_inclusive
depending on whether you want to include the marked post.
The other thing to comment on is that all stream markers names are provided by the server (you can't set a marker with a custom name). I think this takes care of everything above, but feel free to reopen if I missed something in the original issue.
I may be wrong about the expected use case for markers, but here goes:
POST
to the marker update endpoint with theid
of the object that is currently at the top of the screen.So, that's for writing to the marker. Right now, using it on the reading end seems a little less optimal.
count=0
to retrieve the marker name and the marker's currentid
.before_id
set to theid
.before_id
after that page loads to get newer posts.Two problems here:
before_id
is not inclusive (and the inclusive API is deprecated), there's no way toPOST
anid
and include that post the next time the stream is loaded.My proposed solution: