protected function Twitter::fetchTweet in Media entity Twitter 8.2
Get a single tweet.
Parameters
int $id: The tweet ID.
Return value
array The tweet information.
1 call to Twitter::fetchTweet()
- Twitter::getMetadata in src/
Plugin/ media/ Source/ Twitter.php - Gets the value for a metadata attribute for a given media item.
File
- src/
Plugin/ media/ Source/ Twitter.php, line 473
Class
- Twitter entity media source.
Namespace
Drupal\media_entity_twitter\Plugin\media\SourceCode
protected function fetchTweet($id) {
$this->tweetFetcher
->setCredentials($this->configuration['consumer_key'], $this->configuration['consumer_secret'], $this->configuration['oauth_access_token'], $this->configuration['oauth_access_token_secret']);
return $this->tweetFetcher
->fetchTweet($id);
}