You are here

public function SocialTwitterFormatter::getData in Open Social 7

File

includes/social_comments.twitter.inc, line 20
Twitter class

Class

SocialTwitterFormatter
@file Twitter class

Code

public function getData($url, $count) {
  $this->max_items = $count;
  $tweet_id = $this
    ->getTweetId($url);
  $comments = $tweet_id ? $this
    ->getComments($tweet_id) : FALSE;
  $output = $comments ? $this
    ->renderComments($comments) : array();
  return $output;
}