I use json_decode($response->getBody())
now instead of $response->json()
.
I suspect this might be a casualty of PSR-7 compliance.
More Related Contents:
- Guzzlehttp – How get the body of a response from Guzzle 6?
- How can I use Guzzle to send a POST request in JSON?
- Guzzle: handle 400 bad request
- Catching exceptions from Guzzle
- 3rd party dependency conflict in developing WordPress Plugin
- Handle Guzzle exception and get HTTP body
- Upload file using Guzzle 6 to API endpoint
- Guzzle 6 progress of download
- How to perform multiple Guzzle requests at the same time?
- How do you log all API calls using Guzzle 6
- Calling a function on click of button in HTML/PHP [closed]
- startsWith() and endsWith() functions in PHP
- How can I use PDO to fetch a results array in PHP?
- Is micro-optimization worth the time?
- php var_dump() vs print_r()
- Get first 100 characters from string, respecting full words
- How to write a stored procedure using phpmyadmin and how to use it through php?
- Doing calculations in MySQL vs PHP
- PHP mysql search multiple tables using a keyword
- How to add dynamic dropdown list column on Laravel 5.3 registration?
- Apply a coupon programmatically in Woocommerce
- Error “Target class controller does not exist” when using Laravel 8
- PHP Object Assignment vs Cloning
- PHP ltrim behavior with character list
- PHPMailer character encoding issues
- Strict Standards: Only variables should be assigned by reference PHP 5.4
- PHP HSV to RGB formula comprehension
- ErrorException : implode(): Passing glue string after array is deprecated. Swap the parameters
- refresh a part of webpage in php [closed]
- PHP add up two time variables