public function init($consumerKey, $consumerSecret, $oauthToken, $oauthTokenSecret, $bearerToken)
    {
        $this->twitter->setConsumerKey($consumerKey, $consumerSecret);

        if (! is_null($bearerToken)) {
            $this->setBearerToken($bearerToken);
        } elseif (! is_null($oauthToken) && ! is_null($oauthTokenSecret)) {
            $this->setToken($oauthToken, $oauthTokenSecret);
        } elseif ($this->hasSessionToken()) {
            $this->setSessionToken();
        }
    }
public function init($consumerKey, $consumerSecret, $oauthToken, $oauthTokenSecret, $bearerToken)
    {
        $this->twitter->setConsumerKey($consumerKey, $consumerSecret);

        if (! is_null($bearerToken)) {
            $this->setBearerToken($bearerToken);
        } elseif (! is_null($oauthToken) && ! is_null($oauthTokenSecret)) {
            $this->setToken($oauthToken, $oauthTokenSecret);
        } elseif ($this->hasSessionToken()) {
            $this->setSessionToken();
        }
    }
public function init ( $ consumerKey , $ consumerSecret , $ oauthToken , $ oauthTokenSecret , $ bearerToken ) { $ this -> twitter -> setConsumerKey ( $ consumerKey , $ consumerSecret ) ; if ( ! is_null ( $ bearerToken ) ) { $ this -> setBearerToken ( $ bearerToken ) ; } elseif ( ! is_null ( $ oauthToken ) && ! is_null ( $ oauthTokenSecret ) ) { $ this -> setToken ( $ oauthToken , $ oauthTokenSecret ) ; } elseif ( $ this -> hasSessionToken ( ) ) { $ this -> setSessionToken ( ) ; } }
Initialize the oauth token api.

@param $consumerKey
@param $consumerSecret
@param $oauthToken
@param $oauthTokenSecret
@param $bearerToken
Initialize the oauth token api .