def get_v1_batch_token_from_headers(headers)
      if headers.is_a?(Hash) && headers.has_key?('Link')
        match = /^<([^>]+)>;rel='next'$/.match(headers['Link'])
        if match
          uri = URI.parse(match[1])
          params = CGI.parse(uri.query)
          return params['batch_token'][0]
        end
      end
    end
def get_v1_batch_token_from_headers(headers)
      if headers.is_a?(Hash) && headers.has_key?('Link')
        match = /^<([^>]+)>;rel='next'$/.match(headers['Link'])
        if match
          uri = URI.parse(match[1])
          params = CGI.parse(uri.query)
          return params['batch_token'][0]
        end
      end
    end
Extract batch_token from Link header if present
 @param [Hash] headers hash with response headers
 @return [String] batch_token or nil if no token is present