Thin-PHP-Framework icon indicating copy to clipboard operation
Thin-PHP-Framework copied to clipboard

OAuthTwitter and using it to fetch data from Firehose

Open rsanaie opened this issue 13 years ago • 1 comments

Hey there,

I'm trying to use the OAuthTwitter class and fetch other data from twitter feed that require OAuth as follows:

$s = $oauth->fetch('https://stream.twitter.com/1/statuses/filter.json', 'POST', array('follow' => '249987509'), 'json');

But I keep getting 401 Unauthorized responses.

I have ensured that I have passed in the exact same parameters as what the Twitters 'OAuth Tool' generates for cURL command (except oauth_nonce and oauth_signature).

Is the OAuthTwitter class meant to be used for such thing at all?

rsanaie avatar Apr 24 '12 21:04 rsanaie

Hi, It has been a long time I haven't used Twitter OAuth. Because Twitter didn't give me user's email. I'm using Facebook & Google OAuth now.

These are useful sources for investigation: http://code.google.com/p/oauth/ http://code.google.com/p/oauth-everywhere/

ngduc avatar Apr 26 '12 19:04 ngduc