public function getApi()
    {
        if (!isset($this->_api)) {
            $this->_api = ComConnectHelperApi::getApi($this->get('api'));
            $this->_api->setToken($this->tokenKey, $this->tokenSecret);
        }

        return $this->_api;
    }
public function getApi()
    {
        if (!isset($this->_api)) {
            $this->_api = ComConnectHelperApi::getApi($this->get('api'));
            $this->_api->setToken($this->tokenKey, $this->tokenSecret);
        }

        return $this->_api;
    }
public function getApi ( ) { if ( ! isset ( $ this -> _api ) ) { $ this -> _api = ComConnectHelperApi :: getApi ( $ this -> get ( 'api' ) ) ; $ this -> _api -> setToken ( $ this -> tokenKey , $ this -> tokenSecret ) ; } return $ this -> _api ; }
Return an instance of API Adapter.

@return ComConnectOauthApiAbstract
Return an instance of API Adapter .