public function TwitterAccount::set_auth in Twitter 7.6
Sets the authentication tokens to a user.
Parameters
array $values: Array with 'oauth_token' and 'oauth_token_secret' keys.
File
- ./
twitter.module, line 772 - Provides API integration with the Twitter microblogging service.
Class
- TwitterAccount
- Class to define the structure of a Twitter account.
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;
}