public function TwitterUser::set_auth in Twitter 7.5
Same name and namespace in other branches
- 6.5 twitter.lib.php \TwitterUser::set_auth()
- 6.3 twitter.lib.php \TwitterUser::set_auth()
- 7.3 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 1538 - Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1
Class
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;
}