コード例 #1
0
ファイル: Send.php プロジェクト: atehnix/laravel-vk-requester
 /**
  * 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);
 }
コード例 #2
0
 /**
  * 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);
 }
コード例 #3
0
 /**
  * Convert error to Exception object
  *
  * @param array $error
  * @return VkException
  */
 protected function toException(array $error)
 {
     return Client::toException($error);
 }