Class: PassiveTotal::Client::Tracker

Inherits:
Base
  • Object
show all
Defined in:
lib/passivetotal/clients/tracker.rb

Constant Summary

Constants inherited from Base

Base::BASE_URL, Base::HOST, Base::VERSION

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from PassiveTotal::Client::Base

Instance Method Details

#search(query:, type:) ⇒ Hash

Retrieves hosts that employ user tracking mechanisms served from another given host. api.passivetotal.org/api/docs/#api-Trackers-GetV2TrackersSearch

Parameters:

  • query (String)

    host from which trackers originate

  • type (String)

    type of trackers to retrieve; a type other than the offically supported ones may be supplied

Returns:

  • (Hash)


15
16
17
18
19
20
21
22
# File 'lib/passivetotal/clients/tracker.rb', line 15

def search(query:, type:)
  params = {
    query: query,
    type: type,
  }.compact

  _get("/trackers/search", params) { |json| json }
end