Class: BinaryEdge::Client::DataLeaks

Inherits:
Base
  • Object
show all
Defined in:
lib/binaryedge/clients/data_leaks.rb

Constant Summary

Constants inherited from Base

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

Instance Attribute Summary

Attributes inherited from Base

#api_key

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

#email(email) ⇒ Hash

Verify how many dataleaks affected an specific email address.

Parameters:

  • email (String)

    Verify which dataleaks affect the target email.

Returns:

  • (Hash)


13
14
15
# File 'lib/binaryedge/clients/data_leaks.rb', line 13

def email(email)
  _get("/query/dataleaks/email/#{email}") { |json| json }
end

#infoHash

Get all available information about the dataleaks our platform keeps track.

Returns:

  • (Hash)


33
34
35
# File 'lib/binaryedge/clients/data_leaks.rb', line 33

def info
  _get("/query/dataleaks/info") { |json| json }
end

#organization(domain) ⇒ Hash

Verify how many emails are affected by dataleaks for a specific domain

Parameters:

  • domain (String)

    Verify which dataleaks affect the target domain.

Returns:

  • (Hash)


24
25
26
# File 'lib/binaryedge/clients/data_leaks.rb', line 24

def organization(domain)
  _get("/query/dataleaks/organization/#{domain}") { |json| json }
end