We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 60a04ed + 334a00d commit 6917cb2Copy full SHA for 6917cb2
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