/** * Ask CloudSearch server to send us a new secret key * * @return void */ public function requestSecretKey() { $apiKey = Config::getInstance()->QSL->CloudSearch->api_key; $requestUrl = 'http://' . static::CLOUD_SEARCH_DOMAIN . static::CLOUD_SEARCH_REQUEST_SECRET_KEY_URL; $request = new Request($requestUrl); $request->body = array('apiKey' => $apiKey); $request->sendRequest(); }
/** * sendRequest */ public function sendRequest() { $this->request->body = $this->prepareParameters(); $this->response = $this->request->sendRequest(); }