You are here

private function TwitterBlockSearch::getMentions in Twitter Block 7

Same name and namespace in other branches
  1. 6 twitter_block.class.php \TwitterBlockSearch::getMentions()

Returns the most recent mentions (status containing @twittername)

Parameters

string $twittername to search. Note: begins with @:

Return value

string $json JSON encoded search response

File

./twitter_block.class.php, line 125
Lightweight implementation of the Twitter API in PHP.

Class

TwitterBlockSearch
TwitterBlockSearch provides the class for using the Twitter Search API.

Code

private function getMentions() {
  $this->options['q'] = "@{$this->twitter_name}";
  $json = $this
    ->search();
  return $json;
}