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,153 @@
|
|
|
1
|
+
# WhoisFreaks::DatabasesASNWHOISApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.whoisfreaks.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**db_asn_whois**](DatabasesASNWHOISApi.md#db_asn_whois) | **GET** /v3.3/download/snapshot/asn/whois | ASN WHOIS Snapshot |
|
|
8
|
+
| [**db_asn_whois_status**](DatabasesASNWHOISApi.md#db_asn_whois_status) | **GET** /v3.3/status/snapshot/asn/whois | ASN WHOIS Snapshot Status |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## db_asn_whois
|
|
12
|
+
|
|
13
|
+
> Object db_asn_whois(api_key, date)
|
|
14
|
+
|
|
15
|
+
ASN WHOIS Snapshot
|
|
16
|
+
|
|
17
|
+
ASN WHOIS Snapshot. Returns the file/snapshot described by this operation.
|
|
18
|
+
|
|
19
|
+
### Examples
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'time'
|
|
23
|
+
require 'whoisfreaks'
|
|
24
|
+
# setup authorization
|
|
25
|
+
WhoisFreaks.configure do |config|
|
|
26
|
+
# Configure API key authorization: ApiKeyAuth
|
|
27
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
28
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
29
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
api_instance = WhoisFreaks::DatabasesASNWHOISApi.new
|
|
33
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
34
|
+
date = Date.parse('2013-10-20') # Date |
|
|
35
|
+
|
|
36
|
+
begin
|
|
37
|
+
# ASN WHOIS Snapshot
|
|
38
|
+
result = api_instance.db_asn_whois(api_key, date)
|
|
39
|
+
p result
|
|
40
|
+
rescue WhoisFreaks::ApiError => e
|
|
41
|
+
puts "Error when calling DatabasesASNWHOISApi->db_asn_whois: #{e}"
|
|
42
|
+
end
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### Using the db_asn_whois_with_http_info variant
|
|
46
|
+
|
|
47
|
+
This returns an Array which contains the response data, status code and headers.
|
|
48
|
+
|
|
49
|
+
> <Array(Object, Integer, Hash)> db_asn_whois_with_http_info(api_key, date)
|
|
50
|
+
|
|
51
|
+
```ruby
|
|
52
|
+
begin
|
|
53
|
+
# ASN WHOIS Snapshot
|
|
54
|
+
data, status_code, headers = api_instance.db_asn_whois_with_http_info(api_key, date)
|
|
55
|
+
p status_code # => 2xx
|
|
56
|
+
p headers # => { ... }
|
|
57
|
+
p data # => Object
|
|
58
|
+
rescue WhoisFreaks::ApiError => e
|
|
59
|
+
puts "Error when calling DatabasesASNWHOISApi->db_asn_whois_with_http_info: #{e}"
|
|
60
|
+
end
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Parameters
|
|
64
|
+
|
|
65
|
+
| Name | Type | Description | Notes |
|
|
66
|
+
| ---- | ---- | ----------- | ----- |
|
|
67
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
68
|
+
| **date** | **Date** | | |
|
|
69
|
+
|
|
70
|
+
### Return type
|
|
71
|
+
|
|
72
|
+
**Object**
|
|
73
|
+
|
|
74
|
+
### Authorization
|
|
75
|
+
|
|
76
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
77
|
+
|
|
78
|
+
### HTTP request headers
|
|
79
|
+
|
|
80
|
+
- **Content-Type**: Not defined
|
|
81
|
+
- **Accept**: application/json
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## db_asn_whois_status
|
|
85
|
+
|
|
86
|
+
> <SnapshotStatus> db_asn_whois_status(api_key)
|
|
87
|
+
|
|
88
|
+
ASN WHOIS Snapshot Status
|
|
89
|
+
|
|
90
|
+
ASN WHOIS Snapshot Status. Returns the file/snapshot described by this operation.
|
|
91
|
+
|
|
92
|
+
### Examples
|
|
93
|
+
|
|
94
|
+
```ruby
|
|
95
|
+
require 'time'
|
|
96
|
+
require 'whoisfreaks'
|
|
97
|
+
# setup authorization
|
|
98
|
+
WhoisFreaks.configure do |config|
|
|
99
|
+
# Configure API key authorization: ApiKeyAuth
|
|
100
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
101
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
102
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
api_instance = WhoisFreaks::DatabasesASNWHOISApi.new
|
|
106
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
107
|
+
|
|
108
|
+
begin
|
|
109
|
+
# ASN WHOIS Snapshot Status
|
|
110
|
+
result = api_instance.db_asn_whois_status(api_key)
|
|
111
|
+
p result
|
|
112
|
+
rescue WhoisFreaks::ApiError => e
|
|
113
|
+
puts "Error when calling DatabasesASNWHOISApi->db_asn_whois_status: #{e}"
|
|
114
|
+
end
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
#### Using the db_asn_whois_status_with_http_info variant
|
|
118
|
+
|
|
119
|
+
This returns an Array which contains the response data, status code and headers.
|
|
120
|
+
|
|
121
|
+
> <Array(<SnapshotStatus>, Integer, Hash)> db_asn_whois_status_with_http_info(api_key)
|
|
122
|
+
|
|
123
|
+
```ruby
|
|
124
|
+
begin
|
|
125
|
+
# ASN WHOIS Snapshot Status
|
|
126
|
+
data, status_code, headers = api_instance.db_asn_whois_status_with_http_info(api_key)
|
|
127
|
+
p status_code # => 2xx
|
|
128
|
+
p headers # => { ... }
|
|
129
|
+
p data # => <SnapshotStatus>
|
|
130
|
+
rescue WhoisFreaks::ApiError => e
|
|
131
|
+
puts "Error when calling DatabasesASNWHOISApi->db_asn_whois_status_with_http_info: #{e}"
|
|
132
|
+
end
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Parameters
|
|
136
|
+
|
|
137
|
+
| Name | Type | Description | Notes |
|
|
138
|
+
| ---- | ---- | ----------- | ----- |
|
|
139
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
140
|
+
|
|
141
|
+
### Return type
|
|
142
|
+
|
|
143
|
+
[**SnapshotStatus**](SnapshotStatus.md)
|
|
144
|
+
|
|
145
|
+
### Authorization
|
|
146
|
+
|
|
147
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
148
|
+
|
|
149
|
+
### HTTP request headers
|
|
150
|
+
|
|
151
|
+
- **Content-Type**: Not defined
|
|
152
|
+
- **Accept**: application/json
|
|
153
|
+
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
# WhoisFreaks::DatabasesDNSApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.whoisfreaks.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**db_dns_daily**](DatabasesDNSApi.md#db_dns_daily) | **GET** /v3.2/download/dbupdate/daily/dns | DNS Database Daily |
|
|
8
|
+
| [**db_dns_monthly**](DatabasesDNSApi.md#db_dns_monthly) | **GET** /v3.2/download/dbupdate/monthly/dns | DNS Database Monthly |
|
|
9
|
+
| [**db_dns_weekly**](DatabasesDNSApi.md#db_dns_weekly) | **GET** /v3.2/download/dbupdate/weekly/dns | DNS Database Weekly |
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## db_dns_daily
|
|
13
|
+
|
|
14
|
+
> String db_dns_daily(api_key, opts)
|
|
15
|
+
|
|
16
|
+
DNS Database Daily
|
|
17
|
+
|
|
18
|
+
DNS Database Daily. Returns the file/snapshot described by this operation.
|
|
19
|
+
|
|
20
|
+
### Examples
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
require 'time'
|
|
24
|
+
require 'whoisfreaks'
|
|
25
|
+
# setup authorization
|
|
26
|
+
WhoisFreaks.configure do |config|
|
|
27
|
+
# Configure API key authorization: ApiKeyAuth
|
|
28
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
29
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
30
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
api_instance = WhoisFreaks::DatabasesDNSApi.new
|
|
34
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
35
|
+
opts = {
|
|
36
|
+
date: Date.parse('2013-10-20') # Date | yyyy-MM-dd; omit for latest
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
begin
|
|
40
|
+
# DNS Database Daily
|
|
41
|
+
result = api_instance.db_dns_daily(api_key, opts)
|
|
42
|
+
p result
|
|
43
|
+
rescue WhoisFreaks::ApiError => e
|
|
44
|
+
puts "Error when calling DatabasesDNSApi->db_dns_daily: #{e}"
|
|
45
|
+
end
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
#### Using the db_dns_daily_with_http_info variant
|
|
49
|
+
|
|
50
|
+
This returns an Array which contains the response data, status code and headers.
|
|
51
|
+
|
|
52
|
+
> <Array(String, Integer, Hash)> db_dns_daily_with_http_info(api_key, opts)
|
|
53
|
+
|
|
54
|
+
```ruby
|
|
55
|
+
begin
|
|
56
|
+
# DNS Database Daily
|
|
57
|
+
data, status_code, headers = api_instance.db_dns_daily_with_http_info(api_key, opts)
|
|
58
|
+
p status_code # => 2xx
|
|
59
|
+
p headers # => { ... }
|
|
60
|
+
p data # => String
|
|
61
|
+
rescue WhoisFreaks::ApiError => e
|
|
62
|
+
puts "Error when calling DatabasesDNSApi->db_dns_daily_with_http_info: #{e}"
|
|
63
|
+
end
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Parameters
|
|
67
|
+
|
|
68
|
+
| Name | Type | Description | Notes |
|
|
69
|
+
| ---- | ---- | ----------- | ----- |
|
|
70
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
71
|
+
| **date** | **Date** | yyyy-MM-dd; omit for latest | [optional] |
|
|
72
|
+
|
|
73
|
+
### Return type
|
|
74
|
+
|
|
75
|
+
**String**
|
|
76
|
+
|
|
77
|
+
### Authorization
|
|
78
|
+
|
|
79
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
80
|
+
|
|
81
|
+
### HTTP request headers
|
|
82
|
+
|
|
83
|
+
- **Content-Type**: Not defined
|
|
84
|
+
- **Accept**: text/csv, application/json
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## db_dns_monthly
|
|
88
|
+
|
|
89
|
+
> String db_dns_monthly(api_key, opts)
|
|
90
|
+
|
|
91
|
+
DNS Database Monthly
|
|
92
|
+
|
|
93
|
+
DNS Database Monthly. Returns the file/snapshot described by this operation.
|
|
94
|
+
|
|
95
|
+
### Examples
|
|
96
|
+
|
|
97
|
+
```ruby
|
|
98
|
+
require 'time'
|
|
99
|
+
require 'whoisfreaks'
|
|
100
|
+
# setup authorization
|
|
101
|
+
WhoisFreaks.configure do |config|
|
|
102
|
+
# Configure API key authorization: ApiKeyAuth
|
|
103
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
104
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
105
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
api_instance = WhoisFreaks::DatabasesDNSApi.new
|
|
109
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
110
|
+
opts = {
|
|
111
|
+
date: Date.parse('2013-10-20') # Date | yyyy-MM-dd; omit for latest
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
begin
|
|
115
|
+
# DNS Database Monthly
|
|
116
|
+
result = api_instance.db_dns_monthly(api_key, opts)
|
|
117
|
+
p result
|
|
118
|
+
rescue WhoisFreaks::ApiError => e
|
|
119
|
+
puts "Error when calling DatabasesDNSApi->db_dns_monthly: #{e}"
|
|
120
|
+
end
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
#### Using the db_dns_monthly_with_http_info variant
|
|
124
|
+
|
|
125
|
+
This returns an Array which contains the response data, status code and headers.
|
|
126
|
+
|
|
127
|
+
> <Array(String, Integer, Hash)> db_dns_monthly_with_http_info(api_key, opts)
|
|
128
|
+
|
|
129
|
+
```ruby
|
|
130
|
+
begin
|
|
131
|
+
# DNS Database Monthly
|
|
132
|
+
data, status_code, headers = api_instance.db_dns_monthly_with_http_info(api_key, opts)
|
|
133
|
+
p status_code # => 2xx
|
|
134
|
+
p headers # => { ... }
|
|
135
|
+
p data # => String
|
|
136
|
+
rescue WhoisFreaks::ApiError => e
|
|
137
|
+
puts "Error when calling DatabasesDNSApi->db_dns_monthly_with_http_info: #{e}"
|
|
138
|
+
end
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Parameters
|
|
142
|
+
|
|
143
|
+
| Name | Type | Description | Notes |
|
|
144
|
+
| ---- | ---- | ----------- | ----- |
|
|
145
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
146
|
+
| **date** | **Date** | yyyy-MM-dd; omit for latest | [optional] |
|
|
147
|
+
|
|
148
|
+
### Return type
|
|
149
|
+
|
|
150
|
+
**String**
|
|
151
|
+
|
|
152
|
+
### Authorization
|
|
153
|
+
|
|
154
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
155
|
+
|
|
156
|
+
### HTTP request headers
|
|
157
|
+
|
|
158
|
+
- **Content-Type**: Not defined
|
|
159
|
+
- **Accept**: text/csv, application/json
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## db_dns_weekly
|
|
163
|
+
|
|
164
|
+
> String db_dns_weekly(api_key, opts)
|
|
165
|
+
|
|
166
|
+
DNS Database Weekly
|
|
167
|
+
|
|
168
|
+
DNS Database Weekly. Returns the file/snapshot described by this operation.
|
|
169
|
+
|
|
170
|
+
### Examples
|
|
171
|
+
|
|
172
|
+
```ruby
|
|
173
|
+
require 'time'
|
|
174
|
+
require 'whoisfreaks'
|
|
175
|
+
# setup authorization
|
|
176
|
+
WhoisFreaks.configure do |config|
|
|
177
|
+
# Configure API key authorization: ApiKeyAuth
|
|
178
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
179
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
180
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
api_instance = WhoisFreaks::DatabasesDNSApi.new
|
|
184
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
185
|
+
opts = {
|
|
186
|
+
date: Date.parse('2013-10-20') # Date | yyyy-MM-dd; omit for latest
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
begin
|
|
190
|
+
# DNS Database Weekly
|
|
191
|
+
result = api_instance.db_dns_weekly(api_key, opts)
|
|
192
|
+
p result
|
|
193
|
+
rescue WhoisFreaks::ApiError => e
|
|
194
|
+
puts "Error when calling DatabasesDNSApi->db_dns_weekly: #{e}"
|
|
195
|
+
end
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
#### Using the db_dns_weekly_with_http_info variant
|
|
199
|
+
|
|
200
|
+
This returns an Array which contains the response data, status code and headers.
|
|
201
|
+
|
|
202
|
+
> <Array(String, Integer, Hash)> db_dns_weekly_with_http_info(api_key, opts)
|
|
203
|
+
|
|
204
|
+
```ruby
|
|
205
|
+
begin
|
|
206
|
+
# DNS Database Weekly
|
|
207
|
+
data, status_code, headers = api_instance.db_dns_weekly_with_http_info(api_key, opts)
|
|
208
|
+
p status_code # => 2xx
|
|
209
|
+
p headers # => { ... }
|
|
210
|
+
p data # => String
|
|
211
|
+
rescue WhoisFreaks::ApiError => e
|
|
212
|
+
puts "Error when calling DatabasesDNSApi->db_dns_weekly_with_http_info: #{e}"
|
|
213
|
+
end
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Parameters
|
|
217
|
+
|
|
218
|
+
| Name | Type | Description | Notes |
|
|
219
|
+
| ---- | ---- | ----------- | ----- |
|
|
220
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
221
|
+
| **date** | **Date** | yyyy-MM-dd; omit for latest | [optional] |
|
|
222
|
+
|
|
223
|
+
### Return type
|
|
224
|
+
|
|
225
|
+
**String**
|
|
226
|
+
|
|
227
|
+
### Authorization
|
|
228
|
+
|
|
229
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
230
|
+
|
|
231
|
+
### HTTP request headers
|
|
232
|
+
|
|
233
|
+
- **Content-Type**: Not defined
|
|
234
|
+
- **Accept**: text/csv, application/json
|
|
235
|
+
|