public static function getApiLimit(ResponseInterface $response)
    {
        $remainingCalls = $response->getHeaderLine('X-RateLimit-Remaining');

        if (null !== $remainingCalls && 1 > $remainingCalls) {
            throw new ApiLimitExceedException($remainingCalls);
        }

        return $remainingCalls;
    }
public static function getApiLimit(ResponseInterface $response)
    {
        $remainingCalls = $response->getHeaderLine('X-RateLimit-Remaining');

        if (null !== $remainingCalls && 1 > $remainingCalls) {
            throw new ApiLimitExceedException($remainingCalls);
        }

        return $remainingCalls;
    }
@param ResponseInterface $response

@throws \Snaptier\API\Exception\ApiLimitExceedException

@return null|string