protected function SocialContentTwitter::getRowsAccount in Social Content 7.2
Get rows from a Twitter account.
Parameters
array $settings: The settings to use to get the tweets.
array $global_settings: The global settings for Twitter.
mixed $last_id: The id of the last imported tweet.
Return value
mixed Array of tweets or FALSE on error.
1 call to SocialContentTwitter::getRowsAccount()
- SocialContentTwitter::getRows in modules/
twitter/ social_content_twitter.class.inc - Get the rows to import.
File
- modules/
twitter/ social_content_twitter.class.inc, line 299 - Social Content Twitter class.
Class
- SocialContentTwitter
- @file Social Content Twitter class.
Code
protected function getRowsAccount($settings, $global_settings, $last_id) {
$params = array(
'screen_name' => $settings['account'],
'exclude_replies' => TRUE,
'count' => $settings['limit'],
'tweet_mode' => 'extended',
);
if ($last_id) {
$params['since_id'] = $last_id;
}
$data = $this
->request($settings, $global_settings, 'statuses/user_timeline.json', $params);
if ($data) {
return $data;
}
return FALSE;
}