Hi,
I am new with twitter streaming AP,
i get 401 unauthorized response when i try the sample example:
https://stream.twitter.com/1.1/statuses/sample.json
when the username & password question arise i try 3 things:
- my twitter username & password
- my Consumer Key (API Key) & Consumer Secret (API Secret)
- Access Token & Access Token Secret
none of them worked.
someone can please help with that ?
You cannot connect to the Twitter API using a web browser. You should use OAuth-capable code to connect.
Thanks!,
I wrote simple code and it worked!
1 Like