Seems incompatible with updated Guzzle... especially with the class names.
Error after error trying to shove a request through shopify.php
Can you add a bit of documentation, or at least a note that this no longer works with recent Laravel and Guzzle versions?
UPDATE:
Got it working by:
Adjusting the guzzle namespaces from Guzzle\Http to GuzzleHttp (to match what is in the autoload_classmap.php)
Updating the new Client parameters to match what the updated guzzle expects to receive (array, not string)
Removing a null parameter in the makeRequest function (expects an array there, not null)
Fixing the response mechanism to a valid function
Below is my working code for shopify.php. I have tested with GET requests only so far. Have a feeling POST/PUT/DELETE will take some doing.
Seems incompatible with updated Guzzle... especially with the class names. Error after error trying to shove a request through shopify.php Can you add a bit of documentation, or at least a note that this no longer works with recent Laravel and Guzzle versions?
UPDATE:
Got it working by:
Guzzle\Http
toGuzzleHttp
(to match what is in the autoload_classmap.php)new Client
parameters to match what the updated guzzle expects to receive (array, not string)Below is my working code for shopify.php. I have tested with GET requests only so far. Have a feeling POST/PUT/DELETE will take some doing.
To access in a controller, I use:
Maybe this will help someone down the line—