Does Streaming API support Application-only authentication?


#1

I just follow this topic https://dev.twitter.com/docs/auth/application-only-auth and try the Application-only authentication.
And I hope that I can use this to “listen” from some newspaper just like in the past when I use Basic Auth.

POST /1.1/statuses/filter.json HTTP/1.1
Host: stream.twitter.com
User-Agent: Go 1.1 package http
Content-Length: 191
Authorization: Bearer AAAAAAAAAAAAAAAAAAAAAKQyRQAAAAAAyyyyyyyyyyyyyyyyyy%2FQT5skZtc%3Dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

follow=34713362&follow=231819789&follow=2087231&follow=95023423&follow=2893971&follow=389702353&follow=4641021&follow=529798141&follow=13261352&follow=76860994&follow=22256645&follow=64915887

I allways get 401 returned with this, so I think the Application-only authentication won’t work with Streaming?


#2

You are correct that Application-only auth is currently not supported on the streaming APIs, sorry. Luckily most streaming use-cases just need a single access token so you can just copy the one from your application settings page on dev.twitter.com (no need for 3-legged auth).

I love that you’re using Go by the way.


#3

OK, thanks for your reply!
I hope Twitter won’t do expired the access token to soon, just keep it live forever like now!

P/s: Thanks for your https://github.com/kurrik/oauth1a package.


#4

Is this still true “Application-only auth is currently not supported on the streaming APIs”?


#5

There is an app Sky+ on both Android and iOS, i have seen Android version in which it was displaying reals time(streaming) tweets for the programs(like “The Big Bang Theory”, etc. by searching tweets with hastag or keywords), without authenticating users(it should be using app-only authentication). How is this app doing streaming without having the user authentication???

I have done a lot of research on this but no luck.

Kindly please let me know how to do the streaming with app-only auth, or any other alternative. If twitter4j(for Android) can fulfil the needs, would be good for me.

Any help is appreciated.
Thanks!


#6

Any word on this? Are the streaming endpoints still not available using application-only auth?