Twitter request to get the latest tweets for a hashtag using Twitter API V1.1 using OAuth settings

≯℡__Kan透↙ 提交于 2019-12-09 13:07:33

问题


Can any one explain how to send a Twitter request to get the latest tweets for a hashtag using Twitter API V1.1 using OAuth settings ? I have searched for documentation in Twitter site, but I am incomplete.

Can any one give the sample request & response through RestClient or Advanced Rest Client ?

Thanks in advance.


回答1:


You have multiple questions here, so I'll answer them one by one.

The search/tweets method

You can search tweets using this method in the 1.1 API. According to those docs, you can pass a q parameter which is "a UTF-8 encoded query of 1000 characters maximum".

The query for your specific requirements

Scroll down on this page and you'll see that you can search for a specific hashtag using #hashtag. Yes, that's it.

How can I make V1.1 requests using OAuth?

Follow the detailed step-by-step post here, using this library to make authenticated requests.



来源:https://stackoverflow.com/questions/17087732/twitter-request-to-get-the-latest-tweets-for-a-hashtag-using-twitter-api-v1-1-us

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!