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);
}