cursor based paging

5 views
Skip to first unread message

dozykraut

unread,
Oct 15, 2009, 5:11:58 PM10/15/09
to Twitter Development Talk
http:// twitter.com/statuses/followers/username.xml?cursor=-1 gives me
page 1 of my followers list,. When I then request http:// twitter.com/
statuses/followers/username.xml?cursor=-new_cursor_value I get page 1
again.

The same happens when I request
http://twitter.com/statuses/followers.xml?screen_name=username&cursor=-cursor_value

So everywhichway - it don't work

John Kalucki

unread,
Oct 16, 2009, 1:57:33 AM10/16/09
to Twitter Development Talk
You are negating the values on subsequent requests. Start with -1
(negative 1). Then, just use the cursor value exactly as returned.

Everywhichway, it works just fine.

-John Kalucki
http://twitter.com/jkalucki
Services, Twitter Inc.

On Oct 15, 2:11 pm, dozykraut <Bernhard.Schul...@gmx.net> wrote:
> http:// twitter.com/statuses/followers/username.xml?cursor=-1 gives me
> page 1 of my followers list,. When I then request http:// twitter.com/
> statuses/followers/username.xml?cursor=-new_cursor_value I get page 1
> again.
>
> The same happens when I requesthttp://twitter.com/statuses/followers.xml?screen_name=username&cursor...

Pradeep

unread,
Oct 23, 2009, 4:02:42 AM10/23/09
to Twitter Development Talk
John,

Please not that the API documentation on this link
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0followers
tells the users to use negated values on each subsequent requests.

Please take immediate steps to correct this in the documentation.

Regards,
Pradeep


On Oct 16, 10:57 am, John Kalucki <jkalu...@gmail.com> wrote:
> You are negating the values on subsequent requests. Start with -1
> (negative 1). Then, just use thecursorvalue exactly as returned.
>
> Everywhichway, it works just fine.
>
> -John Kaluckihttp://twitter.com/jkalucki

John Kalucki

unread,
Oct 23, 2009, 9:09:20 AM10/23/09
to Twitter Development Talk
Fixed.

On Oct 23, 1:02 am, Pradeep <pradeep.de...@gmail.com> wrote:
> John,
>
> Please not that the API documentation on this linkhttp://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0f...

Pradeep

unread,
Oct 26, 2009, 5:07:41 AM10/26/09
to Twitter Development Talk
John,

Thank you for your quick response.

I think the same mistake is there in the case of statuses/friends too.
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0friends

Thanks,
Pradeep.

John Kalucki

unread,
Oct 26, 2009, 9:38:46 AM10/26/09
to Twitter Development Talk
Also fixed.


On Oct 26, 2:07 am, Pradeep <pradeep.de...@gmail.com> wrote:
> John,
>
> Thank you for your quick response.
>
> I think the same mistake is there in the case of statuses/friends too.http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0f...
Reply all
Reply to author
Forward
0 new messages