protected function _request($api, $path, $method, $params = array(), $version = null, $httpMethod = 'get') { if ($this->_authApi->isConnected()) { if (!is_array($params)) { if (!empty($params)) { $params = array($params); } else { $params = array(); } } $params['_sid'] = $this->_authApi->getSessionId(); return parent::_request($api, $path, $method, $params, $version, $httpMethod); } throw new Synology_Exception('Not Connected'); }