Skip to content

Collect response headers and method to check current limit

Latest
Compare
Choose a tag to compare
@BNMetrics BNMetrics released this 04 Apr 14:09
· 4 commits to master since this release
e3f2e08

Thanks to @RRStoyanov, now this package is capable of checking the current api limit:

  • Collect response headers while taking user by token
  • Add method to check current api limit based on collected headers

Example usage for default apps should be something like this:

if ($shopify->getShopifyAuth()->checkCurrentApiLimit() > 39) {
    sleep(1);
}