You are here

public function TwitterUser::get_auth in Twitter 7.5

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

Returns an array with the authentication tokens.

Return value

array with the oauth token key and secret.

File

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

Class

TwitterUser

Code

public function get_auth() {
  return array(
    'oauth_token' => $this->oauth_token,
    'oauth_token_secret' => $this->oauth_token_secret,
  );
}