You are here

public function TweetFetcherInterface::setCredentials in Media entity Twitter 8.2

Same name and namespace in other branches
  1. 8 src/TweetFetcherInterface.php \Drupal\media_entity_twitter\TweetFetcherInterface::setCredentials()

Sets the credentials for accessing Twitter's API.

Parameters

string $consumer_key: The consumer key.

string $consumer_secret: The consumer secret.

string $oauth_access_token: The OAuth access token.

string $oauth_access_token_secret: The OAuth access token secret.

1 method overrides TweetFetcherInterface::setCredentials()
TweetFetcher::setCredentials in src/TweetFetcher.php
Sets the credentials for accessing Twitter's API.

File

src/TweetFetcherInterface.php, line 45

Class

TweetFetcherInterface
Defines a wrapper around the Twitter API.

Namespace

Drupal\media_entity_twitter

Code

public function setCredentials($consumer_key, $consumer_secret, $oauth_access_token, $oauth_access_token_secret);