public function TwitterPostCollector::getPosts in Social Feed 8
Retrieve Tweets from the given accounts home page.
Parameters
int $count: The number of posts to return.
Return value
array An array of posts.
File
- src/
Services/ TwitterPostCollector.php, line 95
Class
- TwitterPostCollector
- Class TwitterPostCollector.
Namespace
Drupal\socialfeed\ServicesCode
public function getPosts($count) {
return $this->twitter
->get('statuses/user_timeline', [
'count' => $count,
'tweet_mode' => 'extended',
]);
}