whoisfreaks 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +229 -0
- data/Rakefile +10 -0
- data/docs/ASNWHOISApi.md +85 -0
- data/docs/AccountApi.md +213 -0
- data/docs/AccountUsageResponse.md +22 -0
- data/docs/AccountUsageResponseApiCredits.md +20 -0
- data/docs/AccountUsageResponseApiSubscription.md +26 -0
- data/docs/AsnWhoisResponse.md +28 -0
- data/docs/AsnWhoisResponseAutNumsInner.md +26 -0
- data/docs/AsnWhoisResponseOrganization.md +24 -0
- data/docs/BulkDomainAvailabilityRequest.md +20 -0
- data/docs/BulkDomainAvailabilityV2Item.md +22 -0
- data/docs/BulkDomainAvailabilityV2Response.md +18 -0
- data/docs/BulkGeolocationRequest.md +18 -0
- data/docs/BulkWhois200Response.md +18 -0
- data/docs/BulkWhoisRequest.md +18 -0
- data/docs/Contact.md +38 -0
- data/docs/DNSApi.md +335 -0
- data/docs/DatabaseFileStatus.md +24 -0
- data/docs/DatabaseFileStatusNewlyValue.md +20 -0
- data/docs/DatabasesASNWHOISApi.md +153 -0
- data/docs/DatabasesDNSApi.md +235 -0
- data/docs/DatabasesExpiringDroppedApi.md +395 -0
- data/docs/DatabasesIPGeolocationApi.md +299 -0
- data/docs/DatabasesIPSecurityApi.md +153 -0
- data/docs/DatabasesIPWHOISApi.md +153 -0
- data/docs/DatabasesNewlyRegisteredApi.md +551 -0
- data/docs/DatabasesSubdomainsApi.md +235 -0
- data/docs/DatabasesWHOISApi.md +235 -0
- data/docs/DnsBulk200Response.md +18 -0
- data/docs/DnsBulkRequest.md +20 -0
- data/docs/DnsRecord.md +34 -0
- data/docs/DnsResponse.md +26 -0
- data/docs/DomainAvailabilityApi.md +169 -0
- data/docs/DomainAvailabilityV2Item.md +20 -0
- data/docs/DomainAvailabilityV2Response.md +18 -0
- data/docs/DomainReputationApi.md +85 -0
- data/docs/DomainReputationDgaFeatures.md +30 -0
- data/docs/DomainReputationDgaScore.md +26 -0
- data/docs/DomainReputationEvidenceSummary.md +18 -0
- data/docs/DomainReputationIndicators.md +34 -0
- data/docs/DomainReputationInput.md +18 -0
- data/docs/DomainReputationIntelligence.md +32 -0
- data/docs/DomainReputationPivotMatch.md +24 -0
- data/docs/DomainReputationRelatedIoc.md +22 -0
- data/docs/DomainReputationResponse.md +36 -0
- data/docs/DomainReputationRiskCategory.md +30 -0
- data/docs/DomainReputationSignal.md +28 -0
- data/docs/DomainReputationSignals.md +22 -0
- data/docs/DomainReputationTrustSignals.md +24 -0
- data/docs/ErrorResponse.md +26 -0
- data/docs/GeolocationApi.md +155 -0
- data/docs/GeolocationAsn.md +26 -0
- data/docs/GeolocationLocation.md +38 -0
- data/docs/GeolocationResponse.md +24 -0
- data/docs/GeolocationResponseCurrency.md +22 -0
- data/docs/GeolocationResponseNetwork.md +18 -0
- data/docs/HistoricalDnsResponse.md +24 -0
- data/docs/IPReputationApi.md +155 -0
- data/docs/IPWHOISApi.md +85 -0
- data/docs/IpReputationResponse.md +24 -0
- data/docs/IpReputationSecurity.md +42 -0
- data/docs/IpWhoisResponse.md +30 -0
- data/docs/IpWhoisResponseAbuseContactsInner.md +22 -0
- data/docs/IpWhoisResponseInetNumsInner.md +28 -0
- data/docs/IpWhoisResponseOrganization.md +26 -0
- data/docs/Registrar.md +30 -0
- data/docs/ReverseDnsResponse.md +24 -0
- data/docs/ReverseWhoisResponse.md +24 -0
- data/docs/SSLApi.md +89 -0
- data/docs/SnapshotStatus.md +26 -0
- data/docs/SslCertificate.md +34 -0
- data/docs/SslResponse.md +22 -0
- data/docs/Subdomain.md +24 -0
- data/docs/SubdomainsApi.md +93 -0
- data/docs/SubdomainsResponse.md +30 -0
- data/docs/TyposquattingApi.md +87 -0
- data/docs/TyposquattingDomain.md +26 -0
- data/docs/TyposquattingResponse.md +30 -0
- data/docs/WHOISApi.md +257 -0
- data/docs/WhoisHistoricalOrReverse200Response.md +49 -0
- data/docs/WhoisHistoricalResponse.md +24 -0
- data/docs/WhoisResponse.md +50 -0
- data/git_push.sh +57 -0
- data/lib/whoisfreaks/api/account_api.rb +207 -0
- data/lib/whoisfreaks/api/asnwhois_api.rb +100 -0
- data/lib/whoisfreaks/api/databases_asnwhois_api.rb +157 -0
- data/lib/whoisfreaks/api/databases_dns_api.rb +223 -0
- data/lib/whoisfreaks/api/databases_expiring_dropped_api.rb +377 -0
- data/lib/whoisfreaks/api/databases_ip_geolocation_api.rb +292 -0
- data/lib/whoisfreaks/api/databases_ip_security_api.rb +157 -0
- data/lib/whoisfreaks/api/databases_ipwhois_api.rb +157 -0
- data/lib/whoisfreaks/api/databases_newly_registered_api.rb +517 -0
- data/lib/whoisfreaks/api/databases_subdomains_api.rb +223 -0
- data/lib/whoisfreaks/api/databases_whois_api.rb +223 -0
- data/lib/whoisfreaks/api/dns_api.rb +379 -0
- data/lib/whoisfreaks/api/domain_availability_api.rb +199 -0
- data/lib/whoisfreaks/api/domain_reputation_api.rb +100 -0
- data/lib/whoisfreaks/api/geolocation_api.rb +168 -0
- data/lib/whoisfreaks/api/ip_reputation_api.rb +168 -0
- data/lib/whoisfreaks/api/ipwhois_api.rb +100 -0
- data/lib/whoisfreaks/api/ssl_api.rb +106 -0
- data/lib/whoisfreaks/api/subdomains_api.rb +116 -0
- data/lib/whoisfreaks/api/typosquatting_api.rb +95 -0
- data/lib/whoisfreaks/api/whois_api.rb +293 -0
- data/lib/whoisfreaks/api_client.rb +437 -0
- data/lib/whoisfreaks/api_error.rb +58 -0
- data/lib/whoisfreaks/configuration.rb +588 -0
- data/lib/whoisfreaks/models/account_usage_response.rb +232 -0
- data/lib/whoisfreaks/models/account_usage_response_api_credits.rb +223 -0
- data/lib/whoisfreaks/models/account_usage_response_api_subscription.rb +250 -0
- data/lib/whoisfreaks/models/asn_whois_response.rb +261 -0
- data/lib/whoisfreaks/models/asn_whois_response_aut_nums_inner.rb +252 -0
- data/lib/whoisfreaks/models/asn_whois_response_organization.rb +243 -0
- data/lib/whoisfreaks/models/bulk_domain_availability_request.rb +268 -0
- data/lib/whoisfreaks/models/bulk_domain_availability_v2_item.rb +268 -0
- data/lib/whoisfreaks/models/bulk_domain_availability_v2_response.rb +217 -0
- data/lib/whoisfreaks/models/bulk_geolocation_request.rb +242 -0
- data/lib/whoisfreaks/models/bulk_whois200_response.rb +216 -0
- data/lib/whoisfreaks/models/bulk_whois_request.rb +242 -0
- data/lib/whoisfreaks/models/contact.rb +304 -0
- data/lib/whoisfreaks/models/database_file_status.rb +243 -0
- data/lib/whoisfreaks/models/database_file_status_newly_value.rb +223 -0
- data/lib/whoisfreaks/models/dns_bulk200_response.rb +216 -0
- data/lib/whoisfreaks/models/dns_bulk_request.rb +227 -0
- data/lib/whoisfreaks/models/dns_record.rb +286 -0
- data/lib/whoisfreaks/models/dns_response.rb +254 -0
- data/lib/whoisfreaks/models/domain_availability_v2_item.rb +260 -0
- data/lib/whoisfreaks/models/domain_availability_v2_response.rb +217 -0
- data/lib/whoisfreaks/models/domain_reputation_dga_features.rb +268 -0
- data/lib/whoisfreaks/models/domain_reputation_dga_score.rb +312 -0
- data/lib/whoisfreaks/models/domain_reputation_evidence_summary.rb +216 -0
- data/lib/whoisfreaks/models/domain_reputation_indicators.rb +286 -0
- data/lib/whoisfreaks/models/domain_reputation_input.rb +215 -0
- data/lib/whoisfreaks/models/domain_reputation_intelligence.rb +317 -0
- data/lib/whoisfreaks/models/domain_reputation_pivot_match.rb +304 -0
- data/lib/whoisfreaks/models/domain_reputation_related_ioc.rb +294 -0
- data/lib/whoisfreaks/models/domain_reputation_response.rb +297 -0
- data/lib/whoisfreaks/models/domain_reputation_risk_category.rb +349 -0
- data/lib/whoisfreaks/models/domain_reputation_signal.rb +333 -0
- data/lib/whoisfreaks/models/domain_reputation_signals.rb +238 -0
- data/lib/whoisfreaks/models/domain_reputation_trust_signals.rb +303 -0
- data/lib/whoisfreaks/models/error_response.rb +250 -0
- data/lib/whoisfreaks/models/geolocation_asn.rb +250 -0
- data/lib/whoisfreaks/models/geolocation_location.rb +304 -0
- data/lib/whoisfreaks/models/geolocation_response.rb +241 -0
- data/lib/whoisfreaks/models/geolocation_response_currency.rb +232 -0
- data/lib/whoisfreaks/models/geolocation_response_network.rb +214 -0
- data/lib/whoisfreaks/models/historical_dns_response.rb +243 -0
- data/lib/whoisfreaks/models/ip_reputation_response.rb +241 -0
- data/lib/whoisfreaks/models/ip_reputation_security.rb +322 -0
- data/lib/whoisfreaks/models/ip_whois_response.rb +272 -0
- data/lib/whoisfreaks/models/ip_whois_response_abuse_contacts_inner.rb +234 -0
- data/lib/whoisfreaks/models/ip_whois_response_inet_nums_inner.rb +261 -0
- data/lib/whoisfreaks/models/ip_whois_response_organization.rb +252 -0
- data/lib/whoisfreaks/models/registrar.rb +268 -0
- data/lib/whoisfreaks/models/reverse_dns_response.rb +243 -0
- data/lib/whoisfreaks/models/reverse_whois_response.rb +243 -0
- data/lib/whoisfreaks/models/snapshot_status.rb +250 -0
- data/lib/whoisfreaks/models/ssl_certificate.rb +320 -0
- data/lib/whoisfreaks/models/ssl_response.rb +234 -0
- data/lib/whoisfreaks/models/subdomain.rb +241 -0
- data/lib/whoisfreaks/models/subdomains_response.rb +270 -0
- data/lib/whoisfreaks/models/typosquatting_domain.rb +250 -0
- data/lib/whoisfreaks/models/typosquatting_response.rb +270 -0
- data/lib/whoisfreaks/models/whois_historical_or_reverse200_response.rb +105 -0
- data/lib/whoisfreaks/models/whois_historical_response.rb +277 -0
- data/lib/whoisfreaks/models/whois_response.rb +362 -0
- data/lib/whoisfreaks/version.rb +15 -0
- data/lib/whoisfreaks.rb +120 -0
- data/spec/api/account_api_spec.rb +70 -0
- data/spec/api/asnwhois_api_spec.rb +49 -0
- data/spec/api/databases_asnwhois_api_spec.rb +60 -0
- data/spec/api/databases_dns_api_spec.rb +74 -0
- data/spec/api/databases_expiring_dropped_api_spec.rb +104 -0
- data/spec/api/databases_ip_geolocation_api_spec.rb +85 -0
- data/spec/api/databases_ip_security_api_spec.rb +60 -0
- data/spec/api/databases_ipwhois_api_spec.rb +60 -0
- data/spec/api/databases_newly_registered_api_spec.rb +132 -0
- data/spec/api/databases_subdomains_api_spec.rb +74 -0
- data/spec/api/databases_whois_api_spec.rb +74 -0
- data/spec/api/dns_api_spec.rb +99 -0
- data/spec/api/domain_availability_api_spec.rb +66 -0
- data/spec/api/domain_reputation_api_spec.rb +49 -0
- data/spec/api/geolocation_api_spec.rb +61 -0
- data/spec/api/ip_reputation_api_spec.rb +61 -0
- data/spec/api/ipwhois_api_spec.rb +49 -0
- data/spec/api/ssl_api_spec.rb +51 -0
- data/spec/api/subdomains_api_spec.rb +53 -0
- data/spec/api/typosquatting_api_spec.rb +50 -0
- data/spec/api/whois_api_spec.rb +85 -0
- data/spec/models/account_usage_response_api_credits_spec.rb +42 -0
- data/spec/models/account_usage_response_api_subscription_spec.rb +60 -0
- data/spec/models/account_usage_response_spec.rb +48 -0
- data/spec/models/asn_whois_response_aut_nums_inner_spec.rb +60 -0
- data/spec/models/asn_whois_response_organization_spec.rb +54 -0
- data/spec/models/asn_whois_response_spec.rb +66 -0
- data/spec/models/bulk_domain_availability_request_spec.rb +42 -0
- data/spec/models/bulk_domain_availability_v2_item_spec.rb +52 -0
- data/spec/models/bulk_domain_availability_v2_response_spec.rb +36 -0
- data/spec/models/bulk_geolocation_request_spec.rb +36 -0
- data/spec/models/bulk_whois200_response_spec.rb +36 -0
- data/spec/models/bulk_whois_request_spec.rb +36 -0
- data/spec/models/contact_spec.rb +96 -0
- data/spec/models/database_file_status_newly_value_spec.rb +42 -0
- data/spec/models/database_file_status_spec.rb +54 -0
- data/spec/models/dns_bulk200_response_spec.rb +36 -0
- data/spec/models/dns_bulk_request_spec.rb +42 -0
- data/spec/models/dns_record_spec.rb +84 -0
- data/spec/models/dns_response_spec.rb +60 -0
- data/spec/models/domain_availability_v2_item_spec.rb +46 -0
- data/spec/models/domain_availability_v2_response_spec.rb +36 -0
- data/spec/models/domain_reputation_dga_features_spec.rb +72 -0
- data/spec/models/domain_reputation_dga_score_spec.rb +64 -0
- data/spec/models/domain_reputation_evidence_summary_spec.rb +36 -0
- data/spec/models/domain_reputation_indicators_spec.rb +84 -0
- data/spec/models/domain_reputation_input_spec.rb +36 -0
- data/spec/models/domain_reputation_intelligence_spec.rb +82 -0
- data/spec/models/domain_reputation_pivot_match_spec.rb +58 -0
- data/spec/models/domain_reputation_related_ioc_spec.rb +52 -0
- data/spec/models/domain_reputation_response_spec.rb +90 -0
- data/spec/models/domain_reputation_risk_category_spec.rb +80 -0
- data/spec/models/domain_reputation_signal_spec.rb +74 -0
- data/spec/models/domain_reputation_signals_spec.rb +48 -0
- data/spec/models/domain_reputation_trust_signals_spec.rb +58 -0
- data/spec/models/error_response_spec.rb +60 -0
- data/spec/models/geolocation_asn_spec.rb +60 -0
- data/spec/models/geolocation_location_spec.rb +96 -0
- data/spec/models/geolocation_response_currency_spec.rb +48 -0
- data/spec/models/geolocation_response_network_spec.rb +36 -0
- data/spec/models/geolocation_response_spec.rb +54 -0
- data/spec/models/historical_dns_response_spec.rb +54 -0
- data/spec/models/ip_reputation_response_spec.rb +54 -0
- data/spec/models/ip_reputation_security_spec.rb +108 -0
- data/spec/models/ip_whois_response_abuse_contacts_inner_spec.rb +48 -0
- data/spec/models/ip_whois_response_inet_nums_inner_spec.rb +66 -0
- data/spec/models/ip_whois_response_organization_spec.rb +60 -0
- data/spec/models/ip_whois_response_spec.rb +72 -0
- data/spec/models/registrar_spec.rb +72 -0
- data/spec/models/reverse_dns_response_spec.rb +54 -0
- data/spec/models/reverse_whois_response_spec.rb +54 -0
- data/spec/models/snapshot_status_spec.rb +60 -0
- data/spec/models/ssl_certificate_spec.rb +88 -0
- data/spec/models/ssl_response_spec.rb +48 -0
- data/spec/models/subdomain_spec.rb +54 -0
- data/spec/models/subdomains_response_spec.rb +72 -0
- data/spec/models/typosquatting_domain_spec.rb +60 -0
- data/spec/models/typosquatting_response_spec.rb +72 -0
- data/spec/models/whois_historical_or_reverse200_response_spec.rb +32 -0
- data/spec/models/whois_historical_response_spec.rb +58 -0
- data/spec/models/whois_response_spec.rb +132 -0
- data/spec/spec_helper.rb +111 -0
- data/whoisfreaks.gemspec +41 -0
- metadata +451 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# WhoisFreaks::AsnWhoisResponseAutNumsInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **aut_num** | **String** | | [optional] |
|
|
8
|
+
| **as_name** | **String** | | [optional] |
|
|
9
|
+
| **description** | **Array<String>** | | [optional] |
|
|
10
|
+
| **status** | **String** | | [optional] |
|
|
11
|
+
| **date_created** | **String** | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'whoisfreaks'
|
|
17
|
+
|
|
18
|
+
instance = WhoisFreaks::AsnWhoisResponseAutNumsInner.new(
|
|
19
|
+
aut_num: null,
|
|
20
|
+
as_name: null,
|
|
21
|
+
description: null,
|
|
22
|
+
status: null,
|
|
23
|
+
date_created: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# WhoisFreaks::AsnWhoisResponseOrganization
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **handle** | **String** | | [optional] |
|
|
8
|
+
| **name** | **String** | | [optional] |
|
|
9
|
+
| **type** | **String** | | [optional] |
|
|
10
|
+
| **country** | **Array<String>** | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'whoisfreaks'
|
|
16
|
+
|
|
17
|
+
instance = WhoisFreaks::AsnWhoisResponseOrganization.new(
|
|
18
|
+
handle: null,
|
|
19
|
+
name: null,
|
|
20
|
+
type: null,
|
|
21
|
+
country: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WhoisFreaks::BulkDomainAvailabilityRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **domain_names** | **Array<String>** | Mode 1 — list of full domain names. Cannot be used with tld. | [optional] |
|
|
8
|
+
| **tld** | **Array<String>** | Mode 2 — TLDs to check against the domain query param. Cannot be used with domainNames. | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'whoisfreaks'
|
|
14
|
+
|
|
15
|
+
instance = WhoisFreaks::BulkDomainAvailabilityRequest.new(
|
|
16
|
+
domain_names: null,
|
|
17
|
+
tld: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# WhoisFreaks::BulkDomainAvailabilityV2Item
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **domain** | **String** | | [optional] |
|
|
8
|
+
| **availability** | **String** | | [optional] |
|
|
9
|
+
| **status** | **Boolean** | Whether the registry lookup succeeded. false => treat availability as UNKNOWN. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'whoisfreaks'
|
|
15
|
+
|
|
16
|
+
instance = WhoisFreaks::BulkDomainAvailabilityV2Item.new(
|
|
17
|
+
domain: google.us,
|
|
18
|
+
availability: UNAVAILABLE,
|
|
19
|
+
status: true
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# WhoisFreaks::BulkDomainAvailabilityV2Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **bulk_domain_availability_response** | [**Array<BulkDomainAvailabilityV2Item>**](BulkDomainAvailabilityV2Item.md) | | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'whoisfreaks'
|
|
13
|
+
|
|
14
|
+
instance = WhoisFreaks::BulkDomainAvailabilityV2Response.new(
|
|
15
|
+
bulk_domain_availability_response: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# WhoisFreaks::BulkGeolocationRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **ips** | **Array<String>** | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'whoisfreaks'
|
|
13
|
+
|
|
14
|
+
instance = WhoisFreaks::BulkGeolocationRequest.new(
|
|
15
|
+
ips: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# WhoisFreaks::BulkWhois200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **bulk_whois_response** | [**Array<WhoisResponse>**](WhoisResponse.md) | | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'whoisfreaks'
|
|
13
|
+
|
|
14
|
+
instance = WhoisFreaks::BulkWhois200Response.new(
|
|
15
|
+
bulk_whois_response: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# WhoisFreaks::BulkWhoisRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **domain_names** | **Array<String>** | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'whoisfreaks'
|
|
13
|
+
|
|
14
|
+
instance = WhoisFreaks::BulkWhoisRequest.new(
|
|
15
|
+
domain_names: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
data/docs/Contact.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# WhoisFreaks::Contact
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **handle** | **String** | | [optional] |
|
|
8
|
+
| **name** | **String** | | [optional] |
|
|
9
|
+
| **company** | **String** | | [optional] |
|
|
10
|
+
| **street** | **String** | | [optional] |
|
|
11
|
+
| **city** | **String** | | [optional] |
|
|
12
|
+
| **state** | **String** | | [optional] |
|
|
13
|
+
| **zip_code** | **String** | | [optional] |
|
|
14
|
+
| **country_name** | **String** | | [optional] |
|
|
15
|
+
| **country_code** | **String** | | [optional] |
|
|
16
|
+
| **email_address** | **String** | | [optional] |
|
|
17
|
+
| **phone** | **String** | | [optional] |
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'whoisfreaks'
|
|
23
|
+
|
|
24
|
+
instance = WhoisFreaks::Contact.new(
|
|
25
|
+
handle: null,
|
|
26
|
+
name: null,
|
|
27
|
+
company: null,
|
|
28
|
+
street: null,
|
|
29
|
+
city: null,
|
|
30
|
+
state: null,
|
|
31
|
+
zip_code: null,
|
|
32
|
+
country_name: null,
|
|
33
|
+
country_code: null,
|
|
34
|
+
email_address: null,
|
|
35
|
+
phone: null
|
|
36
|
+
)
|
|
37
|
+
```
|
|
38
|
+
|
data/docs/DNSApi.md
ADDED
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
# WhoisFreaks::DNSApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.whoisfreaks.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**dns_bulk**](DNSApi.md#dns_bulk) | **POST** /v2.0/dns/bulk/live | Bulk DNS Lookup |
|
|
8
|
+
| [**dns_historical**](DNSApi.md#dns_historical) | **GET** /v2.0/dns/historical | Historical DNS Lookup |
|
|
9
|
+
| [**dns_live**](DNSApi.md#dns_live) | **GET** /v2.0/dns/live | Live DNS Lookup |
|
|
10
|
+
| [**dns_reverse**](DNSApi.md#dns_reverse) | **GET** /v2.1/dns/reverse | Reverse DNS Lookup |
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## dns_bulk
|
|
14
|
+
|
|
15
|
+
> <DnsBulk200Response> dns_bulk(api_key, type, dns_bulk_request, opts)
|
|
16
|
+
|
|
17
|
+
Bulk DNS Lookup
|
|
18
|
+
|
|
19
|
+
Up to 100 domains + 100 IPs in one request.
|
|
20
|
+
|
|
21
|
+
### Examples
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
require 'time'
|
|
25
|
+
require 'whoisfreaks'
|
|
26
|
+
# setup authorization
|
|
27
|
+
WhoisFreaks.configure do |config|
|
|
28
|
+
# Configure API key authorization: ApiKeyAuth
|
|
29
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
30
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
31
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
api_instance = WhoisFreaks::DNSApi.new
|
|
35
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
36
|
+
type = 'type_example' # String |
|
|
37
|
+
dns_bulk_request = WhoisFreaks::DnsBulkRequest.new # DnsBulkRequest |
|
|
38
|
+
opts = {
|
|
39
|
+
format: 'json' # String |
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
begin
|
|
43
|
+
# Bulk DNS Lookup
|
|
44
|
+
result = api_instance.dns_bulk(api_key, type, dns_bulk_request, opts)
|
|
45
|
+
p result
|
|
46
|
+
rescue WhoisFreaks::ApiError => e
|
|
47
|
+
puts "Error when calling DNSApi->dns_bulk: #{e}"
|
|
48
|
+
end
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### Using the dns_bulk_with_http_info variant
|
|
52
|
+
|
|
53
|
+
This returns an Array which contains the response data, status code and headers.
|
|
54
|
+
|
|
55
|
+
> <Array(<DnsBulk200Response>, Integer, Hash)> dns_bulk_with_http_info(api_key, type, dns_bulk_request, opts)
|
|
56
|
+
|
|
57
|
+
```ruby
|
|
58
|
+
begin
|
|
59
|
+
# Bulk DNS Lookup
|
|
60
|
+
data, status_code, headers = api_instance.dns_bulk_with_http_info(api_key, type, dns_bulk_request, opts)
|
|
61
|
+
p status_code # => 2xx
|
|
62
|
+
p headers # => { ... }
|
|
63
|
+
p data # => <DnsBulk200Response>
|
|
64
|
+
rescue WhoisFreaks::ApiError => e
|
|
65
|
+
puts "Error when calling DNSApi->dns_bulk_with_http_info: #{e}"
|
|
66
|
+
end
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Parameters
|
|
70
|
+
|
|
71
|
+
| Name | Type | Description | Notes |
|
|
72
|
+
| ---- | ---- | ----------- | ----- |
|
|
73
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
74
|
+
| **type** | **String** | | [default to 'all'] |
|
|
75
|
+
| **dns_bulk_request** | [**DnsBulkRequest**](DnsBulkRequest.md) | | |
|
|
76
|
+
| **format** | **String** | | [optional][default to 'json'] |
|
|
77
|
+
|
|
78
|
+
### Return type
|
|
79
|
+
|
|
80
|
+
[**DnsBulk200Response**](DnsBulk200Response.md)
|
|
81
|
+
|
|
82
|
+
### Authorization
|
|
83
|
+
|
|
84
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
85
|
+
|
|
86
|
+
### HTTP request headers
|
|
87
|
+
|
|
88
|
+
- **Content-Type**: application/json
|
|
89
|
+
- **Accept**: application/json
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## dns_historical
|
|
93
|
+
|
|
94
|
+
> <HistoricalDnsResponse> dns_historical(api_key, domain_name, type, opts)
|
|
95
|
+
|
|
96
|
+
Historical DNS Lookup
|
|
97
|
+
|
|
98
|
+
All historical DNS records. 2 credits per page (100 records/page).
|
|
99
|
+
|
|
100
|
+
### Examples
|
|
101
|
+
|
|
102
|
+
```ruby
|
|
103
|
+
require 'time'
|
|
104
|
+
require 'whoisfreaks'
|
|
105
|
+
# setup authorization
|
|
106
|
+
WhoisFreaks.configure do |config|
|
|
107
|
+
# Configure API key authorization: ApiKeyAuth
|
|
108
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
109
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
110
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
api_instance = WhoisFreaks::DNSApi.new
|
|
114
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
115
|
+
domain_name = 'domain_name_example' # String |
|
|
116
|
+
type = 'type_example' # String |
|
|
117
|
+
opts = {
|
|
118
|
+
page: 56, # Integer |
|
|
119
|
+
format: 'json' # String |
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
begin
|
|
123
|
+
# Historical DNS Lookup
|
|
124
|
+
result = api_instance.dns_historical(api_key, domain_name, type, opts)
|
|
125
|
+
p result
|
|
126
|
+
rescue WhoisFreaks::ApiError => e
|
|
127
|
+
puts "Error when calling DNSApi->dns_historical: #{e}"
|
|
128
|
+
end
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
#### Using the dns_historical_with_http_info variant
|
|
132
|
+
|
|
133
|
+
This returns an Array which contains the response data, status code and headers.
|
|
134
|
+
|
|
135
|
+
> <Array(<HistoricalDnsResponse>, Integer, Hash)> dns_historical_with_http_info(api_key, domain_name, type, opts)
|
|
136
|
+
|
|
137
|
+
```ruby
|
|
138
|
+
begin
|
|
139
|
+
# Historical DNS Lookup
|
|
140
|
+
data, status_code, headers = api_instance.dns_historical_with_http_info(api_key, domain_name, type, opts)
|
|
141
|
+
p status_code # => 2xx
|
|
142
|
+
p headers # => { ... }
|
|
143
|
+
p data # => <HistoricalDnsResponse>
|
|
144
|
+
rescue WhoisFreaks::ApiError => e
|
|
145
|
+
puts "Error when calling DNSApi->dns_historical_with_http_info: #{e}"
|
|
146
|
+
end
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Parameters
|
|
150
|
+
|
|
151
|
+
| Name | Type | Description | Notes |
|
|
152
|
+
| ---- | ---- | ----------- | ----- |
|
|
153
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
154
|
+
| **domain_name** | **String** | | |
|
|
155
|
+
| **type** | **String** | | [default to 'all'] |
|
|
156
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
157
|
+
| **format** | **String** | | [optional][default to 'json'] |
|
|
158
|
+
|
|
159
|
+
### Return type
|
|
160
|
+
|
|
161
|
+
[**HistoricalDnsResponse**](HistoricalDnsResponse.md)
|
|
162
|
+
|
|
163
|
+
### Authorization
|
|
164
|
+
|
|
165
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
166
|
+
|
|
167
|
+
### HTTP request headers
|
|
168
|
+
|
|
169
|
+
- **Content-Type**: Not defined
|
|
170
|
+
- **Accept**: application/json
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
## dns_live
|
|
174
|
+
|
|
175
|
+
> <DnsResponse> dns_live(api_key, type, opts)
|
|
176
|
+
|
|
177
|
+
Live DNS Lookup
|
|
178
|
+
|
|
179
|
+
Real-time DNS record lookup. 1 credit per query.
|
|
180
|
+
|
|
181
|
+
### Examples
|
|
182
|
+
|
|
183
|
+
```ruby
|
|
184
|
+
require 'time'
|
|
185
|
+
require 'whoisfreaks'
|
|
186
|
+
# setup authorization
|
|
187
|
+
WhoisFreaks.configure do |config|
|
|
188
|
+
# Configure API key authorization: ApiKeyAuth
|
|
189
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
190
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
191
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
api_instance = WhoisFreaks::DNSApi.new
|
|
195
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
196
|
+
type = 'type_example' # String | all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME
|
|
197
|
+
opts = {
|
|
198
|
+
domain_name: 'domain_name_example', # String |
|
|
199
|
+
ip_address: 'ip_address_example', # String | Use for PTR lookups
|
|
200
|
+
format: 'json' # String |
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
begin
|
|
204
|
+
# Live DNS Lookup
|
|
205
|
+
result = api_instance.dns_live(api_key, type, opts)
|
|
206
|
+
p result
|
|
207
|
+
rescue WhoisFreaks::ApiError => e
|
|
208
|
+
puts "Error when calling DNSApi->dns_live: #{e}"
|
|
209
|
+
end
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
#### Using the dns_live_with_http_info variant
|
|
213
|
+
|
|
214
|
+
This returns an Array which contains the response data, status code and headers.
|
|
215
|
+
|
|
216
|
+
> <Array(<DnsResponse>, Integer, Hash)> dns_live_with_http_info(api_key, type, opts)
|
|
217
|
+
|
|
218
|
+
```ruby
|
|
219
|
+
begin
|
|
220
|
+
# Live DNS Lookup
|
|
221
|
+
data, status_code, headers = api_instance.dns_live_with_http_info(api_key, type, opts)
|
|
222
|
+
p status_code # => 2xx
|
|
223
|
+
p headers # => { ... }
|
|
224
|
+
p data # => <DnsResponse>
|
|
225
|
+
rescue WhoisFreaks::ApiError => e
|
|
226
|
+
puts "Error when calling DNSApi->dns_live_with_http_info: #{e}"
|
|
227
|
+
end
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
### Parameters
|
|
231
|
+
|
|
232
|
+
| Name | Type | Description | Notes |
|
|
233
|
+
| ---- | ---- | ----------- | ----- |
|
|
234
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
235
|
+
| **type** | **String** | all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME | [default to 'all'] |
|
|
236
|
+
| **domain_name** | **String** | | [optional] |
|
|
237
|
+
| **ip_address** | **String** | Use for PTR lookups | [optional] |
|
|
238
|
+
| **format** | **String** | | [optional][default to 'json'] |
|
|
239
|
+
|
|
240
|
+
### Return type
|
|
241
|
+
|
|
242
|
+
[**DnsResponse**](DnsResponse.md)
|
|
243
|
+
|
|
244
|
+
### Authorization
|
|
245
|
+
|
|
246
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
247
|
+
|
|
248
|
+
### HTTP request headers
|
|
249
|
+
|
|
250
|
+
- **Content-Type**: Not defined
|
|
251
|
+
- **Accept**: application/json
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
## dns_reverse
|
|
255
|
+
|
|
256
|
+
> <ReverseDnsResponse> dns_reverse(api_key, value, type, opts)
|
|
257
|
+
|
|
258
|
+
Reverse DNS Lookup
|
|
259
|
+
|
|
260
|
+
Search domains by IP or DNS value. 5 credits per page.
|
|
261
|
+
|
|
262
|
+
### Examples
|
|
263
|
+
|
|
264
|
+
```ruby
|
|
265
|
+
require 'time'
|
|
266
|
+
require 'whoisfreaks'
|
|
267
|
+
# setup authorization
|
|
268
|
+
WhoisFreaks.configure do |config|
|
|
269
|
+
# Configure API key authorization: ApiKeyAuth
|
|
270
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
271
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
272
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
api_instance = WhoisFreaks::DNSApi.new
|
|
276
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
277
|
+
value = 'value_example' # String | IP, CIDR, or record value
|
|
278
|
+
type = 'a' # String |
|
|
279
|
+
opts = {
|
|
280
|
+
exact: true, # Boolean |
|
|
281
|
+
page: 56, # Integer |
|
|
282
|
+
format: 'json' # String |
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
begin
|
|
286
|
+
# Reverse DNS Lookup
|
|
287
|
+
result = api_instance.dns_reverse(api_key, value, type, opts)
|
|
288
|
+
p result
|
|
289
|
+
rescue WhoisFreaks::ApiError => e
|
|
290
|
+
puts "Error when calling DNSApi->dns_reverse: #{e}"
|
|
291
|
+
end
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
#### Using the dns_reverse_with_http_info variant
|
|
295
|
+
|
|
296
|
+
This returns an Array which contains the response data, status code and headers.
|
|
297
|
+
|
|
298
|
+
> <Array(<ReverseDnsResponse>, Integer, Hash)> dns_reverse_with_http_info(api_key, value, type, opts)
|
|
299
|
+
|
|
300
|
+
```ruby
|
|
301
|
+
begin
|
|
302
|
+
# Reverse DNS Lookup
|
|
303
|
+
data, status_code, headers = api_instance.dns_reverse_with_http_info(api_key, value, type, opts)
|
|
304
|
+
p status_code # => 2xx
|
|
305
|
+
p headers # => { ... }
|
|
306
|
+
p data # => <ReverseDnsResponse>
|
|
307
|
+
rescue WhoisFreaks::ApiError => e
|
|
308
|
+
puts "Error when calling DNSApi->dns_reverse_with_http_info: #{e}"
|
|
309
|
+
end
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
### Parameters
|
|
313
|
+
|
|
314
|
+
| Name | Type | Description | Notes |
|
|
315
|
+
| ---- | ---- | ----------- | ----- |
|
|
316
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
317
|
+
| **value** | **String** | IP, CIDR, or record value | |
|
|
318
|
+
| **type** | **String** | | |
|
|
319
|
+
| **exact** | **Boolean** | | [optional][default to true] |
|
|
320
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
321
|
+
| **format** | **String** | | [optional][default to 'json'] |
|
|
322
|
+
|
|
323
|
+
### Return type
|
|
324
|
+
|
|
325
|
+
[**ReverseDnsResponse**](ReverseDnsResponse.md)
|
|
326
|
+
|
|
327
|
+
### Authorization
|
|
328
|
+
|
|
329
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
330
|
+
|
|
331
|
+
### HTTP request headers
|
|
332
|
+
|
|
333
|
+
- **Content-Type**: Not defined
|
|
334
|
+
- **Accept**: application/json
|
|
335
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# WhoisFreaks::DatabaseFileStatus
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **newly** | [**Hash<String, DatabaseFileStatusNewlyValue>**](DatabaseFileStatusNewlyValue.md) | | [optional] |
|
|
8
|
+
| **expired** | [**DatabaseFileStatusNewlyValue**](DatabaseFileStatusNewlyValue.md) | | [optional] |
|
|
9
|
+
| **dropped** | [**DatabaseFileStatusNewlyValue**](DatabaseFileStatusNewlyValue.md) | | [optional] |
|
|
10
|
+
| **database_updates** | **Object** | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'whoisfreaks'
|
|
16
|
+
|
|
17
|
+
instance = WhoisFreaks::DatabaseFileStatus.new(
|
|
18
|
+
newly: null,
|
|
19
|
+
expired: null,
|
|
20
|
+
dropped: null,
|
|
21
|
+
database_updates: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WhoisFreaks::DatabaseFileStatusNewlyValue
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **last_update** | **String** | | [optional] |
|
|
8
|
+
| **available_from** | **String** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'whoisfreaks'
|
|
14
|
+
|
|
15
|
+
instance = WhoisFreaks::DatabaseFileStatusNewlyValue.new(
|
|
16
|
+
last_update: null,
|
|
17
|
+
available_from: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|