You are here

public function TwitterProfileInterface::checkConnection in Twitter Profile Widget 8.2

Same name and namespace in other branches
  1. 8 src/TwitterProfileInterface.php \Drupal\twitter_profile_widget\TwitterProfileInterface::checkConnection()

Helper query to check whether the credentials are valid.

Parameters

string $key: Twitter API key.

string $secret: Twitter API secret.

Return value

bool|string Whether or not the connection is valid. If error message, return that.

1 method overrides TwitterProfileInterface::checkConnection()
TwitterProfile::checkConnection in src/TwitterProfile.php
Helper query to check whether the credentials are valid.

File

src/TwitterProfileInterface.php, line 34

Class

TwitterProfileInterface
Interface TwitterProfileInterface.

Namespace

Drupal\twitter_profile_widget

Code

public function checkConnection($key = '', $secret = '');