Sha256: 87f2d7c6cc75a785cb8cd53477142a03786a9a753868fa55659d5f9b860700ec
Contents?: true
Size: 721 Bytes
Versions: 2
Compression:
Stored size: 721 Bytes
Contents
# frozen_string_literal: true module Pulsedive class Threat < Client def get_by_id(tid) params = { "tid": tid } get("/api/info.php", params) { |json| json } end def get_by_name(tname) params = { "tname": tname } get("/api/info.php", params) { |json| json } end def get_summary_by_id(tld) params = { "tid": tld, "get": "links", "summary": "1", "splitrisk": "1" } get("/api/info.php", params) { |json| json } end def get_linked_indicators_by_id(tld) params = { "tid": tld, "get": "links" } get("/api/info.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/threat.rb |
pulsedive-0.1.4 | lib/pulsedive/threat.rb |