Sha256: 57c6072eeea0a3f3b6e8c1c880851266230b33e39cf1f02fca0875b5a734362f
Contents?: true
Size: 857 Bytes
Versions: 1
Compression:
Stored size: 857 Bytes
Contents
# frozen_string_literal: true module UrlScan module Clients class Pro < Base VERSION = 1 HOST = "urlscan.io" # @return [Hash] def brands get("/brands") { |json| json } end # @return [Hash] def kits get("/kits") { |json| json } end # @return [Hash] def phishfeed(q: "result.task.time:>now-24h", format: "json") params = { q: q, format: format } get("/phishfeed", params) { |json| json } end # @return [Hash] def similar(uuid) get("/result/#{uuid}/similar/") { |json| json } end private def build_filter(filter) return nil unless filter filter.start_with?("$") ? filter : "$#{filter}" end def url @url ||= "https://#{HOST}/api/v#{VERSION}/pro" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
urlscan-0.7.0 | lib/urlscan/clients/pro.rb |