Get tweets with a specific hashtag


I want to get tweets with a specific hashtag using Streaming Api. I try this command line: “curl -d @words -username:psw” when words is a text file containing the string track=#hastTag. Is it right? How can I use my Application Access token and Consumer key instead of username and password?


You can use Oauth to login to public streams. It will be the only auth method once the v1 of the API is retired. You will still us the track=term to follow certain hashtags.


Finally I decide using Twitter4j API. It’s very useful!