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
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 1a1c797baf91f188c4cc0caad30317db8f8b67def004e75bceee3034345528f8
|
|
4
|
+
data.tar.gz: 67d4080acacf35be908a8ad9fae98eff1dcddb0d75f9e3e16e3e716581f27a45
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: a6bd39d6a70b6da109773d7aa6b9c09f359a829e56510a0bb08c8645ecfaedc3cbab5469b965b48851abf332a22edf76ecbf048de3208650e61942820b868239
|
|
7
|
+
data.tar.gz: f315b9f37d7fec132008af8950edff412be1eaca5709020cdc2928a6c2417b11aa91d2ea84ffd8bfdf3020f17175d7603d2fb40c63409242508e46dc20337c8c
|
data/Gemfile
ADDED
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 WhoisFreaks
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
# whoisfreaks
|
|
2
|
+
|
|
3
|
+
WhoisFreaks - the Ruby gem for the WhoisFreaks API
|
|
4
|
+
|
|
5
|
+
Complete WhoisFreaks API — WHOIS, DNS, SSL, Geolocation, Typosquatting, IP Intelligence, Domain Reputation, and bulk database downloads. ## Authentication
|
|
6
|
+
All requests require an `apiKey` query parameter.
|
|
7
|
+
## Resources
|
|
8
|
+
- Docs: https://whoisfreaks.com/documentation
|
|
9
|
+
- Billing: https://billing.whoisfreaks.com
|
|
10
|
+
- Support: support@whoisfreaks.com
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
14
|
+
|
|
15
|
+
- API version: 1.0.0
|
|
16
|
+
- Package version: 0.2.0
|
|
17
|
+
- Generator version: 7.11.0
|
|
18
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
19
|
+
For more information, please visit [https://whoisfreaks.com](https://whoisfreaks.com)
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
### Build a gem
|
|
24
|
+
|
|
25
|
+
To build the Ruby code into a gem:
|
|
26
|
+
|
|
27
|
+
```shell
|
|
28
|
+
gem build whoisfreaks.gemspec
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Then either install the gem locally:
|
|
32
|
+
|
|
33
|
+
```shell
|
|
34
|
+
gem install ./whoisfreaks-0.2.0.gem
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
(for development, run `gem install --dev ./whoisfreaks-0.2.0.gem` to install the development dependencies)
|
|
38
|
+
|
|
39
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
40
|
+
|
|
41
|
+
Finally add this to the Gemfile:
|
|
42
|
+
|
|
43
|
+
gem 'whoisfreaks', '~> 0.2.0'
|
|
44
|
+
|
|
45
|
+
### Install from Git
|
|
46
|
+
|
|
47
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
|
48
|
+
|
|
49
|
+
gem 'whoisfreaks', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
|
50
|
+
|
|
51
|
+
### Include the Ruby code directly
|
|
52
|
+
|
|
53
|
+
Include the Ruby code directly using `-I` as follows:
|
|
54
|
+
|
|
55
|
+
```shell
|
|
56
|
+
ruby -Ilib script.rb
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Getting Started
|
|
60
|
+
|
|
61
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
|
62
|
+
|
|
63
|
+
```ruby
|
|
64
|
+
# Load the gem
|
|
65
|
+
require 'whoisfreaks'
|
|
66
|
+
|
|
67
|
+
# Setup authorization
|
|
68
|
+
WhoisFreaks.configure do |config|
|
|
69
|
+
# Configure API key authorization: ApiKeyAuth
|
|
70
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
71
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
72
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
73
|
+
# Configure faraday connection
|
|
74
|
+
config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
api_instance = WhoisFreaks::ASNWHOISApi.new
|
|
78
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
79
|
+
asn = 'as15169' # String |
|
|
80
|
+
opts = {
|
|
81
|
+
format: 'json' # String |
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
begin
|
|
85
|
+
#ASN WHOIS Lookup
|
|
86
|
+
result = api_instance.asn_whois(api_key, asn, opts)
|
|
87
|
+
p result
|
|
88
|
+
rescue WhoisFreaks::ApiError => e
|
|
89
|
+
puts "Exception when calling ASNWHOISApi->asn_whois: #{e}"
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Documentation for API Endpoints
|
|
95
|
+
|
|
96
|
+
All URIs are relative to *https://api.whoisfreaks.com*
|
|
97
|
+
|
|
98
|
+
Class | Method | HTTP request | Description
|
|
99
|
+
------------ | ------------- | ------------- | -------------
|
|
100
|
+
*WhoisFreaks::ASNWHOISApi* | [**asn_whois**](docs/ASNWHOISApi.md#asn_whois) | **GET** /v2.0/asn-whois | ASN WHOIS Lookup
|
|
101
|
+
*WhoisFreaks::AccountApi* | [**account_usage**](docs/AccountApi.md#account_usage) | **GET** /v1.0/whoisapi/usage | Account Usage
|
|
102
|
+
*WhoisFreaks::AccountApi* | [**database_file_status**](docs/AccountApi.md#database_file_status) | **GET** /v3.3/status | Database File Status (Public)
|
|
103
|
+
*WhoisFreaks::AccountApi* | [**rotate_api_key**](docs/AccountApi.md#rotate_api_key) | **GET** /v1.0/api-key/rotate | Rotate API Key
|
|
104
|
+
*WhoisFreaks::DNSApi* | [**dns_bulk**](docs/DNSApi.md#dns_bulk) | **POST** /v2.0/dns/bulk/live | Bulk DNS Lookup
|
|
105
|
+
*WhoisFreaks::DNSApi* | [**dns_historical**](docs/DNSApi.md#dns_historical) | **GET** /v2.0/dns/historical | Historical DNS Lookup
|
|
106
|
+
*WhoisFreaks::DNSApi* | [**dns_live**](docs/DNSApi.md#dns_live) | **GET** /v2.0/dns/live | Live DNS Lookup
|
|
107
|
+
*WhoisFreaks::DNSApi* | [**dns_reverse**](docs/DNSApi.md#dns_reverse) | **GET** /v2.1/dns/reverse | Reverse DNS Lookup
|
|
108
|
+
*WhoisFreaks::DatabasesASNWHOISApi* | [**db_asn_whois**](docs/DatabasesASNWHOISApi.md#db_asn_whois) | **GET** /v3.3/download/snapshot/asn/whois | ASN WHOIS Snapshot
|
|
109
|
+
*WhoisFreaks::DatabasesASNWHOISApi* | [**db_asn_whois_status**](docs/DatabasesASNWHOISApi.md#db_asn_whois_status) | **GET** /v3.3/status/snapshot/asn/whois | ASN WHOIS Snapshot Status
|
|
110
|
+
*WhoisFreaks::DatabasesDNSApi* | [**db_dns_daily**](docs/DatabasesDNSApi.md#db_dns_daily) | **GET** /v3.2/download/dbupdate/daily/dns | DNS Database Daily
|
|
111
|
+
*WhoisFreaks::DatabasesDNSApi* | [**db_dns_monthly**](docs/DatabasesDNSApi.md#db_dns_monthly) | **GET** /v3.2/download/dbupdate/monthly/dns | DNS Database Monthly
|
|
112
|
+
*WhoisFreaks::DatabasesDNSApi* | [**db_dns_weekly**](docs/DatabasesDNSApi.md#db_dns_weekly) | **GET** /v3.2/download/dbupdate/weekly/dns | DNS Database Weekly
|
|
113
|
+
*WhoisFreaks::DatabasesExpiringDroppedApi* | [**db_dropped**](docs/DatabasesExpiringDroppedApi.md#db_dropped) | **GET** /v3.1/download/domainer/dropped | Dropped Domains
|
|
114
|
+
*WhoisFreaks::DatabasesExpiringDroppedApi* | [**db_dropped_backlinks**](docs/DatabasesExpiringDroppedApi.md#db_dropped_backlinks) | **GET** /v3.3/download/domainer/dropped/backlinks | Dropped With Backlinks
|
|
115
|
+
*WhoisFreaks::DatabasesExpiringDroppedApi* | [**db_dropped_json**](docs/DatabasesExpiringDroppedApi.md#db_dropped_json) | **GET** /v3.1/domains/dropped | Dropped Domains (JSON)
|
|
116
|
+
*WhoisFreaks::DatabasesExpiringDroppedApi* | [**db_expired**](docs/DatabasesExpiringDroppedApi.md#db_expired) | **GET** /v3.1/download/domainer/expired | Expiring Domains
|
|
117
|
+
*WhoisFreaks::DatabasesExpiringDroppedApi* | [**db_expired_cleaned**](docs/DatabasesExpiringDroppedApi.md#db_expired_cleaned) | **GET** /v3.1/download/domainer/expired/cleaned | Expiring Cleaned WHOIS
|
|
118
|
+
*WhoisFreaks::DatabasesIPGeolocationApi* | [**db_ip_city**](docs/DatabasesIPGeolocationApi.md#db_ip_city) | **GET** /v3.3/download/snapshot/ip/city | IP to City Snapshot
|
|
119
|
+
*WhoisFreaks::DatabasesIPGeolocationApi* | [**db_ip_city_status**](docs/DatabasesIPGeolocationApi.md#db_ip_city_status) | **GET** /v3.3/status/snapshot/ip/city | IP to City Snapshot Status
|
|
120
|
+
*WhoisFreaks::DatabasesIPGeolocationApi* | [**db_ip_country**](docs/DatabasesIPGeolocationApi.md#db_ip_country) | **GET** /v3.3/download/snapshot/ip/country | IP to Country Snapshot
|
|
121
|
+
*WhoisFreaks::DatabasesIPGeolocationApi* | [**db_ip_country_status**](docs/DatabasesIPGeolocationApi.md#db_ip_country_status) | **GET** /v3.3/status/snapshot/ip/country | IP to Country Snapshot Status
|
|
122
|
+
*WhoisFreaks::DatabasesIPSecurityApi* | [**db_ip_security**](docs/DatabasesIPSecurityApi.md#db_ip_security) | **GET** /v3.3/download/snapshot/ip/security | IP Security Snapshot
|
|
123
|
+
*WhoisFreaks::DatabasesIPSecurityApi* | [**db_ip_security_status**](docs/DatabasesIPSecurityApi.md#db_ip_security_status) | **GET** /v3.3/status/snapshot/ip/security | IP Security Snapshot Status
|
|
124
|
+
*WhoisFreaks::DatabasesIPWHOISApi* | [**db_ip_whois**](docs/DatabasesIPWHOISApi.md#db_ip_whois) | **GET** /v3.3/download/snapshot/ip/whois | IP WHOIS Snapshot
|
|
125
|
+
*WhoisFreaks::DatabasesIPWHOISApi* | [**db_ip_whois_status**](docs/DatabasesIPWHOISApi.md#db_ip_whois_status) | **GET** /v3.3/status/snapshot/ip/whois | IP WHOIS Snapshot Status
|
|
126
|
+
*WhoisFreaks::DatabasesNewlyRegisteredApi* | [**db_newly_cctld**](docs/DatabasesNewlyRegisteredApi.md#db_newly_cctld) | **GET** /v3.1/download/domainer/cctld | Newly Registered ccTLD (CSV)
|
|
127
|
+
*WhoisFreaks::DatabasesNewlyRegisteredApi* | [**db_newly_cctld_cleaned**](docs/DatabasesNewlyRegisteredApi.md#db_newly_cctld_cleaned) | **GET** /v3.1/download/domainer/cctld/cleaned | Newly Registered ccTLD Cleaned WHOIS (CSV)
|
|
128
|
+
*WhoisFreaks::DatabasesNewlyRegisteredApi* | [**db_newly_cctld_json**](docs/DatabasesNewlyRegisteredApi.md#db_newly_cctld_json) | **GET** /v3.1/domains/newly/cctld | Newly Registered ccTLD (JSON)
|
|
129
|
+
*WhoisFreaks::DatabasesNewlyRegisteredApi* | [**db_newly_dns**](docs/DatabasesNewlyRegisteredApi.md#db_newly_dns) | **GET** /v3.1/download/domainer/newly/dns | Newly Registered With DNS
|
|
130
|
+
*WhoisFreaks::DatabasesNewlyRegisteredApi* | [**db_newly_gtld**](docs/DatabasesNewlyRegisteredApi.md#db_newly_gtld) | **GET** /v3.1/download/domainer/gtld | Newly Registered gTLD (CSV)
|
|
131
|
+
*WhoisFreaks::DatabasesNewlyRegisteredApi* | [**db_newly_gtld_cleaned**](docs/DatabasesNewlyRegisteredApi.md#db_newly_gtld_cleaned) | **GET** /v3.1/download/domainer/gtld/cleaned | Newly Registered gTLD Cleaned WHOIS (CSV)
|
|
132
|
+
*WhoisFreaks::DatabasesNewlyRegisteredApi* | [**db_newly_gtld_json**](docs/DatabasesNewlyRegisteredApi.md#db_newly_gtld_json) | **GET** /v3.1/domains/newly/gtld | Newly Registered gTLD (JSON)
|
|
133
|
+
*WhoisFreaks::DatabasesSubdomainsApi* | [**db_subdomains_daily**](docs/DatabasesSubdomainsApi.md#db_subdomains_daily) | **GET** /v3.2/download/dbupdate/daily/subdomains | Subdomains Daily
|
|
134
|
+
*WhoisFreaks::DatabasesSubdomainsApi* | [**db_subdomains_monthly**](docs/DatabasesSubdomainsApi.md#db_subdomains_monthly) | **GET** /v3.2/download/dbupdate/monthly/subdomains | Subdomains Monthly
|
|
135
|
+
*WhoisFreaks::DatabasesSubdomainsApi* | [**db_subdomains_weekly**](docs/DatabasesSubdomainsApi.md#db_subdomains_weekly) | **GET** /v3.2/download/dbupdate/weekly/subdomains | Subdomains Weekly
|
|
136
|
+
*WhoisFreaks::DatabasesWHOISApi* | [**db_whois_daily**](docs/DatabasesWHOISApi.md#db_whois_daily) | **GET** /v3.3/download/dbupdate/daily/domains/whois | WHOIS Database Daily
|
|
137
|
+
*WhoisFreaks::DatabasesWHOISApi* | [**db_whois_monthly**](docs/DatabasesWHOISApi.md#db_whois_monthly) | **GET** /v3.3/download/dbupdate/monthly/domains/whois | WHOIS Database Monthly
|
|
138
|
+
*WhoisFreaks::DatabasesWHOISApi* | [**db_whois_weekly**](docs/DatabasesWHOISApi.md#db_whois_weekly) | **GET** /v3.3/download/dbupdate/weekly/domains/whois | WHOIS Database Weekly
|
|
139
|
+
*WhoisFreaks::DomainAvailabilityApi* | [**bulk_domain_availability_v2**](docs/DomainAvailabilityApi.md#bulk_domain_availability_v2) | **POST** /v2.0/domain/availability | Bulk Domain Availability Check
|
|
140
|
+
*WhoisFreaks::DomainAvailabilityApi* | [**domain_availability_v2**](docs/DomainAvailabilityApi.md#domain_availability_v2) | **GET** /v2.0/domain/availability | Domain Availability Check with Suggestions
|
|
141
|
+
*WhoisFreaks::DomainReputationApi* | [**domain_reputation**](docs/DomainReputationApi.md#domain_reputation) | **GET** /v1/domain/security | Domain Reputation Lookup
|
|
142
|
+
*WhoisFreaks::GeolocationApi* | [**bulk_geolocation**](docs/GeolocationApi.md#bulk_geolocation) | **POST** /v1.0/geolocation | Bulk IP Geolocation
|
|
143
|
+
*WhoisFreaks::GeolocationApi* | [**geolocation**](docs/GeolocationApi.md#geolocation) | **GET** /v1.0/geolocation | IP Geolocation Lookup
|
|
144
|
+
*WhoisFreaks::IPReputationApi* | [**bulk_ip_reputation**](docs/IPReputationApi.md#bulk_ip_reputation) | **POST** /v1.0/security | Bulk IP Reputation
|
|
145
|
+
*WhoisFreaks::IPReputationApi* | [**ip_reputation**](docs/IPReputationApi.md#ip_reputation) | **GET** /v1.0/security | IP Reputation Lookup
|
|
146
|
+
*WhoisFreaks::IPWHOISApi* | [**ip_whois**](docs/IPWHOISApi.md#ip_whois) | **GET** /v1.0/ip-whois | IP WHOIS Lookup
|
|
147
|
+
*WhoisFreaks::SSLApi* | [**ssl_lookup**](docs/SSLApi.md#ssl_lookup) | **GET** /v1.0/ssl/live | SSL Certificate Lookup
|
|
148
|
+
*WhoisFreaks::SubdomainsApi* | [**subdomains**](docs/SubdomainsApi.md#subdomains) | **GET** /v1.0/subdomains | Subdomains Lookup
|
|
149
|
+
*WhoisFreaks::TyposquattingApi* | [**typosquatting**](docs/TyposquattingApi.md#typosquatting) | **GET** /v3.0/domain/typos | Typosquatting Lookup
|
|
150
|
+
*WhoisFreaks::WHOISApi* | [**bulk_whois**](docs/WHOISApi.md#bulk_whois) | **POST** /v2.0/bulkwhois/live | Bulk WHOIS Lookup
|
|
151
|
+
*WhoisFreaks::WHOISApi* | [**whois_historical_or_reverse**](docs/WHOISApi.md#whois_historical_or_reverse) | **GET** /v1.0/whois | WHOIS Historical or Reverse Lookup
|
|
152
|
+
*WhoisFreaks::WHOISApi* | [**whois_live**](docs/WHOISApi.md#whois_live) | **GET** /v2.0/whois/live | Live WHOIS Lookup
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
## Documentation for Models
|
|
156
|
+
|
|
157
|
+
- [WhoisFreaks::AccountUsageResponse](docs/AccountUsageResponse.md)
|
|
158
|
+
- [WhoisFreaks::AccountUsageResponseApiCredits](docs/AccountUsageResponseApiCredits.md)
|
|
159
|
+
- [WhoisFreaks::AccountUsageResponseApiSubscription](docs/AccountUsageResponseApiSubscription.md)
|
|
160
|
+
- [WhoisFreaks::AsnWhoisResponse](docs/AsnWhoisResponse.md)
|
|
161
|
+
- [WhoisFreaks::AsnWhoisResponseAutNumsInner](docs/AsnWhoisResponseAutNumsInner.md)
|
|
162
|
+
- [WhoisFreaks::AsnWhoisResponseOrganization](docs/AsnWhoisResponseOrganization.md)
|
|
163
|
+
- [WhoisFreaks::BulkDomainAvailabilityRequest](docs/BulkDomainAvailabilityRequest.md)
|
|
164
|
+
- [WhoisFreaks::BulkDomainAvailabilityV2Item](docs/BulkDomainAvailabilityV2Item.md)
|
|
165
|
+
- [WhoisFreaks::BulkDomainAvailabilityV2Response](docs/BulkDomainAvailabilityV2Response.md)
|
|
166
|
+
- [WhoisFreaks::BulkGeolocationRequest](docs/BulkGeolocationRequest.md)
|
|
167
|
+
- [WhoisFreaks::BulkWhois200Response](docs/BulkWhois200Response.md)
|
|
168
|
+
- [WhoisFreaks::BulkWhoisRequest](docs/BulkWhoisRequest.md)
|
|
169
|
+
- [WhoisFreaks::Contact](docs/Contact.md)
|
|
170
|
+
- [WhoisFreaks::DatabaseFileStatus](docs/DatabaseFileStatus.md)
|
|
171
|
+
- [WhoisFreaks::DatabaseFileStatusNewlyValue](docs/DatabaseFileStatusNewlyValue.md)
|
|
172
|
+
- [WhoisFreaks::DnsBulk200Response](docs/DnsBulk200Response.md)
|
|
173
|
+
- [WhoisFreaks::DnsBulkRequest](docs/DnsBulkRequest.md)
|
|
174
|
+
- [WhoisFreaks::DnsRecord](docs/DnsRecord.md)
|
|
175
|
+
- [WhoisFreaks::DnsResponse](docs/DnsResponse.md)
|
|
176
|
+
- [WhoisFreaks::DomainAvailabilityV2Item](docs/DomainAvailabilityV2Item.md)
|
|
177
|
+
- [WhoisFreaks::DomainAvailabilityV2Response](docs/DomainAvailabilityV2Response.md)
|
|
178
|
+
- [WhoisFreaks::DomainReputationDgaFeatures](docs/DomainReputationDgaFeatures.md)
|
|
179
|
+
- [WhoisFreaks::DomainReputationDgaScore](docs/DomainReputationDgaScore.md)
|
|
180
|
+
- [WhoisFreaks::DomainReputationEvidenceSummary](docs/DomainReputationEvidenceSummary.md)
|
|
181
|
+
- [WhoisFreaks::DomainReputationIndicators](docs/DomainReputationIndicators.md)
|
|
182
|
+
- [WhoisFreaks::DomainReputationInput](docs/DomainReputationInput.md)
|
|
183
|
+
- [WhoisFreaks::DomainReputationIntelligence](docs/DomainReputationIntelligence.md)
|
|
184
|
+
- [WhoisFreaks::DomainReputationPivotMatch](docs/DomainReputationPivotMatch.md)
|
|
185
|
+
- [WhoisFreaks::DomainReputationRelatedIoc](docs/DomainReputationRelatedIoc.md)
|
|
186
|
+
- [WhoisFreaks::DomainReputationResponse](docs/DomainReputationResponse.md)
|
|
187
|
+
- [WhoisFreaks::DomainReputationRiskCategory](docs/DomainReputationRiskCategory.md)
|
|
188
|
+
- [WhoisFreaks::DomainReputationSignal](docs/DomainReputationSignal.md)
|
|
189
|
+
- [WhoisFreaks::DomainReputationSignals](docs/DomainReputationSignals.md)
|
|
190
|
+
- [WhoisFreaks::DomainReputationTrustSignals](docs/DomainReputationTrustSignals.md)
|
|
191
|
+
- [WhoisFreaks::ErrorResponse](docs/ErrorResponse.md)
|
|
192
|
+
- [WhoisFreaks::GeolocationAsn](docs/GeolocationAsn.md)
|
|
193
|
+
- [WhoisFreaks::GeolocationLocation](docs/GeolocationLocation.md)
|
|
194
|
+
- [WhoisFreaks::GeolocationResponse](docs/GeolocationResponse.md)
|
|
195
|
+
- [WhoisFreaks::GeolocationResponseCurrency](docs/GeolocationResponseCurrency.md)
|
|
196
|
+
- [WhoisFreaks::GeolocationResponseNetwork](docs/GeolocationResponseNetwork.md)
|
|
197
|
+
- [WhoisFreaks::HistoricalDnsResponse](docs/HistoricalDnsResponse.md)
|
|
198
|
+
- [WhoisFreaks::IpReputationResponse](docs/IpReputationResponse.md)
|
|
199
|
+
- [WhoisFreaks::IpReputationSecurity](docs/IpReputationSecurity.md)
|
|
200
|
+
- [WhoisFreaks::IpWhoisResponse](docs/IpWhoisResponse.md)
|
|
201
|
+
- [WhoisFreaks::IpWhoisResponseAbuseContactsInner](docs/IpWhoisResponseAbuseContactsInner.md)
|
|
202
|
+
- [WhoisFreaks::IpWhoisResponseInetNumsInner](docs/IpWhoisResponseInetNumsInner.md)
|
|
203
|
+
- [WhoisFreaks::IpWhoisResponseOrganization](docs/IpWhoisResponseOrganization.md)
|
|
204
|
+
- [WhoisFreaks::Registrar](docs/Registrar.md)
|
|
205
|
+
- [WhoisFreaks::ReverseDnsResponse](docs/ReverseDnsResponse.md)
|
|
206
|
+
- [WhoisFreaks::ReverseWhoisResponse](docs/ReverseWhoisResponse.md)
|
|
207
|
+
- [WhoisFreaks::SnapshotStatus](docs/SnapshotStatus.md)
|
|
208
|
+
- [WhoisFreaks::SslCertificate](docs/SslCertificate.md)
|
|
209
|
+
- [WhoisFreaks::SslResponse](docs/SslResponse.md)
|
|
210
|
+
- [WhoisFreaks::Subdomain](docs/Subdomain.md)
|
|
211
|
+
- [WhoisFreaks::SubdomainsResponse](docs/SubdomainsResponse.md)
|
|
212
|
+
- [WhoisFreaks::TyposquattingDomain](docs/TyposquattingDomain.md)
|
|
213
|
+
- [WhoisFreaks::TyposquattingResponse](docs/TyposquattingResponse.md)
|
|
214
|
+
- [WhoisFreaks::WhoisHistoricalOrReverse200Response](docs/WhoisHistoricalOrReverse200Response.md)
|
|
215
|
+
- [WhoisFreaks::WhoisHistoricalResponse](docs/WhoisHistoricalResponse.md)
|
|
216
|
+
- [WhoisFreaks::WhoisResponse](docs/WhoisResponse.md)
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
## Documentation for Authorization
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
Authentication schemes defined for the API:
|
|
223
|
+
### ApiKeyAuth
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
- **Type**: API key
|
|
227
|
+
- **API key parameter name**: apiKey
|
|
228
|
+
- **Location**: URL query string
|
|
229
|
+
|
data/Rakefile
ADDED
data/docs/ASNWHOISApi.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# WhoisFreaks::ASNWHOISApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.whoisfreaks.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**asn_whois**](ASNWHOISApi.md#asn_whois) | **GET** /v2.0/asn-whois | ASN WHOIS Lookup |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## asn_whois
|
|
11
|
+
|
|
12
|
+
> <AsnWhoisResponse> asn_whois(api_key, asn, opts)
|
|
13
|
+
|
|
14
|
+
ASN WHOIS Lookup
|
|
15
|
+
|
|
16
|
+
WHOIS for an ASN. 1 credit.
|
|
17
|
+
|
|
18
|
+
### Examples
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'time'
|
|
22
|
+
require 'whoisfreaks'
|
|
23
|
+
# setup authorization
|
|
24
|
+
WhoisFreaks.configure do |config|
|
|
25
|
+
# Configure API key authorization: ApiKeyAuth
|
|
26
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
27
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
28
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
api_instance = WhoisFreaks::ASNWHOISApi.new
|
|
32
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
33
|
+
asn = 'as15169' # String |
|
|
34
|
+
opts = {
|
|
35
|
+
format: 'json' # String |
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
begin
|
|
39
|
+
# ASN WHOIS Lookup
|
|
40
|
+
result = api_instance.asn_whois(api_key, asn, opts)
|
|
41
|
+
p result
|
|
42
|
+
rescue WhoisFreaks::ApiError => e
|
|
43
|
+
puts "Error when calling ASNWHOISApi->asn_whois: #{e}"
|
|
44
|
+
end
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### Using the asn_whois_with_http_info variant
|
|
48
|
+
|
|
49
|
+
This returns an Array which contains the response data, status code and headers.
|
|
50
|
+
|
|
51
|
+
> <Array(<AsnWhoisResponse>, Integer, Hash)> asn_whois_with_http_info(api_key, asn, opts)
|
|
52
|
+
|
|
53
|
+
```ruby
|
|
54
|
+
begin
|
|
55
|
+
# ASN WHOIS Lookup
|
|
56
|
+
data, status_code, headers = api_instance.asn_whois_with_http_info(api_key, asn, opts)
|
|
57
|
+
p status_code # => 2xx
|
|
58
|
+
p headers # => { ... }
|
|
59
|
+
p data # => <AsnWhoisResponse>
|
|
60
|
+
rescue WhoisFreaks::ApiError => e
|
|
61
|
+
puts "Error when calling ASNWHOISApi->asn_whois_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
|
+
| **asn** | **String** | | |
|
|
71
|
+
| **format** | **String** | | [optional][default to 'json'] |
|
|
72
|
+
|
|
73
|
+
### Return type
|
|
74
|
+
|
|
75
|
+
[**AsnWhoisResponse**](AsnWhoisResponse.md)
|
|
76
|
+
|
|
77
|
+
### Authorization
|
|
78
|
+
|
|
79
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
80
|
+
|
|
81
|
+
### HTTP request headers
|
|
82
|
+
|
|
83
|
+
- **Content-Type**: Not defined
|
|
84
|
+
- **Accept**: application/json
|
|
85
|
+
|
data/docs/AccountApi.md
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
# WhoisFreaks::AccountApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.whoisfreaks.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**account_usage**](AccountApi.md#account_usage) | **GET** /v1.0/whoisapi/usage | Account Usage |
|
|
8
|
+
| [**database_file_status**](AccountApi.md#database_file_status) | **GET** /v3.3/status | Database File Status (Public) |
|
|
9
|
+
| [**rotate_api_key**](AccountApi.md#rotate_api_key) | **GET** /v1.0/api-key/rotate | Rotate API Key |
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## account_usage
|
|
13
|
+
|
|
14
|
+
> <AccountUsageResponse> account_usage(api_key)
|
|
15
|
+
|
|
16
|
+
Account Usage
|
|
17
|
+
|
|
18
|
+
Account Usage. 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::AccountApi.new
|
|
34
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
35
|
+
|
|
36
|
+
begin
|
|
37
|
+
# Account Usage
|
|
38
|
+
result = api_instance.account_usage(api_key)
|
|
39
|
+
p result
|
|
40
|
+
rescue WhoisFreaks::ApiError => e
|
|
41
|
+
puts "Error when calling AccountApi->account_usage: #{e}"
|
|
42
|
+
end
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### Using the account_usage_with_http_info variant
|
|
46
|
+
|
|
47
|
+
This returns an Array which contains the response data, status code and headers.
|
|
48
|
+
|
|
49
|
+
> <Array(<AccountUsageResponse>, Integer, Hash)> account_usage_with_http_info(api_key)
|
|
50
|
+
|
|
51
|
+
```ruby
|
|
52
|
+
begin
|
|
53
|
+
# Account Usage
|
|
54
|
+
data, status_code, headers = api_instance.account_usage_with_http_info(api_key)
|
|
55
|
+
p status_code # => 2xx
|
|
56
|
+
p headers # => { ... }
|
|
57
|
+
p data # => <AccountUsageResponse>
|
|
58
|
+
rescue WhoisFreaks::ApiError => e
|
|
59
|
+
puts "Error when calling AccountApi->account_usage_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
|
+
|
|
69
|
+
### Return type
|
|
70
|
+
|
|
71
|
+
[**AccountUsageResponse**](AccountUsageResponse.md)
|
|
72
|
+
|
|
73
|
+
### Authorization
|
|
74
|
+
|
|
75
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
76
|
+
|
|
77
|
+
### HTTP request headers
|
|
78
|
+
|
|
79
|
+
- **Content-Type**: Not defined
|
|
80
|
+
- **Accept**: application/json
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
## database_file_status
|
|
84
|
+
|
|
85
|
+
> <DatabaseFileStatus> database_file_status
|
|
86
|
+
|
|
87
|
+
Database File Status (Public)
|
|
88
|
+
|
|
89
|
+
No API key required. Returns freshness of all downloadable files.
|
|
90
|
+
|
|
91
|
+
### Examples
|
|
92
|
+
|
|
93
|
+
```ruby
|
|
94
|
+
require 'time'
|
|
95
|
+
require 'whoisfreaks'
|
|
96
|
+
|
|
97
|
+
api_instance = WhoisFreaks::AccountApi.new
|
|
98
|
+
|
|
99
|
+
begin
|
|
100
|
+
# Database File Status (Public)
|
|
101
|
+
result = api_instance.database_file_status
|
|
102
|
+
p result
|
|
103
|
+
rescue WhoisFreaks::ApiError => e
|
|
104
|
+
puts "Error when calling AccountApi->database_file_status: #{e}"
|
|
105
|
+
end
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
#### Using the database_file_status_with_http_info variant
|
|
109
|
+
|
|
110
|
+
This returns an Array which contains the response data, status code and headers.
|
|
111
|
+
|
|
112
|
+
> <Array(<DatabaseFileStatus>, Integer, Hash)> database_file_status_with_http_info
|
|
113
|
+
|
|
114
|
+
```ruby
|
|
115
|
+
begin
|
|
116
|
+
# Database File Status (Public)
|
|
117
|
+
data, status_code, headers = api_instance.database_file_status_with_http_info
|
|
118
|
+
p status_code # => 2xx
|
|
119
|
+
p headers # => { ... }
|
|
120
|
+
p data # => <DatabaseFileStatus>
|
|
121
|
+
rescue WhoisFreaks::ApiError => e
|
|
122
|
+
puts "Error when calling AccountApi->database_file_status_with_http_info: #{e}"
|
|
123
|
+
end
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Parameters
|
|
127
|
+
|
|
128
|
+
This endpoint does not need any parameter.
|
|
129
|
+
|
|
130
|
+
### Return type
|
|
131
|
+
|
|
132
|
+
[**DatabaseFileStatus**](DatabaseFileStatus.md)
|
|
133
|
+
|
|
134
|
+
### Authorization
|
|
135
|
+
|
|
136
|
+
No authorization required
|
|
137
|
+
|
|
138
|
+
### HTTP request headers
|
|
139
|
+
|
|
140
|
+
- **Content-Type**: Not defined
|
|
141
|
+
- **Accept**: application/json
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
## rotate_api_key
|
|
145
|
+
|
|
146
|
+
> String rotate_api_key(api_key)
|
|
147
|
+
|
|
148
|
+
Rotate API Key
|
|
149
|
+
|
|
150
|
+
Rotate API Key. Returns the file/snapshot described by this operation.
|
|
151
|
+
|
|
152
|
+
### Examples
|
|
153
|
+
|
|
154
|
+
```ruby
|
|
155
|
+
require 'time'
|
|
156
|
+
require 'whoisfreaks'
|
|
157
|
+
# setup authorization
|
|
158
|
+
WhoisFreaks.configure do |config|
|
|
159
|
+
# Configure API key authorization: ApiKeyAuth
|
|
160
|
+
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
161
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
162
|
+
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
api_instance = WhoisFreaks::AccountApi.new
|
|
166
|
+
api_key = 'api_key_example' # String | Your WHOISFreaks API key
|
|
167
|
+
|
|
168
|
+
begin
|
|
169
|
+
# Rotate API Key
|
|
170
|
+
result = api_instance.rotate_api_key(api_key)
|
|
171
|
+
p result
|
|
172
|
+
rescue WhoisFreaks::ApiError => e
|
|
173
|
+
puts "Error when calling AccountApi->rotate_api_key: #{e}"
|
|
174
|
+
end
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
#### Using the rotate_api_key_with_http_info variant
|
|
178
|
+
|
|
179
|
+
This returns an Array which contains the response data, status code and headers.
|
|
180
|
+
|
|
181
|
+
> <Array(String, Integer, Hash)> rotate_api_key_with_http_info(api_key)
|
|
182
|
+
|
|
183
|
+
```ruby
|
|
184
|
+
begin
|
|
185
|
+
# Rotate API Key
|
|
186
|
+
data, status_code, headers = api_instance.rotate_api_key_with_http_info(api_key)
|
|
187
|
+
p status_code # => 2xx
|
|
188
|
+
p headers # => { ... }
|
|
189
|
+
p data # => String
|
|
190
|
+
rescue WhoisFreaks::ApiError => e
|
|
191
|
+
puts "Error when calling AccountApi->rotate_api_key_with_http_info: #{e}"
|
|
192
|
+
end
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### Parameters
|
|
196
|
+
|
|
197
|
+
| Name | Type | Description | Notes |
|
|
198
|
+
| ---- | ---- | ----------- | ----- |
|
|
199
|
+
| **api_key** | **String** | Your WHOISFreaks API key | |
|
|
200
|
+
|
|
201
|
+
### Return type
|
|
202
|
+
|
|
203
|
+
**String**
|
|
204
|
+
|
|
205
|
+
### Authorization
|
|
206
|
+
|
|
207
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
208
|
+
|
|
209
|
+
### HTTP request headers
|
|
210
|
+
|
|
211
|
+
- **Content-Type**: Not defined
|
|
212
|
+
- **Accept**: text/plain
|
|
213
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# WhoisFreaks::AccountUsageResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **api_key** | **String** | | [optional] |
|
|
8
|
+
| **api_credits** | [**AccountUsageResponseApiCredits**](AccountUsageResponseApiCredits.md) | | [optional] |
|
|
9
|
+
| **api_subscription** | [**AccountUsageResponseApiSubscription**](AccountUsageResponseApiSubscription.md) | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'whoisfreaks'
|
|
15
|
+
|
|
16
|
+
instance = WhoisFreaks::AccountUsageResponse.new(
|
|
17
|
+
api_key: null,
|
|
18
|
+
api_credits: null,
|
|
19
|
+
api_subscription: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WhoisFreaks::AccountUsageResponseApiCredits
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **total_credits** | **Integer** | | [optional] |
|
|
8
|
+
| **served_request** | **Integer** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'whoisfreaks'
|
|
14
|
+
|
|
15
|
+
instance = WhoisFreaks::AccountUsageResponseApiCredits.new(
|
|
16
|
+
total_credits: null,
|
|
17
|
+
served_request: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# WhoisFreaks::AccountUsageResponseApiSubscription
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **subscription_status** | **String** | | [optional] |
|
|
8
|
+
| **request_limit** | **Integer** | | [optional] |
|
|
9
|
+
| **served_requests** | **Integer** | | [optional] |
|
|
10
|
+
| **surcharge_request_limit** | **Integer** | | [optional] |
|
|
11
|
+
| **served_surcharge_requests** | **Integer** | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'whoisfreaks'
|
|
17
|
+
|
|
18
|
+
instance = WhoisFreaks::AccountUsageResponseApiSubscription.new(
|
|
19
|
+
subscription_status: null,
|
|
20
|
+
request_limit: null,
|
|
21
|
+
served_requests: null,
|
|
22
|
+
surcharge_request_limit: null,
|
|
23
|
+
served_surcharge_requests: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# WhoisFreaks::AsnWhoisResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **status** | **Boolean** | | [optional] |
|
|
8
|
+
| **as_number** | **String** | | [optional] |
|
|
9
|
+
| **query_time** | **String** | | [optional] |
|
|
10
|
+
| **whois_server** | **String** | | [optional] |
|
|
11
|
+
| **aut_nums** | [**Array<AsnWhoisResponseAutNumsInner>**](AsnWhoisResponseAutNumsInner.md) | | [optional] |
|
|
12
|
+
| **organization** | [**AsnWhoisResponseOrganization**](AsnWhoisResponseOrganization.md) | | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'whoisfreaks'
|
|
18
|
+
|
|
19
|
+
instance = WhoisFreaks::AsnWhoisResponse.new(
|
|
20
|
+
status: null,
|
|
21
|
+
as_number: null,
|
|
22
|
+
query_time: null,
|
|
23
|
+
whois_server: null,
|
|
24
|
+
aut_nums: null,
|
|
25
|
+
organization: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|