class Spyse::Client::Cert
Public Instance Methods
get(hash)
click to toggle source
Returns the current data about the given certificate.
@param [String] hash The SHA256 fingerprint of the certificate.
@return [Hash]
# File lib/spyse/clients/cert.rb, line 13 def get(hash) _get("/certificate/#{hash}") { |json| json } end
search(search_params, limit: nil, offset: nil)
click to toggle source
Returns a list of certificates that matched the search query.
@see spyse.com/api#/certificate/cert_search
@return [Hash]
# File lib/spyse/clients/cert.rb, line 24 def search(search_params, limit: nil, offset: nil) params = { search_params: search_params, limit: limit, offset: offset, }.compact _post("/certificate/search", params) { |json| json } end