Example #1
0
 /**
  * Make http request
  *
  * @param array $arguments
  */
 protected function makeRequest($arguments = [])
 {
     $defaults = $this->getDefaultOptions();
     $arguments = array_merge($defaults, $arguments);
     $client = $this->resource->getGuzzle();
     $request = $client->createRequest($this->getMethod(), $this->url, $arguments);
     $response = $client->send($request);
     $this->setResponse($response);
     $this->setContent((string) $response->getBody());
 }