code: public static function getApiLimit(ResponseInterface $response)
      {
          $remainingCalls = $response->getHeaderLine('X-RateLimit-Remaining');
  
          if (null !== $remainingCalls && 1 > $remainingCalls) {
              throw new ApiLimitExceedException($remainingCalls);
          }
  
          return $remainingCalls;
      }
docs: @param ResponseInterface $response
  
  @throws \Snaptier\API\Exception\ApiLimitExceedException
  
  @return null|string