We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e042c44 commit 334a00dCopy full SHA for 334a00d
1 file changed
src/Bigcommerce/Api/Client.php
@@ -1336,7 +1336,7 @@ public static function getStore()
1336
*/
1337
public static function getRequestsRemaining()
1338
{
1339
- $limit = self::connection()->getHeader('X-BC-ApiLimit-Remaining');
+ $limit = self::connection()->getHeader('X-Rate-Limit-Requests-Left');
1340
1341
if (!$limit) {
1342
$result = self::getTime();
@@ -1345,7 +1345,7 @@ public static function getRequestsRemaining()
1345
return false;
1346
}
1347
1348
1349
1350
1351
return (int)$limit;
0 commit comments