Are you sure that's where the cursor=-1 is supposed to go? Isn't the array meant to contain all the options you want to pass? Perhaps your library is cleaning up your URL to make sure it has no request parameters and only passing the parameters in the array that you're passing as a 2nd parameter to your oAuthRequest function.

On Oct 27, 2009, at 12:32 PM, TylerC <> wrote:

Further moor I edited the OAuth script for some debugging and output
the exact string returned by the CURL call and there is still no
next_cursor showing up.

On Oct 27, 1:52 pm, TylerC <> wrote:
Idk the OAuth files just return all the data from the CURL query there
is not any parsing done to it from what I can see. It just gives you
whatever it gets from Twitter which leads me to believe I am missing
some kind of parameter or there is a bug with the API and OAuth.

On Oct 27, 1:46 pm, JDG <> wrote:

The cursor stuff is still somewhat new. Just because it's on the wiki doesn't mean it was provided by Twitter (it's not). It may not have been updated to handle cursors. You should do a dump via a network monitoring tool, like wireshark or even just curl, to see what's sent to the oAuth class. I can't imagine the HTTP response being that different, unless
they're doing stuff with User-Agents.

On Tue, Oct 27, 2009 at 11:44, TylerC <> wrote:

Its the standard OAuth class provided from the Twitter wiki...

When I dump it, even with var dump or print it begins with :

<?xml version="1.0" encoding="UTF-8"?>
<users type="array">

But then right after the </users> tag the data ends. Its very odd and
its driving me nuts.

On Oct 27, 1:40 pm, JDG <> wrote:
are you sure they're not returned via the script? did you dump the data
received using wireshark or some other network monitoring tool? it could
that the $oauth class is simply not parsing it correctly.

On Tue, Oct 27, 2009 at 11:31, TylerC <> wrote:

I really don't get it now... I am making a call to get all my friends and I am only getting data between the <users></users> tags. I need to get cursors and while they are returned when going through the browser
they do not show up when ran from my script. wtf...

               $users = $oauth->oAuthRequest(
                       array(), "GET"

               $xml = simplexml_load_string($users);
               $next_page = $xml->next_cursor;

Its like the only data returned is the user array...

Internets. Serious business.

Internets. Serious business.

Reply via email to