Class: Pulsedive::Threat
Constant Summary
Constants inherited
from Client
Client::HOST, Client::URL
Instance Attribute Summary
Attributes inherited from Client
#api_key
Instance Method Summary
collapse
Methods inherited from Client
#initialize
Instance Method Details
#get_by_id(tid) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/pulsedive/threat.rb', line 5
def get_by_id(tid)
params = {
"tid": tid
}
get("/api/info.php", params) { |json| json }
end
|
#get_by_name(tname) ⇒ Object
12
13
14
15
16
17
|
# File 'lib/pulsedive/threat.rb', line 12
def get_by_name(tname)
params = {
"tname": tname
}
get("/api/info.php", params) { |json| json }
end
|
#get_linked_indicators_by_id(tld) ⇒ Object
29
30
31
32
33
34
35
|
# File 'lib/pulsedive/threat.rb', line 29
def get_linked_indicators_by_id(tld)
params = {
"tid": tld,
"get": "links"
}
get("/api/info.php", params) { |json| json }
end
|
#get_summary_by_id(tld) ⇒ Object
19
20
21
22
23
24
25
26
27
|
# File 'lib/pulsedive/threat.rb', line 19
def get_summary_by_id(tld)
params = {
"tid": tld,
"get": "links",
"summary": "1",
"splitrisk": "1"
}
get("/api/info.php", params) { |json| json }
end
|