diff --git a/composer.json b/composer.json index cca8d23..b7dbf77 100644 --- a/composer.json +++ b/composer.json @@ -12,9 +12,9 @@ } ], "require": { - "php": ">=5.4.0", - "guzzlehttp/guzzle": "^5.3.0", - "jms/serializer": "^1.1" + "php": ">=5.3.3", + "guzzlehttp/guzzle": "^v3.8.1", + "jms/serializer": "^0.16.0" }, "require-dev": { "phpunit/phpunit": "~4.0" diff --git a/src/Api.php b/src/Api.php index 6cd878f..4ea74ea 100644 --- a/src/Api.php +++ b/src/Api.php @@ -2,7 +2,7 @@ namespace Andyftw\SSLLabs; -use GuzzleHttp\Client; +use Guzzle\Http\Client; use JMS\Serializer\SerializerBuilder; /** @@ -160,8 +160,8 @@ private function request($call, $parameters = []) private function json($call, $type, $parameters = []) { try { - $response = $this->request($call, $parameters); - $content = (string) $response->getBody(); + $request = $this->request($call, $parameters); + $content = (string) $request->send()->getBody(); return $this->serializer->deserialize($content, $type, 'json'); } catch (\Exception $e) {