Sha256: e73796c718c1bbaf1c6b74ad02f97d66c1a35d346e7cca50346af12406082777
Contents?: true
Size: 848 Bytes
Versions: 1
Compression:
Stored size: 848 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" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mihari-7.0.0 | lib/mihari/clients/crtsh.rb |