models/OAuth/twitter.php
public function getAuth( $oauth_token )
	{
		try
		{
			$this->setToken( $oauth_token );
			$token = $this->getAccessToken();
			$this->setToken( $token->oauth_token, $token->oauth_token_secret );

			return array(
				'oauth_token' => $token->oauth_token,
				'oauth_token_secret' => $token->oauth_token_secret,
				'user_id' => $token->user_id,
				'screen_name' => $token->screen_name
			);
		}
		catch( Exception $e )
		{
			throw new \Sifo\Exception_500( $e->getMessage() );
		}


	}
public function getAuth( $oauth_token )
	{
		try
		{
			$this->setToken( $oauth_token );
			$token = $this->getAccessToken();
			$this->setToken( $token->oauth_token, $token->oauth_token_secret );

			return array(
				'oauth_token' => $token->oauth_token,
				'oauth_token_secret' => $token->oauth_token_secret,
				'user_id' => $token->user_id,
				'screen_name' => $token->screen_name
			);
		}
		catch( Exception $e )
		{
			throw new \Sifo\Exception_500( $e->getMessage() );
		}


	}
public function getAuth ( $ oauth_token ) { try { $ this -> setToken ( $ oauth_token ) ; $ token = $ this -> getAccessToken ( ) ; $ this -> setToken ( $ token -> oauth_token , $ token -> oauth_token_secret ) ; return array ( 'oauth_token' => $ token -> oauth_token , 'oauth_token_secret' => $ token -> oauth_token_secret , 'user_id' => $ token -> user_id , 'screen_name' => $ token -> screen_name ) ; } catch ( Exception $ e ) { throw new \ Sifo \ Exception_500 ( $ e -> getMessage ( ) ) ; } }
Returns the authentication token and secret.

@param string $oauth_token Authorization request given by Twitter via GET when calling the callback Url.
@return array
Returns the authentication token and secret .