You are here

public function TwitterPostCollector::setTwitterClient in Social Feed 8

Set the Twitter client.

1 call to TwitterPostCollector::setTwitterClient()
TwitterPostCollector::__construct in src/Services/TwitterPostCollector.php
TwitterPostCollector constructor.

File

src/Services/TwitterPostCollector.php, line 75

Class

TwitterPostCollector
Class TwitterPostCollector.

Namespace

Drupal\socialfeed\Services

Code

public function setTwitterClient() {
  if (NULL === $this->twitter) {
    $this->twitter = new TwitterOAuth($this->consumerKey, $this->consumerSecret, $this->accessToken, $this->accessTokenSecret);
  }
}