class PassiveTotal::Client::Enrichment

Public Instance Methods

bulk_data(*query) click to toggle source

Get bulk enrichment data for many queries api.passivetotal.org/api/docs/#api-Bulk_Enrichment-GetV2EnrichmentBulk

@param [Array<String>] query the domains and IPs being queried

@return [Hash]

# File lib/passivetotal/clients/enrichment.rb, line 78
def bulk_data(*query)
  params = {
    query: query,
  }.compact

  _get("/enrichment/bulk", params) { |json| json }
end
bulk_malware(*query) click to toggle source

Get bulk malware data for many queries api.passivetotal.org/api/docs/#api-Bulk_Enrichment-GetV2EnrichmentBulkMalware

@param [Array<String>] query the domains and IPs being queried

@return [Hash]

# File lib/passivetotal/clients/enrichment.rb, line 94
def bulk_malware(*query)
  params = {
    query: query,
  }.compact

  _get("/enrichment/bulk/malware", params) { |json| json }
end
bulk_osint(*query) click to toggle source

Get bulk osint data for many queries api.passivetotal.org/api/docs/#api-Bulk_Enrichment-GetV2EnrichmentBulkOsint

@param [Array<String>] query the domains and IPs being queried

@return [Hash]

# File lib/passivetotal/clients/enrichment.rb, line 110
def bulk_osint(*query)
  params = {
    query: query,
  }.compact

  _get("/enrichment/bulk/osint", params) { |json| json }
end
get(query) click to toggle source

Get enrichment data for a query api.passivetotal.org/api/docs/#api-Enrichment-GetV2Enrichment

@param [String] query the domain or IP being queried

@return [Hash]

# File lib/passivetotal/clients/enrichment.rb, line 14
def get(query)
  params = {
    query: query,
  }.compact

  _get("/enrichment", params) { |json| json }
end
malware(query) click to toggle source

Get malware data for a query api.passivetotal.org/api/docs/#api-Enrichment-GetV2EnrichmentMalware

@param [String] query the domain or IP being queried

@return [Hash]

# File lib/passivetotal/clients/enrichment.rb, line 30
def malware(query)
  params = {
    query: query,
  }.compact

  _get("/enrichment/malware", params) { |json| json }
end
osint(query) click to toggle source

Get osint data for a query api.passivetotal.org/api/docs/#api-Enrichment-GetV2EnrichmentOsint

@param [String] query the domain or IP being queried

@return [Hash]

# File lib/passivetotal/clients/enrichment.rb, line 46
def osint(query)
  params = {
    query: query,
  }.compact

  _get("/enrichment/osint", params) { |json| json }
end
subdomains(query) click to toggle source

Get subdomains data for a query api.passivetotal.org/api/docs/#api-Enrichment-GetV2EnrichmentSubdomains

@param [String] query the domain being queried

@return [Hash]

# File lib/passivetotal/clients/enrichment.rb, line 62
def subdomains(query)
  params = {
    query: query,
  }.compact

  _get("/enrichment/subdomains", params) { |json| json }
end