Closed lyongdee closed 5 years ago
@robwittman I want to control API limit call, how to do it.
After merging https://github.com/robwittman/shopify-php-sdk/pull/30, you can access the response headers by accessing the $lastResponse
object.
$service = new ExampleSerivice($apiInstance);
$res = $service->someMethod($params);
$lastResponse = $service->getLastResponse();
# $lastResponse is instance of GuzzleHttp\Psr7\Response
I'll update with new tag when a new version is released
@lyongdee Release 2.3.0
adds getLastResponse
for getting the raw Guzzle response from a service. This can be used to access any information Guzzle exposes directly
how to get shopify http response header using shopify-php-sdk?