You are here

public function TwitterUser::set_auth in Twitter 6.5

Same name and namespace in other branches
  1. 6.3 twitter.lib.php \TwitterUser::set_auth()
  2. 7.3 twitter.lib.php \TwitterUser::set_auth()
  3. 7.5 twitter.lib.php \TwitterUser::set_auth()

Sets the authentication tokens to a user.

Parameters

array $values: Array with 'oauth_token' and 'oauth_token_secret' keys.

File

./twitter.lib.php, line 1416
Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1

Class

TwitterUser

Code

public function set_auth($values) {
  $this->oauth_token = isset($values['oauth_token']) ? $values['oauth_token'] : NULL;
  $this->oauth_token_secret = isset($values['oauth_token_secret']) ? $values['oauth_token_secret'] : NULL;
}