Class: Mihari::Clients::Crtsh
Overview
crt.sh API client
Instance Attribute Summary
Attributes inherited from Base
#base_url, #headers, #pagination_interval, #timeout
Instance Method Summary collapse
-
#initialize(base_url = "https://crt.sh", headers: {}, timeout: nil) ⇒ Crtsh
constructor
A new instance of Crtsh.
-
#search(identity, match: nil, exclude: nil) ⇒ Array<Hash>
Search crt.sh by a given identity.
Constructor Details
#initialize(base_url = "https://crt.sh", headers: {}, timeout: nil) ⇒ Crtsh
Returns a new instance of Crtsh.
14 15 16 |
# File 'lib/mihari/clients/crtsh.rb', line 14 def initialize(base_url = "https://crt.sh", headers: {}, timeout: nil) super end |
Instance Method Details
#search(identity, match: nil, exclude: nil) ⇒ Array<Hash>
Search crt.sh by a given identity
27 28 29 |
# File 'lib/mihari/clients/crtsh.rb', line 27 def search(identity, match: nil, exclude: nil) get_json("/", params: {identity:, match:, exclude:, output: "json"}.compact) end |