tweets()returns a list of tweets matching the criteria specified in
$query. By default, 15 will be returned, but this value may be changed using the
Example 878. Searching for tweets
$twitter = new Zend_Service_Twitter($options);
$response = $twitter->search->tweets('#zendframework');
tweets()method accepts an optional second argument, an array of optional parameters to modify the query.
since_idnarrows the returned results to just those statuses after the specified identifier (up to 24 hours old).
max_idnarrows the returned results to just those statuses earlier than the specified identifier.
countspecifies the number of statuses to return, up to 200.
include_entitiescontrols whether or not entities, which includes URLs, mentioned users, and hashtags, will be returned.
langindicates which two-letter language code to restrict results to.
localeindicates which two-letter language code is being used in the query.
geocodecan be used to indicate the geographical radius in which tweets should originate; the string should be in the form "latitude,longitude,radius", with "radius" being a unit followed by one of "mi" or "km".
result_typeindicates what type of results to retrieve, and should be one of "mixed," "recent," or "popular."
untilcan be used to specify a the latest date for which to return tweets.