Twitter API 不再返回结果 [英] Twitter API no longer returning results

查看:25
本文介绍了Twitter API 不再返回结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Twitter API 有什么变化吗?此链接在今天早些时候返回结果,但不知出于何种原因,它似乎已停止?

Has something with the twitter API changed? This link was returning results earlier today but for whatever reason it seems to have stopped?

https://search.twitter.com/search.json?q=vine&callback=?

此外,点击示例中的链接不再有效?

Also, clicking on the links in the examples no longer work?

https://dev.twitter.com/docs/using-search

https://search.twitter.com/search.json?q=%40twitterapi

推荐答案

是的.您已了解版本 1 api 已被弃用/正在被删除.

Yes. You've found out how the version 1 api has been deprecated / is in the process of being removed.

从现在开始,您对 Twitter API 的所有请求都将要求进行身份验证 (OAuth),而对于某些人来说,这是一场噩梦.

From now on, all your requests to the twitter API will be required to have authentication (OAuth), and for some this was a nightmare to figure out.

幸运的是,我写了一个 冗长的帖子(带图片)解释了如何设置自己的 twitter 开发帐户/应用程序,获取一组密钥,然后我创建了一个 为您执行经过身份验证的请求.

Fortunately, I wrote a lengthy post (with pictures) explaining how to set yourself up a twitter dev account / application, get a set of keys, and then I created a library to perform authenticated requests for you.

唯一的缺点是这个库是用,并通过查看您的个人资料您使用 ASP.net - 如果您不想使用 PHP,请尝试使用谷歌搜索特定语言的库.

The only downside is that this library is written in php, and from looking at your profile you use ASP.net - so try googling for a library for your specific language if you don't want to use PHP.

无论如何,不再向您提出未经身份验证的请求 ;) 您现在需要深入了解 OAuth!

In any case, no more unauthenticated requests for you ;) You need to dig in with OAuth now!

这篇关于Twitter API 不再返回结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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