Sha256: e955007d88e1dc24a076a9589bff0de224fe499385ea6c8395a1493725983e68
Contents?: true
Size: 855 Bytes
Versions: 13
Compression:
Stored size: 855 Bytes
Contents
# frozen_string_literal: true module Mihari module Clients # # crt.sh API client # class Crtsh < Base # # @param [String] base_url # @param [Hash] headers # @param [Integer, nil] timeout # def initialize(base_url = "https://crt.sh", headers: {}, timeout: nil) super(base_url, headers: headers, timeout: timeout) end # # Search crt.sh by a given identity # # @param [String] identity # @param [String, nil] match "=", "ILIKE", "LIKE", "single", "any", "FTS" or nil # @param [String, nil] exclude "expired" or nil # # @return [Array<Hash>] # def search(identity, match: nil, exclude: nil) get_json("/", params: { identity: identity, match: match, exclude: exclude, output: "json" }.compact) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems