/** * Send request to Vk.com API */ protected function sendToApi() { usleep(config('vk-requester.delay', self::DEFAULT_DELAY) * 1000); $clientRequest = new Request($this->request->method, $this->request->parameters, $this->request->token); $clientResponse = $this->api->send($clientRequest); $this->response = $this->getResponse($clientResponse); }
/** * Send requests to Vk.com API */ protected function sendToApi() { usleep(config('vk-requester.delay', self::DEFAULT_DELAY) * 1000); $executeRequest = $this->makeExecuteRequest($this->requests); $executeResponse = $this->api->send($executeRequest); $this->responses = $this->getResponses($executeResponse); }
/** * Convert error to Exception object * * @param array $error * @return VkException */ protected function toException(array $error) { return Client::toException($error); }