class VirustotalAPI::URL
A class for '/urls' API
Public Class Methods
analyse(resource, api_key)
click to toggle source
Analyse a URL
again.
@param [String] resource as an ip/domain/url @param [String] api_key The key for virustotal @return [VirustotalAPI::URL] Report
# File lib/virustotal_api/url.rb, line 23 def self.analyse(resource, api_key) report = perform("/urls/#{url_identifier(resource)}/analyse", api_key, :post) new(report) end
find(resource, api_key)
click to toggle source
Find a URL
.
@param [String] resource as an ip/domain/url @param [String] api_key The key for virustotal @return [VirustotalAPI::URL] Report
# File lib/virustotal_api/url.rb, line 13 def self.find(resource, api_key) report = perform("/urls/#{url_identifier(resource)}", api_key) new(report) end
upload(resource, api_key)
click to toggle source
Upload a URL
for detection.
@param [String] resource as an ip/domain/url @param [String] api_key The key for virustotal @return [VirustotalAPI::URL] Report
# File lib/virustotal_api/url.rb, line 33 def self.upload(resource, api_key) report = perform('/urls', api_key, :post, url: resource) new(report) end