示例#1
0
 /**
  * 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);
 }