Sha256: acde64c893c29205e89abe481a7a92efb6414c7504b2d7f09caa4c3627808b77

Contents?: true

Size: 464 Bytes

Versions: 2

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

require "base64"

module Pulsedive
  class Analyze < Client
    def add_to_queue(ioc, enrich: 1, probe: 1)
      params = {
        "ioc": Base64.strict_encode64(ioc),
        "enrich": enrich,
        "probe": probe,
      }
      post("/api/analyze.php", params) { |json| json }
    end

    def get_results_by_id(id)
      params = {
        qid: id
      }
      get("/api/analyze.php", params) { |json| json }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pulsedive-0.1.5 lib/pulsedive/analyze.rb
pulsedive-0.1.4 lib/pulsedive/analyze.rb