Twitter API - 请迁移到 API v1.1 [英] Twitter API - Please migrate to API v1.1

查看:43
本文介绍了Twitter API - 请迁移到 API v1.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

其实我就是这么用的

https://api.twitter.com/1/statuses/user_timeline.rss?screen_name='screen_name'

用于获取与该特定屏幕名称相关的提要.但是,由于 API 版本 1 更改为 1.1,它无法正常工作,我没有获取任何记录,我将返回这种类型的 xml

for fetching the feeds related to that particular screen name. But, due to the change of API version 1 to 1.1 , it's not working properly and i am not fetching any records and i will return this type of xml

<errors>
<error code="68">
The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.
</error>
</errors>

所以,请建议我如何获取任何特定屏幕名称的数据...

So, please suggest me, how i fetch the data of any particular scree name...

推荐答案

oauth.php 中的更改$host = "https://api.twitter.com/1/";到$host = "https://api.twitter.com/1.1/";

change in oauth.php $host = "https://api.twitter.com/1/"; to $host = "https://api.twitter.com/1.1/";

这篇关于Twitter API - 请迁移到 API v1.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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