Class: UrlScan::Clients::Pro

Inherits:
Base
  • Object
show all
Defined in:
lib/urlscan/clients/pro.rb

Constant Summary collapse

VERSION =
1
HOST =
"urlscan.io"

Instance Attribute Summary

Attributes inherited from Base

#key

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from UrlScan::Clients::Base

Instance Method Details

#brandsHash

Returns:

  • (Hash)


10
11
12
# File 'lib/urlscan/clients/pro.rb', line 10

def brands
  get("/brands") { |json| json }
end

#kitsHash

Returns:

  • (Hash)


15
16
17
# File 'lib/urlscan/clients/pro.rb', line 15

def kits
  get("/kits") { |json| json }
end

#phishfeed(q: "result.task.time:>now-24h", format: "json") ⇒ Hash

Returns:

  • (Hash)


20
21
22
23
# File 'lib/urlscan/clients/pro.rb', line 20

def phishfeed(q: "result.task.time:>now-24h", format: "json")
  params = { q: q, format: format }
  get("/phishfeed", params) { |json| json }
end

#similar(uuid) ⇒ Hash

Returns:

  • (Hash)


26
27
28
# File 'lib/urlscan/clients/pro.rb', line 26

def similar(uuid)
  get("/result/#{uuid}/similar/") { |json| json }
end