Getting the cursor in the PHP client library

34 views
Skip to first unread message

William Denniss

unread,
May 26, 2011, 3:26:16 AM5/26/11
to Disqus Developers
Hi All,

Is there any "correct" way to get the cursor from a Disqus response
using the PHP client library?

The disqusapi.php:__call function returns $data->response and doesn't
seem to do anything at all with $data->cursor. By returning $data-
>response and not $data – the user then has no way to get the cursor.

For my needs, I hacked this feature in the following way:
https://github.com/WilliamDenniss/disqus-php/commit/63b218437d7c5457da199ca4f899e1a7ac4e5b98

It stores the most recent cursor in the $api method which you can
retrieve with $api->lastCursor.

Is there a better way to do this? Should I file a 'pull request' for
this hack?

Cheers,
Will
Reply all
Reply to author
Forward
0 new messages