Twitter 请求使用 OAuth 设置使用 Twitter API V1.1 获取主题标签的最新推文 [英] Twitter request to get the latest tweets for a hashtag using Twitter API V1.1 using OAuth settings

查看:53
本文介绍了Twitter 请求使用 OAuth 设置使用 Twitter API V1.1 获取主题标签的最新推文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能解释如何使用 Twitter API V1.1 和 OAuth 设置发送 Twitter 请求以获取 hashtag 的最新推文?我在 Twitter 网站上搜索过文档,但我不完整.

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.

任何人都可以提供样品要求吗?通过 RestClientAdvanced Rest Client 响应?

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

提前致谢.

推荐答案

这里有多个问题,我会一一解答.

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

搜索/推文方法

您可以在1.1 应用程序接口.根据这些文档,您可以传递一个 q 参数,它是最多 1000 个字符的 UTF-8 编码查询".

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".

查询您的具体要求

向下滚动此页面,您会看到可以搜索使用 #hashtag 的特定主题标签.是的,就是这样.

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

如何使用 OAuth 发出 V1.1 请求?

按照详细的分步帖子此处,使用这个库发出经过身份验证的请求.

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

这篇关于Twitter 请求使用 OAuth 设置使用 Twitter API V1.1 获取主题标签的最新推文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆