All URIs are relative to https://api.whoisfreaks.com
| Method | HTTP request | Description |
|---|---|---|
| db_dns_daily | GET /v3.2/download/dbupdate/daily/dns | DNS Database Daily |
| db_dns_monthly | GET /v3.2/download/dbupdate/monthly/dns | DNS Database Monthly |
| db_dns_weekly | GET /v3.2/download/dbupdate/weekly/dns | DNS Database Weekly |
File db_dns_daily(opts)
DNS Database Daily
DNS Database Daily. Returns the file/snapshot described by this operation.
require 'time'
require 'whoisfreaks'
# setup authorization
WhoisFreaks.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['apiKey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['apiKey'] = 'Bearer'
end
api_instance = WhoisFreaks::DatabasesDNSApi.new
opts = {
date: Date.parse('2013-10-20') # Date | yyyy-MM-dd; omit for latest
}
begin
# DNS Database Daily
result = api_instance.db_dns_daily(opts)
p result
rescue WhoisFreaks::ApiError => e
puts "Error when calling DatabasesDNSApi->db_dns_daily: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(File, Integer, Hash)> db_dns_daily_with_http_info(opts)
begin
# DNS Database Daily
data, status_code, headers = api_instance.db_dns_daily_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => File
rescue WhoisFreaks::ApiError => e
puts "Error when calling DatabasesDNSApi->db_dns_daily_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| date | Date | yyyy-MM-dd; omit for latest | [optional] |
File
- Content-Type: Not defined
- Accept: application/octet-stream, application/json
File db_dns_monthly(opts)
DNS Database Monthly
DNS Database Monthly. Returns the file/snapshot described by this operation.
require 'time'
require 'whoisfreaks'
# setup authorization
WhoisFreaks.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['apiKey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['apiKey'] = 'Bearer'
end
api_instance = WhoisFreaks::DatabasesDNSApi.new
opts = {
date: Date.parse('2013-10-20') # Date | yyyy-MM-dd; omit for latest
}
begin
# DNS Database Monthly
result = api_instance.db_dns_monthly(opts)
p result
rescue WhoisFreaks::ApiError => e
puts "Error when calling DatabasesDNSApi->db_dns_monthly: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(File, Integer, Hash)> db_dns_monthly_with_http_info(opts)
begin
# DNS Database Monthly
data, status_code, headers = api_instance.db_dns_monthly_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => File
rescue WhoisFreaks::ApiError => e
puts "Error when calling DatabasesDNSApi->db_dns_monthly_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| date | Date | yyyy-MM-dd; omit for latest | [optional] |
File
- Content-Type: Not defined
- Accept: application/octet-stream, application/json
File db_dns_weekly(opts)
DNS Database Weekly
DNS Database Weekly. Returns the file/snapshot described by this operation.
require 'time'
require 'whoisfreaks'
# setup authorization
WhoisFreaks.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['apiKey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['apiKey'] = 'Bearer'
end
api_instance = WhoisFreaks::DatabasesDNSApi.new
opts = {
date: Date.parse('2013-10-20') # Date | yyyy-MM-dd; omit for latest
}
begin
# DNS Database Weekly
result = api_instance.db_dns_weekly(opts)
p result
rescue WhoisFreaks::ApiError => e
puts "Error when calling DatabasesDNSApi->db_dns_weekly: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(File, Integer, Hash)> db_dns_weekly_with_http_info(opts)
begin
# DNS Database Weekly
data, status_code, headers = api_instance.db_dns_weekly_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => File
rescue WhoisFreaks::ApiError => e
puts "Error when calling DatabasesDNSApi->db_dns_weekly_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| date | Date | yyyy-MM-dd; omit for latest | [optional] |
File
- Content-Type: Not defined
- Accept: application/octet-stream, application/json