Accessing public timelines using Twitter's new API

China☆狼群 提交于 2019-12-25 05:26:06

问题


Owing to the fact that Twitter have recently overhauled their API, I'm trying to think of ways to get my Zend CMS application to access the public timelines of clients. I'm currently using this:

$twitterSearch = new Zend_Service_Twitter_Search('json');
$output = $twitterSearch->search("from:$username", array('rpp' => $total, 'page' => $page));
return $output['results']; 

To return the required data - this works without a hitch. The problem, however, is that it only seems to be returning very recent tweets. Looking at their documentation for the Twitter Search API, they specify a time limit of just 6-9 days of data being available for use.

A lot of clients have timelines with old tweets (some from early 2012) which they want displayed. Is there any other way, apart from the Twitter Search API, that I can access third party timelines? I've looked into Zend's other Twitter features but they only seem concerned with accessing sensitive data that requires oAuth authentication (direct messages, friends, posting to your timeline, etc.). I just want to access the public timelines for a particular username. Is this possible?

来源:https://stackoverflow.com/questions/13046713/accessing-public-timelines-using-twitters-new-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!