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,395 @@
|
|
|
1
|
+
# WhoisFreaks::DatabasesExpiringDroppedApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.whoisfreaks.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**db_dropped**](DatabasesExpiringDroppedApi.md#db_dropped) | **GET** /v3.1/download/domainer/dropped | Dropped Domains |
|
|
8
|
+
| [**db_dropped_backlinks**](DatabasesExpiringDroppedApi.md#db_dropped_backlinks) | **GET** /v3.3/download/domainer/dropped/backlinks | Dropped With Backlinks |
|
|
9
|
+
| [**db_dropped_json**](DatabasesExpiringDroppedApi.md#db_dropped_json) | **GET** /v3.1/domains/dropped | Dropped Domains (JSON) |
|
|
10
|
+
| [**db_expired**](DatabasesExpiringDroppedApi.md#db_expired) | **GET** /v3.1/download/domainer/expired | Expiring Domains |
|
|
11
|
+
| [**db_expired_cleaned**](DatabasesExpiringDroppedApi.md#db_expired_cleaned) | **GET** /v3.1/download/domainer/expired/cleaned | Expiring Cleaned WHOIS |
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## db_dropped
|
|
15
|
+
|
|
16
|
+
> String db_dropped(api_key, whois, opts)
|
|
17
|
+
|
|
18
|
+
Dropped Domains
|
|
19
|
+
|
|
20
|
+
Dropped Domains. Returns the file/snapshot described by this operation.
|
|
21
|
+
|
|
22
|
+
### Examples
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
require 'time'
|
|
26
|
+
require 'whoisfreaks'
|
|
27
|
+
# setup authorization
|
|
28
|
+
WhoisFreaks.configure do |config|
|
|
29
|
+
# Configure API key authorization: ApiKeyAuth
|
|
30
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
31
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
32
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
api_instance = WhoisFreaks::DatabasesExpiringDroppedApi.new
|
|
36
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
37
|
+
whois = true # Boolean |
|
|
38
|
+
opts = {
|
|
39
|
+
date: Date.parse('2013-10-20') # Date | yyyy-MM-dd; omit for latest
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
begin
|
|
43
|
+
# Dropped Domains
|
|
44
|
+
result = api_instance.db_dropped(api_key, whois, opts)
|
|
45
|
+
p result
|
|
46
|
+
rescue WhoisFreaks::ApiError => e
|
|
47
|
+
puts "Error when calling DatabasesExpiringDroppedApi->db_dropped: #{e}"
|
|
48
|
+
end
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### Using the db_dropped_with_http_info variant
|
|
52
|
+
|
|
53
|
+
This returns an Array which contains the response data, status code and headers.
|
|
54
|
+
|
|
55
|
+
> <Array(String, Integer, Hash)> db_dropped_with_http_info(api_key, whois, opts)
|
|
56
|
+
|
|
57
|
+
```ruby
|
|
58
|
+
begin
|
|
59
|
+
# Dropped Domains
|
|
60
|
+
data, status_code, headers = api_instance.db_dropped_with_http_info(api_key, whois, opts)
|
|
61
|
+
p status_code # => 2xx
|
|
62
|
+
p headers # => { ... }
|
|
63
|
+
p data # => String
|
|
64
|
+
rescue WhoisFreaks::ApiError => e
|
|
65
|
+
puts "Error when calling DatabasesExpiringDroppedApi->db_dropped_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
|
+
| **whois** | **Boolean** | | |
|
|
75
|
+
| **date** | **Date** | yyyy-MM-dd; omit for latest | [optional] |
|
|
76
|
+
|
|
77
|
+
### Return type
|
|
78
|
+
|
|
79
|
+
**String**
|
|
80
|
+
|
|
81
|
+
### Authorization
|
|
82
|
+
|
|
83
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
84
|
+
|
|
85
|
+
### HTTP request headers
|
|
86
|
+
|
|
87
|
+
- **Content-Type**: Not defined
|
|
88
|
+
- **Accept**: text/csv, application/json
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
## db_dropped_backlinks
|
|
92
|
+
|
|
93
|
+
> String db_dropped_backlinks(api_key, opts)
|
|
94
|
+
|
|
95
|
+
Dropped With Backlinks
|
|
96
|
+
|
|
97
|
+
Dropped With Backlinks. Returns the file/snapshot described by this operation.
|
|
98
|
+
|
|
99
|
+
### Examples
|
|
100
|
+
|
|
101
|
+
```ruby
|
|
102
|
+
require 'time'
|
|
103
|
+
require 'whoisfreaks'
|
|
104
|
+
# setup authorization
|
|
105
|
+
WhoisFreaks.configure do |config|
|
|
106
|
+
# Configure API key authorization: ApiKeyAuth
|
|
107
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
108
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
109
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
api_instance = WhoisFreaks::DatabasesExpiringDroppedApi.new
|
|
113
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
114
|
+
opts = {
|
|
115
|
+
whois: true, # Boolean |
|
|
116
|
+
date: Date.parse('2013-10-20') # Date | yyyy-MM-dd; omit for latest
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
begin
|
|
120
|
+
# Dropped With Backlinks
|
|
121
|
+
result = api_instance.db_dropped_backlinks(api_key, opts)
|
|
122
|
+
p result
|
|
123
|
+
rescue WhoisFreaks::ApiError => e
|
|
124
|
+
puts "Error when calling DatabasesExpiringDroppedApi->db_dropped_backlinks: #{e}"
|
|
125
|
+
end
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
#### Using the db_dropped_backlinks_with_http_info variant
|
|
129
|
+
|
|
130
|
+
This returns an Array which contains the response data, status code and headers.
|
|
131
|
+
|
|
132
|
+
> <Array(String, Integer, Hash)> db_dropped_backlinks_with_http_info(api_key, opts)
|
|
133
|
+
|
|
134
|
+
```ruby
|
|
135
|
+
begin
|
|
136
|
+
# Dropped With Backlinks
|
|
137
|
+
data, status_code, headers = api_instance.db_dropped_backlinks_with_http_info(api_key, opts)
|
|
138
|
+
p status_code # => 2xx
|
|
139
|
+
p headers # => { ... }
|
|
140
|
+
p data # => String
|
|
141
|
+
rescue WhoisFreaks::ApiError => e
|
|
142
|
+
puts "Error when calling DatabasesExpiringDroppedApi->db_dropped_backlinks_with_http_info: #{e}"
|
|
143
|
+
end
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Parameters
|
|
147
|
+
|
|
148
|
+
| Name | Type | Description | Notes |
|
|
149
|
+
| ---- | ---- | ----------- | ----- |
|
|
150
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
151
|
+
| **whois** | **Boolean** | | [optional] |
|
|
152
|
+
| **date** | **Date** | yyyy-MM-dd; omit for latest | [optional] |
|
|
153
|
+
|
|
154
|
+
### Return type
|
|
155
|
+
|
|
156
|
+
**String**
|
|
157
|
+
|
|
158
|
+
### Authorization
|
|
159
|
+
|
|
160
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
161
|
+
|
|
162
|
+
### HTTP request headers
|
|
163
|
+
|
|
164
|
+
- **Content-Type**: Not defined
|
|
165
|
+
- **Accept**: text/csv, application/json
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
## db_dropped_json
|
|
169
|
+
|
|
170
|
+
> Array<String> db_dropped_json(api_key, opts)
|
|
171
|
+
|
|
172
|
+
Dropped Domains (JSON)
|
|
173
|
+
|
|
174
|
+
Dropped Domains (JSON). Returns the file/snapshot described by this operation.
|
|
175
|
+
|
|
176
|
+
### Examples
|
|
177
|
+
|
|
178
|
+
```ruby
|
|
179
|
+
require 'time'
|
|
180
|
+
require 'whoisfreaks'
|
|
181
|
+
# setup authorization
|
|
182
|
+
WhoisFreaks.configure do |config|
|
|
183
|
+
# Configure API key authorization: ApiKeyAuth
|
|
184
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
185
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
186
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
api_instance = WhoisFreaks::DatabasesExpiringDroppedApi.new
|
|
190
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
191
|
+
opts = {
|
|
192
|
+
date: Date.parse('2013-10-20'), # Date | yyyy-MM-dd; omit for latest
|
|
193
|
+
tlds: 'tlds_example' # String |
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
begin
|
|
197
|
+
# Dropped Domains (JSON)
|
|
198
|
+
result = api_instance.db_dropped_json(api_key, opts)
|
|
199
|
+
p result
|
|
200
|
+
rescue WhoisFreaks::ApiError => e
|
|
201
|
+
puts "Error when calling DatabasesExpiringDroppedApi->db_dropped_json: #{e}"
|
|
202
|
+
end
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
#### Using the db_dropped_json_with_http_info variant
|
|
206
|
+
|
|
207
|
+
This returns an Array which contains the response data, status code and headers.
|
|
208
|
+
|
|
209
|
+
> <Array(Array<String>, Integer, Hash)> db_dropped_json_with_http_info(api_key, opts)
|
|
210
|
+
|
|
211
|
+
```ruby
|
|
212
|
+
begin
|
|
213
|
+
# Dropped Domains (JSON)
|
|
214
|
+
data, status_code, headers = api_instance.db_dropped_json_with_http_info(api_key, opts)
|
|
215
|
+
p status_code # => 2xx
|
|
216
|
+
p headers # => { ... }
|
|
217
|
+
p data # => Array<String>
|
|
218
|
+
rescue WhoisFreaks::ApiError => e
|
|
219
|
+
puts "Error when calling DatabasesExpiringDroppedApi->db_dropped_json_with_http_info: #{e}"
|
|
220
|
+
end
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### Parameters
|
|
224
|
+
|
|
225
|
+
| Name | Type | Description | Notes |
|
|
226
|
+
| ---- | ---- | ----------- | ----- |
|
|
227
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
228
|
+
| **date** | **Date** | yyyy-MM-dd; omit for latest | [optional] |
|
|
229
|
+
| **tlds** | **String** | | [optional] |
|
|
230
|
+
|
|
231
|
+
### Return type
|
|
232
|
+
|
|
233
|
+
**Array<String>**
|
|
234
|
+
|
|
235
|
+
### Authorization
|
|
236
|
+
|
|
237
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
238
|
+
|
|
239
|
+
### HTTP request headers
|
|
240
|
+
|
|
241
|
+
- **Content-Type**: Not defined
|
|
242
|
+
- **Accept**: application/json
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
## db_expired
|
|
246
|
+
|
|
247
|
+
> String db_expired(api_key, whois, opts)
|
|
248
|
+
|
|
249
|
+
Expiring Domains
|
|
250
|
+
|
|
251
|
+
Expiring Domains. Returns the file/snapshot described by this operation.
|
|
252
|
+
|
|
253
|
+
### Examples
|
|
254
|
+
|
|
255
|
+
```ruby
|
|
256
|
+
require 'time'
|
|
257
|
+
require 'whoisfreaks'
|
|
258
|
+
# setup authorization
|
|
259
|
+
WhoisFreaks.configure do |config|
|
|
260
|
+
# Configure API key authorization: ApiKeyAuth
|
|
261
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
262
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
263
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
api_instance = WhoisFreaks::DatabasesExpiringDroppedApi.new
|
|
267
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
268
|
+
whois = true # Boolean |
|
|
269
|
+
opts = {
|
|
270
|
+
date: Date.parse('2013-10-20') # Date | yyyy-MM-dd; omit for latest
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
begin
|
|
274
|
+
# Expiring Domains
|
|
275
|
+
result = api_instance.db_expired(api_key, whois, opts)
|
|
276
|
+
p result
|
|
277
|
+
rescue WhoisFreaks::ApiError => e
|
|
278
|
+
puts "Error when calling DatabasesExpiringDroppedApi->db_expired: #{e}"
|
|
279
|
+
end
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
#### Using the db_expired_with_http_info variant
|
|
283
|
+
|
|
284
|
+
This returns an Array which contains the response data, status code and headers.
|
|
285
|
+
|
|
286
|
+
> <Array(String, Integer, Hash)> db_expired_with_http_info(api_key, whois, opts)
|
|
287
|
+
|
|
288
|
+
```ruby
|
|
289
|
+
begin
|
|
290
|
+
# Expiring Domains
|
|
291
|
+
data, status_code, headers = api_instance.db_expired_with_http_info(api_key, whois, opts)
|
|
292
|
+
p status_code # => 2xx
|
|
293
|
+
p headers # => { ... }
|
|
294
|
+
p data # => String
|
|
295
|
+
rescue WhoisFreaks::ApiError => e
|
|
296
|
+
puts "Error when calling DatabasesExpiringDroppedApi->db_expired_with_http_info: #{e}"
|
|
297
|
+
end
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
### Parameters
|
|
301
|
+
|
|
302
|
+
| Name | Type | Description | Notes |
|
|
303
|
+
| ---- | ---- | ----------- | ----- |
|
|
304
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
305
|
+
| **whois** | **Boolean** | | |
|
|
306
|
+
| **date** | **Date** | yyyy-MM-dd; omit for latest | [optional] |
|
|
307
|
+
|
|
308
|
+
### Return type
|
|
309
|
+
|
|
310
|
+
**String**
|
|
311
|
+
|
|
312
|
+
### Authorization
|
|
313
|
+
|
|
314
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
315
|
+
|
|
316
|
+
### HTTP request headers
|
|
317
|
+
|
|
318
|
+
- **Content-Type**: Not defined
|
|
319
|
+
- **Accept**: text/csv, application/json
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
## db_expired_cleaned
|
|
323
|
+
|
|
324
|
+
> String db_expired_cleaned(api_key, opts)
|
|
325
|
+
|
|
326
|
+
Expiring Cleaned WHOIS
|
|
327
|
+
|
|
328
|
+
Expiring Cleaned WHOIS. Returns the file/snapshot described by this operation.
|
|
329
|
+
|
|
330
|
+
### Examples
|
|
331
|
+
|
|
332
|
+
```ruby
|
|
333
|
+
require 'time'
|
|
334
|
+
require 'whoisfreaks'
|
|
335
|
+
# setup authorization
|
|
336
|
+
WhoisFreaks.configure do |config|
|
|
337
|
+
# Configure API key authorization: ApiKeyAuth
|
|
338
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
339
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
340
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
api_instance = WhoisFreaks::DatabasesExpiringDroppedApi.new
|
|
344
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
345
|
+
opts = {
|
|
346
|
+
date: Date.parse('2013-10-20') # Date | yyyy-MM-dd; omit for latest
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
begin
|
|
350
|
+
# Expiring Cleaned WHOIS
|
|
351
|
+
result = api_instance.db_expired_cleaned(api_key, opts)
|
|
352
|
+
p result
|
|
353
|
+
rescue WhoisFreaks::ApiError => e
|
|
354
|
+
puts "Error when calling DatabasesExpiringDroppedApi->db_expired_cleaned: #{e}"
|
|
355
|
+
end
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
#### Using the db_expired_cleaned_with_http_info variant
|
|
359
|
+
|
|
360
|
+
This returns an Array which contains the response data, status code and headers.
|
|
361
|
+
|
|
362
|
+
> <Array(String, Integer, Hash)> db_expired_cleaned_with_http_info(api_key, opts)
|
|
363
|
+
|
|
364
|
+
```ruby
|
|
365
|
+
begin
|
|
366
|
+
# Expiring Cleaned WHOIS
|
|
367
|
+
data, status_code, headers = api_instance.db_expired_cleaned_with_http_info(api_key, opts)
|
|
368
|
+
p status_code # => 2xx
|
|
369
|
+
p headers # => { ... }
|
|
370
|
+
p data # => String
|
|
371
|
+
rescue WhoisFreaks::ApiError => e
|
|
372
|
+
puts "Error when calling DatabasesExpiringDroppedApi->db_expired_cleaned_with_http_info: #{e}"
|
|
373
|
+
end
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
### Parameters
|
|
377
|
+
|
|
378
|
+
| Name | Type | Description | Notes |
|
|
379
|
+
| ---- | ---- | ----------- | ----- |
|
|
380
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
381
|
+
| **date** | **Date** | yyyy-MM-dd; omit for latest | [optional] |
|
|
382
|
+
|
|
383
|
+
### Return type
|
|
384
|
+
|
|
385
|
+
**String**
|
|
386
|
+
|
|
387
|
+
### Authorization
|
|
388
|
+
|
|
389
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
390
|
+
|
|
391
|
+
### HTTP request headers
|
|
392
|
+
|
|
393
|
+
- **Content-Type**: Not defined
|
|
394
|
+
- **Accept**: text/csv, application/json
|
|
395
|
+
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
# WhoisFreaks::DatabasesIPGeolocationApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.whoisfreaks.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**db_ip_city**](DatabasesIPGeolocationApi.md#db_ip_city) | **GET** /v3.3/download/snapshot/ip/city | IP to City Snapshot |
|
|
8
|
+
| [**db_ip_city_status**](DatabasesIPGeolocationApi.md#db_ip_city_status) | **GET** /v3.3/status/snapshot/ip/city | IP to City Snapshot Status |
|
|
9
|
+
| [**db_ip_country**](DatabasesIPGeolocationApi.md#db_ip_country) | **GET** /v3.3/download/snapshot/ip/country | IP to Country Snapshot |
|
|
10
|
+
| [**db_ip_country_status**](DatabasesIPGeolocationApi.md#db_ip_country_status) | **GET** /v3.3/status/snapshot/ip/country | IP to Country Snapshot Status |
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## db_ip_city
|
|
14
|
+
|
|
15
|
+
> File db_ip_city(api_key, date)
|
|
16
|
+
|
|
17
|
+
IP to City Snapshot
|
|
18
|
+
|
|
19
|
+
IP to City Snapshot. Returns the file/snapshot described by this operation.
|
|
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::DatabasesIPGeolocationApi.new
|
|
35
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
36
|
+
date = Date.parse('2013-10-20') # Date |
|
|
37
|
+
|
|
38
|
+
begin
|
|
39
|
+
# IP to City Snapshot
|
|
40
|
+
result = api_instance.db_ip_city(api_key, date)
|
|
41
|
+
p result
|
|
42
|
+
rescue WhoisFreaks::ApiError => e
|
|
43
|
+
puts "Error when calling DatabasesIPGeolocationApi->db_ip_city: #{e}"
|
|
44
|
+
end
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### Using the db_ip_city_with_http_info variant
|
|
48
|
+
|
|
49
|
+
This returns an Array which contains the response data, status code and headers.
|
|
50
|
+
|
|
51
|
+
> <Array(File, Integer, Hash)> db_ip_city_with_http_info(api_key, date)
|
|
52
|
+
|
|
53
|
+
```ruby
|
|
54
|
+
begin
|
|
55
|
+
# IP to City Snapshot
|
|
56
|
+
data, status_code, headers = api_instance.db_ip_city_with_http_info(api_key, date)
|
|
57
|
+
p status_code # => 2xx
|
|
58
|
+
p headers # => { ... }
|
|
59
|
+
p data # => File
|
|
60
|
+
rescue WhoisFreaks::ApiError => e
|
|
61
|
+
puts "Error when calling DatabasesIPGeolocationApi->db_ip_city_with_http_info: #{e}"
|
|
62
|
+
end
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Parameters
|
|
66
|
+
|
|
67
|
+
| Name | Type | Description | Notes |
|
|
68
|
+
| ---- | ---- | ----------- | ----- |
|
|
69
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
70
|
+
| **date** | **Date** | | |
|
|
71
|
+
|
|
72
|
+
### Return type
|
|
73
|
+
|
|
74
|
+
**File**
|
|
75
|
+
|
|
76
|
+
### Authorization
|
|
77
|
+
|
|
78
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
79
|
+
|
|
80
|
+
### HTTP request headers
|
|
81
|
+
|
|
82
|
+
- **Content-Type**: Not defined
|
|
83
|
+
- **Accept**: application/zip, application/json
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## db_ip_city_status
|
|
87
|
+
|
|
88
|
+
> <SnapshotStatus> db_ip_city_status(api_key)
|
|
89
|
+
|
|
90
|
+
IP to City Snapshot Status
|
|
91
|
+
|
|
92
|
+
IP to City Snapshot Status. Returns the file/snapshot described by this operation.
|
|
93
|
+
|
|
94
|
+
### Examples
|
|
95
|
+
|
|
96
|
+
```ruby
|
|
97
|
+
require 'time'
|
|
98
|
+
require 'whoisfreaks'
|
|
99
|
+
# setup authorization
|
|
100
|
+
WhoisFreaks.configure do |config|
|
|
101
|
+
# Configure API key authorization: ApiKeyAuth
|
|
102
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
103
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
104
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
api_instance = WhoisFreaks::DatabasesIPGeolocationApi.new
|
|
108
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
109
|
+
|
|
110
|
+
begin
|
|
111
|
+
# IP to City Snapshot Status
|
|
112
|
+
result = api_instance.db_ip_city_status(api_key)
|
|
113
|
+
p result
|
|
114
|
+
rescue WhoisFreaks::ApiError => e
|
|
115
|
+
puts "Error when calling DatabasesIPGeolocationApi->db_ip_city_status: #{e}"
|
|
116
|
+
end
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
#### Using the db_ip_city_status_with_http_info variant
|
|
120
|
+
|
|
121
|
+
This returns an Array which contains the response data, status code and headers.
|
|
122
|
+
|
|
123
|
+
> <Array(<SnapshotStatus>, Integer, Hash)> db_ip_city_status_with_http_info(api_key)
|
|
124
|
+
|
|
125
|
+
```ruby
|
|
126
|
+
begin
|
|
127
|
+
# IP to City Snapshot Status
|
|
128
|
+
data, status_code, headers = api_instance.db_ip_city_status_with_http_info(api_key)
|
|
129
|
+
p status_code # => 2xx
|
|
130
|
+
p headers # => { ... }
|
|
131
|
+
p data # => <SnapshotStatus>
|
|
132
|
+
rescue WhoisFreaks::ApiError => e
|
|
133
|
+
puts "Error when calling DatabasesIPGeolocationApi->db_ip_city_status_with_http_info: #{e}"
|
|
134
|
+
end
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Parameters
|
|
138
|
+
|
|
139
|
+
| Name | Type | Description | Notes |
|
|
140
|
+
| ---- | ---- | ----------- | ----- |
|
|
141
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
142
|
+
|
|
143
|
+
### Return type
|
|
144
|
+
|
|
145
|
+
[**SnapshotStatus**](SnapshotStatus.md)
|
|
146
|
+
|
|
147
|
+
### Authorization
|
|
148
|
+
|
|
149
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
150
|
+
|
|
151
|
+
### HTTP request headers
|
|
152
|
+
|
|
153
|
+
- **Content-Type**: Not defined
|
|
154
|
+
- **Accept**: application/json
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
## db_ip_country
|
|
158
|
+
|
|
159
|
+
> File db_ip_country(api_key, date)
|
|
160
|
+
|
|
161
|
+
IP to Country Snapshot
|
|
162
|
+
|
|
163
|
+
IP to Country Snapshot. Returns the file/snapshot described by this operation.
|
|
164
|
+
|
|
165
|
+
### Examples
|
|
166
|
+
|
|
167
|
+
```ruby
|
|
168
|
+
require 'time'
|
|
169
|
+
require 'whoisfreaks'
|
|
170
|
+
# setup authorization
|
|
171
|
+
WhoisFreaks.configure do |config|
|
|
172
|
+
# Configure API key authorization: ApiKeyAuth
|
|
173
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
174
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
175
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
api_instance = WhoisFreaks::DatabasesIPGeolocationApi.new
|
|
179
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
180
|
+
date = Date.parse('2013-10-20') # Date |
|
|
181
|
+
|
|
182
|
+
begin
|
|
183
|
+
# IP to Country Snapshot
|
|
184
|
+
result = api_instance.db_ip_country(api_key, date)
|
|
185
|
+
p result
|
|
186
|
+
rescue WhoisFreaks::ApiError => e
|
|
187
|
+
puts "Error when calling DatabasesIPGeolocationApi->db_ip_country: #{e}"
|
|
188
|
+
end
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
#### Using the db_ip_country_with_http_info variant
|
|
192
|
+
|
|
193
|
+
This returns an Array which contains the response data, status code and headers.
|
|
194
|
+
|
|
195
|
+
> <Array(File, Integer, Hash)> db_ip_country_with_http_info(api_key, date)
|
|
196
|
+
|
|
197
|
+
```ruby
|
|
198
|
+
begin
|
|
199
|
+
# IP to Country Snapshot
|
|
200
|
+
data, status_code, headers = api_instance.db_ip_country_with_http_info(api_key, date)
|
|
201
|
+
p status_code # => 2xx
|
|
202
|
+
p headers # => { ... }
|
|
203
|
+
p data # => File
|
|
204
|
+
rescue WhoisFreaks::ApiError => e
|
|
205
|
+
puts "Error when calling DatabasesIPGeolocationApi->db_ip_country_with_http_info: #{e}"
|
|
206
|
+
end
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### Parameters
|
|
210
|
+
|
|
211
|
+
| Name | Type | Description | Notes |
|
|
212
|
+
| ---- | ---- | ----------- | ----- |
|
|
213
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
214
|
+
| **date** | **Date** | | |
|
|
215
|
+
|
|
216
|
+
### Return type
|
|
217
|
+
|
|
218
|
+
**File**
|
|
219
|
+
|
|
220
|
+
### Authorization
|
|
221
|
+
|
|
222
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
223
|
+
|
|
224
|
+
### HTTP request headers
|
|
225
|
+
|
|
226
|
+
- **Content-Type**: Not defined
|
|
227
|
+
- **Accept**: application/zip, application/json
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
## db_ip_country_status
|
|
231
|
+
|
|
232
|
+
> <SnapshotStatus> db_ip_country_status(api_key)
|
|
233
|
+
|
|
234
|
+
IP to Country Snapshot Status
|
|
235
|
+
|
|
236
|
+
IP to Country Snapshot Status. Returns the file/snapshot described by this operation.
|
|
237
|
+
|
|
238
|
+
### Examples
|
|
239
|
+
|
|
240
|
+
```ruby
|
|
241
|
+
require 'time'
|
|
242
|
+
require 'whoisfreaks'
|
|
243
|
+
# setup authorization
|
|
244
|
+
WhoisFreaks.configure do |config|
|
|
245
|
+
# Configure API key authorization: ApiKeyAuth
|
|
246
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
247
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
248
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
api_instance = WhoisFreaks::DatabasesIPGeolocationApi.new
|
|
252
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
253
|
+
|
|
254
|
+
begin
|
|
255
|
+
# IP to Country Snapshot Status
|
|
256
|
+
result = api_instance.db_ip_country_status(api_key)
|
|
257
|
+
p result
|
|
258
|
+
rescue WhoisFreaks::ApiError => e
|
|
259
|
+
puts "Error when calling DatabasesIPGeolocationApi->db_ip_country_status: #{e}"
|
|
260
|
+
end
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
#### Using the db_ip_country_status_with_http_info variant
|
|
264
|
+
|
|
265
|
+
This returns an Array which contains the response data, status code and headers.
|
|
266
|
+
|
|
267
|
+
> <Array(<SnapshotStatus>, Integer, Hash)> db_ip_country_status_with_http_info(api_key)
|
|
268
|
+
|
|
269
|
+
```ruby
|
|
270
|
+
begin
|
|
271
|
+
# IP to Country Snapshot Status
|
|
272
|
+
data, status_code, headers = api_instance.db_ip_country_status_with_http_info(api_key)
|
|
273
|
+
p status_code # => 2xx
|
|
274
|
+
p headers # => { ... }
|
|
275
|
+
p data # => <SnapshotStatus>
|
|
276
|
+
rescue WhoisFreaks::ApiError => e
|
|
277
|
+
puts "Error when calling DatabasesIPGeolocationApi->db_ip_country_status_with_http_info: #{e}"
|
|
278
|
+
end
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
### Parameters
|
|
282
|
+
|
|
283
|
+
| Name | Type | Description | Notes |
|
|
284
|
+
| ---- | ---- | ----------- | ----- |
|
|
285
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
286
|
+
|
|
287
|
+
### Return type
|
|
288
|
+
|
|
289
|
+
[**SnapshotStatus**](SnapshotStatus.md)
|
|
290
|
+
|
|
291
|
+
### Authorization
|
|
292
|
+
|
|
293
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
294
|
+
|
|
295
|
+
### HTTP request headers
|
|
296
|
+
|
|
297
|
+
- **Content-Type**: Not defined
|
|
298
|
+
- **Accept**: application/json
|
|
299
|
+
|