public function TwitterAuthManager::setAccessToken in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_twitter/src/TwitterAuthManager.php \Drupal\social_auth_twitter\TwitterAuthManager::setAccessToken()
- 8 modules/custom/social_auth_twitter/src/TwitterAuthManager.php \Drupal\social_auth_twitter\TwitterAuthManager::setAccessToken()
- 8.2 modules/custom/social_auth_twitter/src/TwitterAuthManager.php \Drupal\social_auth_twitter\TwitterAuthManager::setAccessToken()
- 8.3 modules/custom/social_auth_twitter/src/TwitterAuthManager.php \Drupal\social_auth_twitter\TwitterAuthManager::setAccessToken()
- 8.4 modules/custom/social_auth_twitter/src/TwitterAuthManager.php \Drupal\social_auth_twitter\TwitterAuthManager::setAccessToken()
- 8.5 modules/custom/social_auth_twitter/src/TwitterAuthManager.php \Drupal\social_auth_twitter\TwitterAuthManager::setAccessToken()
- 8.6 modules/custom/social_auth_twitter/src/TwitterAuthManager.php \Drupal\social_auth_twitter\TwitterAuthManager::setAccessToken()
- 8.7 modules/custom/social_auth_twitter/src/TwitterAuthManager.php \Drupal\social_auth_twitter\TwitterAuthManager::setAccessToken()
Set access token to AuthManager to use it for API calls.
Parameters
mixed $access_token: Access token to use in API calls.
Return value
null Returns null.
Overrides AuthManagerInterface::setAccessToken
File
- modules/
custom/ social_auth_twitter/ src/ TwitterAuthManager.php, line 101
Class
- TwitterAuthManager
- Manages the authorization process before getting a long lived access token.
Namespace
Drupal\social_auth_twitterCode
public function setAccessToken($access_token) {
$this->sdk
->setOauthToken($access_token['oauth_token'], $access_token['oauth_token_secret']);
}