Sha256: 55bce7c6673df75954ea639d4e0a0d74151cfa6d88474f5cee247949967cda23
Contents?: true
Size: 793 Bytes
Versions: 1
Compression:
Stored size: 793 Bytes
Contents
# frozen_string_literal: true module Spyse module Client class Cert < Base # # Returns the current data about the given certificate. # # @param [String] hash The SHA256 fingerprint of the certificate. # # @return [Hash] # def get(hash) _get("/certificate/#{hash}") { |json| json } end # # Returns a list of certificates that matched the search query. # # @see https://spyse.com/api#/certificate/cert_search # # @return [Hash] # 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spysex-0.2.0 | lib/spyse/clients/cert.rb |