BNMetrics / Laravel-ShopifyAPI

Shopify Laravel API Wrapper ( with Billing support!)
MIT License
53 stars 29 forks source link

Accessing response header data for API throttling? #6

Closed roberttolton closed 6 years ago

roberttolton commented 6 years ago

Hi, what would be the correct way of detecting the HTTP_X_SHOPIFY_SHOP_API_CALL_LIMIT header that Shopify sends back to try and account for rate-limit / throttling? I don't see this mentioned within the docs.

From what I can tell of the source, we're only returning decoded JSON, no request object or similar?

BNMetrics commented 6 years ago

Hi @roberttolton Unfortunately, currently I have not yet included the feature for getting the HTTP_X_SHOPIFY_SHOP_API_CALL_LIMIT. I might implement that on the next version of this package.

roberttolton commented 5 years ago

@BNMetrics did you have any more thoughts on this?