Accessing public timelines using Twitter's new

2019-09-04 01:36发布

问题:

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?