使用带有OAuth和PHP的API获取Twitter用户推文



我希望通过PHP获得单个用户的tweet。目前我正在使用RSS对象

$string = 'http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=' . $screenname . '&count=' . $tweetCount;

然而,我想为API何时仅更改为身份验证做准备。我如何进行此更改,以便在API切换时,所有内容仍然有效?

尝试使用以下库:https://dev.twitter.com/docs/twitter-libraries#php

其中一个得到了oauth的支持。

最新更新