src/Bigcommerce/Api/Client.php
public static function getRequestsRemaining()
    {
        $limit = self::connection()->getHeader('X-Rate-Limit-Requests-Left');

        if (!$limit) {
            $result = self::getTime();

            if (!$result) {
                return false;
            }

            $limit = self::connection()->getHeader('X-Rate-Limit-Requests-Left');
        }

        return (int)$limit;
    }
public static function getRequestsRemaining()
    {
        $limit = self::connection()->getHeader('X-Rate-Limit-Requests-Left');

        if (!$limit) {
            $result = self::getTime();

            if (!$result) {
                return false;
            }

            $limit = self::connection()->getHeader('X-Rate-Limit-Requests-Left');
        }

        return (int)$limit;
    }
public static function getRequestsRemaining ( ) { $ limit = self :: connection ( ) -> getHeader ( 'X-Rate-Limit-Requests-Left' ) ; if ( ! $ limit ) { $ result = self :: getTime ( ) ; if ( ! $ result ) { return false ; } $ limit = self :: connection ( ) -> getHeader ( 'X-Rate-Limit-Requests-Left' ) ; } return ( int ) $ limit ; }
The number of requests remaining at the current time. Based on the
last request that was fetched within the current script. If no
requests have been made, pings the time endpoint to get the value.

@return int
The number of requests remaining at the current time . Based on the last request that was fetched within the current script . If no requests have been made pings the time endpoint to get the value .