Guzzle 6: no more json() method for responses
I use $response->getBody()->getContents()
to get JSON from response.
Guzzle version 6.3.0.
I use json_decode($response->getBody())
now instead of $response->json()
.
I suspect this might be a casualty of PSR-7 compliance.
You switch to:
json_decode($response->getBody(), true)
Instead of the other comment if you want it to work exactly as before in order to get arrays instead of objects.