gpt4 book ai didi

php - 无需身份验证即可获取最新的推特状态?

转载 作者:搜寻专家 更新时间:2023-10-31 20:43:20 25 4
gpt4 key购买 nike

所以几天前 Twitter 遗憾地停止支持他们的 1.0 API。现在他们有一个新的 1.1 API,突然他们要求您对所有内容(包括获取最新状态)进行身份验证(创建应用程序、创建 key 、下载 oauth.php、下载 twitteroauth.php 等),并且只是……呃!不,谢谢!

我只想有一个小的 .php 脚本来获取用户的最新状态。必须有一种无需身份验证即可实现此目的的简单方法。

有没有人有想法?

编辑:您好,Google 员工。我自己找到了解决方案并在下面发布。请务必检查一下。

最佳答案

阅读这里:

https://dev.twitter.com/blog/changes-coming-to-twitter-api

For example, there are many applications that are pulling data from the Twitter API at very high rates (scraping, bots, etc.) where we only know the IP address of the applications. To prevent malicious use of the Twitter API and gain an understanding of what types of applications are accessing the API in order to evolve it to meet the needs of developers, it's important to have visibility into the activity on the Twitter API and the applications using the platform.

In version 1.1, we will require every request to the API to be authenticated. For developers who are already using OAuth when making API requests, all of your authentication tokens will transition seamlessly from v1.0 to v1.1. If your application is currently using the Twitter API without using OAuth, you will need to update your application before March 2013. There's more information about the timing of the transition from v1.0 to v1.1 below.

他们这样做是为了防止垃圾邮件发送者耗尽 Twitter 的带宽。很抱歉,伙计,你也必须遵守。

关于php - 无需身份验证即可获取最新的推特状态?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17149077/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com