Sha256: 02ca7aea017b8c2516e35d32d40ebd0ef0db7509f218bdc371a1a8d82fd92db2
Contents?: true
Size: 814 Bytes
Versions: 4
Compression:
Stored size: 814 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:, 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:, match:, exclude:, output: "json"}.compact) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mihari-7.6.1 | lib/mihari/clients/crtsh.rb |
mihari-7.6.0 | lib/mihari/clients/crtsh.rb |
mihari-7.5.0 | lib/mihari/clients/crtsh.rb |
mihari-7.4.0 | lib/mihari/clients/crtsh.rb |