Hi guys.

I've been digging into the Twitter API using Themattharris's excellent
PHP class a lot these past two weeks.

Everything has been fine with standard OAuth calls, but now I would
like to make use of the User Stream - which the class appearently
supports. However, nothing is returned when I do try the following:

------------------------------------

tmhOAuth->streaming_request('GET', 'http://stream.twitter.com/1/
statuses/sample.json', array(
        'count'      => 10,
), 'test_callback');

function test_callback($p) {
        echo 'Now printing: ';
        print_r($p);
        ob_flush();
}

------------------------------------

I get a status code '200', but test_callback is never called. If I do
not set a parameter, I receive an error status, so it seems like it
ought to work.

Is there a kind person out there, who can get me on the right path, or
am I completely off track here? :) I've been struggling with this all
day and haven't been able to find a solution anywhere online. I have
found a couple of examples that seem to do exactly what I do, but with
succes.

Thanks in advance - and for the many useful answers I have already
found here!
- Tobias

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to