class UrlScan::Clients::Pro
Constants
- HOST
- VERSION
Public Instance Methods
brands()
click to toggle source
@return [Hash]
# File lib/urlscan/clients/pro.rb, line 10 def brands get("/brands") { |json| json } end
kits()
click to toggle source
@return [Hash]
# File lib/urlscan/clients/pro.rb, line 15 def kits get("/kits") { |json| json } end
phishfeed(q: "result.task.time:>now-24h", format: "json")
click to toggle source
@return [Hash]
# 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)
click to toggle source
@return [Hash]
# File lib/urlscan/clients/pro.rb, line 26 def similar(uuid) get("/result/#{uuid}/similar/") { |json| json } end
Private Instance Methods
build_filter(filter)
click to toggle source
# File lib/urlscan/clients/pro.rb, line 32 def build_filter(filter) return nil unless filter filter.start_with?("$") ? filter : "$#{filter}" end
url()
click to toggle source
# File lib/urlscan/clients/pro.rb, line 38 def url @url ||= "https://#{HOST}/api/v#{VERSION}/pro" end