private function TwitterBlockSearch::getTweetsFrom in Twitter Block 7
Same name and namespace in other branches
- 6 twitter_block.class.php \TwitterBlockSearch::getTweetsFrom()
Returns the most recent tweets from $twittername
Parameters
string $twittername to search. Note: begins with @:
Return value
string $json JSON encoded search response
File
- ./
twitter_block.class.php, line 110 - Lightweight implementation of the Twitter API in PHP.
Class
- TwitterBlockSearch
- TwitterBlockSearch provides the class for using the Twitter Search API.
Code
private function getTweetsFrom() {
$this->options['screen_name'] = $this->twitter_name;
$this->options['include_rts'] = $this->include_rts;
// @todo: Make this URL a configurable option.
$this->url_query = 'http://api.twitter.com/1/statuses/user_timeline.json?';
$json = $this
->search();
return $json;
}