src/Support/Http/GuzzleClient.php
protected function createGuzzleRequest($url, $method, array $params, array $headers)
    {
        $guzzleRequest = $this->client->createRequest($method, $url, ['headers' => $headers, 'body' => $params]);

        if ($guzzleRequest->getHeader('Content-Type') == 'application/json' && sizeof($params) > 0) {
            $guzzleRequest->setBody(Stream::factory(json_encode($params)));
        }

        return $guzzleRequest;
    }
protected function createGuzzleRequest($url, $method, array $params, array $headers)
    {
        $guzzleRequest = $this->client->createRequest($method, $url, ['headers' => $headers, 'body' => $params]);

        if ($guzzleRequest->getHeader('Content-Type') == 'application/json' && sizeof($params) > 0) {
            $guzzleRequest->setBody(Stream::factory(json_encode($params)));
        }

        return $guzzleRequest;
    }
@param string $url
@param string $method
@param array  $params
@param array  $headers

@return RequestInterface