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.
Files changed (257) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +229 -0
  5. data/Rakefile +10 -0
  6. data/docs/ASNWHOISApi.md +85 -0
  7. data/docs/AccountApi.md +213 -0
  8. data/docs/AccountUsageResponse.md +22 -0
  9. data/docs/AccountUsageResponseApiCredits.md +20 -0
  10. data/docs/AccountUsageResponseApiSubscription.md +26 -0
  11. data/docs/AsnWhoisResponse.md +28 -0
  12. data/docs/AsnWhoisResponseAutNumsInner.md +26 -0
  13. data/docs/AsnWhoisResponseOrganization.md +24 -0
  14. data/docs/BulkDomainAvailabilityRequest.md +20 -0
  15. data/docs/BulkDomainAvailabilityV2Item.md +22 -0
  16. data/docs/BulkDomainAvailabilityV2Response.md +18 -0
  17. data/docs/BulkGeolocationRequest.md +18 -0
  18. data/docs/BulkWhois200Response.md +18 -0
  19. data/docs/BulkWhoisRequest.md +18 -0
  20. data/docs/Contact.md +38 -0
  21. data/docs/DNSApi.md +335 -0
  22. data/docs/DatabaseFileStatus.md +24 -0
  23. data/docs/DatabaseFileStatusNewlyValue.md +20 -0
  24. data/docs/DatabasesASNWHOISApi.md +153 -0
  25. data/docs/DatabasesDNSApi.md +235 -0
  26. data/docs/DatabasesExpiringDroppedApi.md +395 -0
  27. data/docs/DatabasesIPGeolocationApi.md +299 -0
  28. data/docs/DatabasesIPSecurityApi.md +153 -0
  29. data/docs/DatabasesIPWHOISApi.md +153 -0
  30. data/docs/DatabasesNewlyRegisteredApi.md +551 -0
  31. data/docs/DatabasesSubdomainsApi.md +235 -0
  32. data/docs/DatabasesWHOISApi.md +235 -0
  33. data/docs/DnsBulk200Response.md +18 -0
  34. data/docs/DnsBulkRequest.md +20 -0
  35. data/docs/DnsRecord.md +34 -0
  36. data/docs/DnsResponse.md +26 -0
  37. data/docs/DomainAvailabilityApi.md +169 -0
  38. data/docs/DomainAvailabilityV2Item.md +20 -0
  39. data/docs/DomainAvailabilityV2Response.md +18 -0
  40. data/docs/DomainReputationApi.md +85 -0
  41. data/docs/DomainReputationDgaFeatures.md +30 -0
  42. data/docs/DomainReputationDgaScore.md +26 -0
  43. data/docs/DomainReputationEvidenceSummary.md +18 -0
  44. data/docs/DomainReputationIndicators.md +34 -0
  45. data/docs/DomainReputationInput.md +18 -0
  46. data/docs/DomainReputationIntelligence.md +32 -0
  47. data/docs/DomainReputationPivotMatch.md +24 -0
  48. data/docs/DomainReputationRelatedIoc.md +22 -0
  49. data/docs/DomainReputationResponse.md +36 -0
  50. data/docs/DomainReputationRiskCategory.md +30 -0
  51. data/docs/DomainReputationSignal.md +28 -0
  52. data/docs/DomainReputationSignals.md +22 -0
  53. data/docs/DomainReputationTrustSignals.md +24 -0
  54. data/docs/ErrorResponse.md +26 -0
  55. data/docs/GeolocationApi.md +155 -0
  56. data/docs/GeolocationAsn.md +26 -0
  57. data/docs/GeolocationLocation.md +38 -0
  58. data/docs/GeolocationResponse.md +24 -0
  59. data/docs/GeolocationResponseCurrency.md +22 -0
  60. data/docs/GeolocationResponseNetwork.md +18 -0
  61. data/docs/HistoricalDnsResponse.md +24 -0
  62. data/docs/IPReputationApi.md +155 -0
  63. data/docs/IPWHOISApi.md +85 -0
  64. data/docs/IpReputationResponse.md +24 -0
  65. data/docs/IpReputationSecurity.md +42 -0
  66. data/docs/IpWhoisResponse.md +30 -0
  67. data/docs/IpWhoisResponseAbuseContactsInner.md +22 -0
  68. data/docs/IpWhoisResponseInetNumsInner.md +28 -0
  69. data/docs/IpWhoisResponseOrganization.md +26 -0
  70. data/docs/Registrar.md +30 -0
  71. data/docs/ReverseDnsResponse.md +24 -0
  72. data/docs/ReverseWhoisResponse.md +24 -0
  73. data/docs/SSLApi.md +89 -0
  74. data/docs/SnapshotStatus.md +26 -0
  75. data/docs/SslCertificate.md +34 -0
  76. data/docs/SslResponse.md +22 -0
  77. data/docs/Subdomain.md +24 -0
  78. data/docs/SubdomainsApi.md +93 -0
  79. data/docs/SubdomainsResponse.md +30 -0
  80. data/docs/TyposquattingApi.md +87 -0
  81. data/docs/TyposquattingDomain.md +26 -0
  82. data/docs/TyposquattingResponse.md +30 -0
  83. data/docs/WHOISApi.md +257 -0
  84. data/docs/WhoisHistoricalOrReverse200Response.md +49 -0
  85. data/docs/WhoisHistoricalResponse.md +24 -0
  86. data/docs/WhoisResponse.md +50 -0
  87. data/git_push.sh +57 -0
  88. data/lib/whoisfreaks/api/account_api.rb +207 -0
  89. data/lib/whoisfreaks/api/asnwhois_api.rb +100 -0
  90. data/lib/whoisfreaks/api/databases_asnwhois_api.rb +157 -0
  91. data/lib/whoisfreaks/api/databases_dns_api.rb +223 -0
  92. data/lib/whoisfreaks/api/databases_expiring_dropped_api.rb +377 -0
  93. data/lib/whoisfreaks/api/databases_ip_geolocation_api.rb +292 -0
  94. data/lib/whoisfreaks/api/databases_ip_security_api.rb +157 -0
  95. data/lib/whoisfreaks/api/databases_ipwhois_api.rb +157 -0
  96. data/lib/whoisfreaks/api/databases_newly_registered_api.rb +517 -0
  97. data/lib/whoisfreaks/api/databases_subdomains_api.rb +223 -0
  98. data/lib/whoisfreaks/api/databases_whois_api.rb +223 -0
  99. data/lib/whoisfreaks/api/dns_api.rb +379 -0
  100. data/lib/whoisfreaks/api/domain_availability_api.rb +199 -0
  101. data/lib/whoisfreaks/api/domain_reputation_api.rb +100 -0
  102. data/lib/whoisfreaks/api/geolocation_api.rb +168 -0
  103. data/lib/whoisfreaks/api/ip_reputation_api.rb +168 -0
  104. data/lib/whoisfreaks/api/ipwhois_api.rb +100 -0
  105. data/lib/whoisfreaks/api/ssl_api.rb +106 -0
  106. data/lib/whoisfreaks/api/subdomains_api.rb +116 -0
  107. data/lib/whoisfreaks/api/typosquatting_api.rb +95 -0
  108. data/lib/whoisfreaks/api/whois_api.rb +293 -0
  109. data/lib/whoisfreaks/api_client.rb +437 -0
  110. data/lib/whoisfreaks/api_error.rb +58 -0
  111. data/lib/whoisfreaks/configuration.rb +588 -0
  112. data/lib/whoisfreaks/models/account_usage_response.rb +232 -0
  113. data/lib/whoisfreaks/models/account_usage_response_api_credits.rb +223 -0
  114. data/lib/whoisfreaks/models/account_usage_response_api_subscription.rb +250 -0
  115. data/lib/whoisfreaks/models/asn_whois_response.rb +261 -0
  116. data/lib/whoisfreaks/models/asn_whois_response_aut_nums_inner.rb +252 -0
  117. data/lib/whoisfreaks/models/asn_whois_response_organization.rb +243 -0
  118. data/lib/whoisfreaks/models/bulk_domain_availability_request.rb +268 -0
  119. data/lib/whoisfreaks/models/bulk_domain_availability_v2_item.rb +268 -0
  120. data/lib/whoisfreaks/models/bulk_domain_availability_v2_response.rb +217 -0
  121. data/lib/whoisfreaks/models/bulk_geolocation_request.rb +242 -0
  122. data/lib/whoisfreaks/models/bulk_whois200_response.rb +216 -0
  123. data/lib/whoisfreaks/models/bulk_whois_request.rb +242 -0
  124. data/lib/whoisfreaks/models/contact.rb +304 -0
  125. data/lib/whoisfreaks/models/database_file_status.rb +243 -0
  126. data/lib/whoisfreaks/models/database_file_status_newly_value.rb +223 -0
  127. data/lib/whoisfreaks/models/dns_bulk200_response.rb +216 -0
  128. data/lib/whoisfreaks/models/dns_bulk_request.rb +227 -0
  129. data/lib/whoisfreaks/models/dns_record.rb +286 -0
  130. data/lib/whoisfreaks/models/dns_response.rb +254 -0
  131. data/lib/whoisfreaks/models/domain_availability_v2_item.rb +260 -0
  132. data/lib/whoisfreaks/models/domain_availability_v2_response.rb +217 -0
  133. data/lib/whoisfreaks/models/domain_reputation_dga_features.rb +268 -0
  134. data/lib/whoisfreaks/models/domain_reputation_dga_score.rb +312 -0
  135. data/lib/whoisfreaks/models/domain_reputation_evidence_summary.rb +216 -0
  136. data/lib/whoisfreaks/models/domain_reputation_indicators.rb +286 -0
  137. data/lib/whoisfreaks/models/domain_reputation_input.rb +215 -0
  138. data/lib/whoisfreaks/models/domain_reputation_intelligence.rb +317 -0
  139. data/lib/whoisfreaks/models/domain_reputation_pivot_match.rb +304 -0
  140. data/lib/whoisfreaks/models/domain_reputation_related_ioc.rb +294 -0
  141. data/lib/whoisfreaks/models/domain_reputation_response.rb +297 -0
  142. data/lib/whoisfreaks/models/domain_reputation_risk_category.rb +349 -0
  143. data/lib/whoisfreaks/models/domain_reputation_signal.rb +333 -0
  144. data/lib/whoisfreaks/models/domain_reputation_signals.rb +238 -0
  145. data/lib/whoisfreaks/models/domain_reputation_trust_signals.rb +303 -0
  146. data/lib/whoisfreaks/models/error_response.rb +250 -0
  147. data/lib/whoisfreaks/models/geolocation_asn.rb +250 -0
  148. data/lib/whoisfreaks/models/geolocation_location.rb +304 -0
  149. data/lib/whoisfreaks/models/geolocation_response.rb +241 -0
  150. data/lib/whoisfreaks/models/geolocation_response_currency.rb +232 -0
  151. data/lib/whoisfreaks/models/geolocation_response_network.rb +214 -0
  152. data/lib/whoisfreaks/models/historical_dns_response.rb +243 -0
  153. data/lib/whoisfreaks/models/ip_reputation_response.rb +241 -0
  154. data/lib/whoisfreaks/models/ip_reputation_security.rb +322 -0
  155. data/lib/whoisfreaks/models/ip_whois_response.rb +272 -0
  156. data/lib/whoisfreaks/models/ip_whois_response_abuse_contacts_inner.rb +234 -0
  157. data/lib/whoisfreaks/models/ip_whois_response_inet_nums_inner.rb +261 -0
  158. data/lib/whoisfreaks/models/ip_whois_response_organization.rb +252 -0
  159. data/lib/whoisfreaks/models/registrar.rb +268 -0
  160. data/lib/whoisfreaks/models/reverse_dns_response.rb +243 -0
  161. data/lib/whoisfreaks/models/reverse_whois_response.rb +243 -0
  162. data/lib/whoisfreaks/models/snapshot_status.rb +250 -0
  163. data/lib/whoisfreaks/models/ssl_certificate.rb +320 -0
  164. data/lib/whoisfreaks/models/ssl_response.rb +234 -0
  165. data/lib/whoisfreaks/models/subdomain.rb +241 -0
  166. data/lib/whoisfreaks/models/subdomains_response.rb +270 -0
  167. data/lib/whoisfreaks/models/typosquatting_domain.rb +250 -0
  168. data/lib/whoisfreaks/models/typosquatting_response.rb +270 -0
  169. data/lib/whoisfreaks/models/whois_historical_or_reverse200_response.rb +105 -0
  170. data/lib/whoisfreaks/models/whois_historical_response.rb +277 -0
  171. data/lib/whoisfreaks/models/whois_response.rb +362 -0
  172. data/lib/whoisfreaks/version.rb +15 -0
  173. data/lib/whoisfreaks.rb +120 -0
  174. data/spec/api/account_api_spec.rb +70 -0
  175. data/spec/api/asnwhois_api_spec.rb +49 -0
  176. data/spec/api/databases_asnwhois_api_spec.rb +60 -0
  177. data/spec/api/databases_dns_api_spec.rb +74 -0
  178. data/spec/api/databases_expiring_dropped_api_spec.rb +104 -0
  179. data/spec/api/databases_ip_geolocation_api_spec.rb +85 -0
  180. data/spec/api/databases_ip_security_api_spec.rb +60 -0
  181. data/spec/api/databases_ipwhois_api_spec.rb +60 -0
  182. data/spec/api/databases_newly_registered_api_spec.rb +132 -0
  183. data/spec/api/databases_subdomains_api_spec.rb +74 -0
  184. data/spec/api/databases_whois_api_spec.rb +74 -0
  185. data/spec/api/dns_api_spec.rb +99 -0
  186. data/spec/api/domain_availability_api_spec.rb +66 -0
  187. data/spec/api/domain_reputation_api_spec.rb +49 -0
  188. data/spec/api/geolocation_api_spec.rb +61 -0
  189. data/spec/api/ip_reputation_api_spec.rb +61 -0
  190. data/spec/api/ipwhois_api_spec.rb +49 -0
  191. data/spec/api/ssl_api_spec.rb +51 -0
  192. data/spec/api/subdomains_api_spec.rb +53 -0
  193. data/spec/api/typosquatting_api_spec.rb +50 -0
  194. data/spec/api/whois_api_spec.rb +85 -0
  195. data/spec/models/account_usage_response_api_credits_spec.rb +42 -0
  196. data/spec/models/account_usage_response_api_subscription_spec.rb +60 -0
  197. data/spec/models/account_usage_response_spec.rb +48 -0
  198. data/spec/models/asn_whois_response_aut_nums_inner_spec.rb +60 -0
  199. data/spec/models/asn_whois_response_organization_spec.rb +54 -0
  200. data/spec/models/asn_whois_response_spec.rb +66 -0
  201. data/spec/models/bulk_domain_availability_request_spec.rb +42 -0
  202. data/spec/models/bulk_domain_availability_v2_item_spec.rb +52 -0
  203. data/spec/models/bulk_domain_availability_v2_response_spec.rb +36 -0
  204. data/spec/models/bulk_geolocation_request_spec.rb +36 -0
  205. data/spec/models/bulk_whois200_response_spec.rb +36 -0
  206. data/spec/models/bulk_whois_request_spec.rb +36 -0
  207. data/spec/models/contact_spec.rb +96 -0
  208. data/spec/models/database_file_status_newly_value_spec.rb +42 -0
  209. data/spec/models/database_file_status_spec.rb +54 -0
  210. data/spec/models/dns_bulk200_response_spec.rb +36 -0
  211. data/spec/models/dns_bulk_request_spec.rb +42 -0
  212. data/spec/models/dns_record_spec.rb +84 -0
  213. data/spec/models/dns_response_spec.rb +60 -0
  214. data/spec/models/domain_availability_v2_item_spec.rb +46 -0
  215. data/spec/models/domain_availability_v2_response_spec.rb +36 -0
  216. data/spec/models/domain_reputation_dga_features_spec.rb +72 -0
  217. data/spec/models/domain_reputation_dga_score_spec.rb +64 -0
  218. data/spec/models/domain_reputation_evidence_summary_spec.rb +36 -0
  219. data/spec/models/domain_reputation_indicators_spec.rb +84 -0
  220. data/spec/models/domain_reputation_input_spec.rb +36 -0
  221. data/spec/models/domain_reputation_intelligence_spec.rb +82 -0
  222. data/spec/models/domain_reputation_pivot_match_spec.rb +58 -0
  223. data/spec/models/domain_reputation_related_ioc_spec.rb +52 -0
  224. data/spec/models/domain_reputation_response_spec.rb +90 -0
  225. data/spec/models/domain_reputation_risk_category_spec.rb +80 -0
  226. data/spec/models/domain_reputation_signal_spec.rb +74 -0
  227. data/spec/models/domain_reputation_signals_spec.rb +48 -0
  228. data/spec/models/domain_reputation_trust_signals_spec.rb +58 -0
  229. data/spec/models/error_response_spec.rb +60 -0
  230. data/spec/models/geolocation_asn_spec.rb +60 -0
  231. data/spec/models/geolocation_location_spec.rb +96 -0
  232. data/spec/models/geolocation_response_currency_spec.rb +48 -0
  233. data/spec/models/geolocation_response_network_spec.rb +36 -0
  234. data/spec/models/geolocation_response_spec.rb +54 -0
  235. data/spec/models/historical_dns_response_spec.rb +54 -0
  236. data/spec/models/ip_reputation_response_spec.rb +54 -0
  237. data/spec/models/ip_reputation_security_spec.rb +108 -0
  238. data/spec/models/ip_whois_response_abuse_contacts_inner_spec.rb +48 -0
  239. data/spec/models/ip_whois_response_inet_nums_inner_spec.rb +66 -0
  240. data/spec/models/ip_whois_response_organization_spec.rb +60 -0
  241. data/spec/models/ip_whois_response_spec.rb +72 -0
  242. data/spec/models/registrar_spec.rb +72 -0
  243. data/spec/models/reverse_dns_response_spec.rb +54 -0
  244. data/spec/models/reverse_whois_response_spec.rb +54 -0
  245. data/spec/models/snapshot_status_spec.rb +60 -0
  246. data/spec/models/ssl_certificate_spec.rb +88 -0
  247. data/spec/models/ssl_response_spec.rb +48 -0
  248. data/spec/models/subdomain_spec.rb +54 -0
  249. data/spec/models/subdomains_response_spec.rb +72 -0
  250. data/spec/models/typosquatting_domain_spec.rb +60 -0
  251. data/spec/models/typosquatting_response_spec.rb +72 -0
  252. data/spec/models/whois_historical_or_reverse200_response_spec.rb +32 -0
  253. data/spec/models/whois_historical_response_spec.rb +58 -0
  254. data/spec/models/whois_response_spec.rb +132 -0
  255. data/spec/spec_helper.rb +111 -0
  256. data/whoisfreaks.gemspec +41 -0
  257. metadata +451 -0
@@ -0,0 +1,155 @@
1
+ # WhoisFreaks::GeolocationApi
2
+
3
+ All URIs are relative to *https://api.whoisfreaks.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**bulk_geolocation**](GeolocationApi.md#bulk_geolocation) | **POST** /v1.0/geolocation | Bulk IP Geolocation |
8
+ | [**geolocation**](GeolocationApi.md#geolocation) | **GET** /v1.0/geolocation | IP Geolocation Lookup |
9
+
10
+
11
+ ## bulk_geolocation
12
+
13
+ > <Array<GeolocationResponse>> bulk_geolocation(api_key, bulk_geolocation_request)
14
+
15
+ Bulk IP Geolocation
16
+
17
+ Up to 100 IPs.
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'whoisfreaks'
24
+ # setup authorization
25
+ WhoisFreaks.configure do |config|
26
+ # Configure API key authorization: ApiKeyAuth
27
+ config.api_key['apiKey'] = 'YOUR API KEY'
28
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
29
+ # config.api_key_prefix['apiKey'] = 'Bearer'
30
+ end
31
+
32
+ api_instance = WhoisFreaks::GeolocationApi.new
33
+ api_key = 'api_key_example' # String | Your WHOISFreaks API key
34
+ bulk_geolocation_request = WhoisFreaks::BulkGeolocationRequest.new({ips: ['ips_example']}) # BulkGeolocationRequest |
35
+
36
+ begin
37
+ # Bulk IP Geolocation
38
+ result = api_instance.bulk_geolocation(api_key, bulk_geolocation_request)
39
+ p result
40
+ rescue WhoisFreaks::ApiError => e
41
+ puts "Error when calling GeolocationApi->bulk_geolocation: #{e}"
42
+ end
43
+ ```
44
+
45
+ #### Using the bulk_geolocation_with_http_info variant
46
+
47
+ This returns an Array which contains the response data, status code and headers.
48
+
49
+ > <Array(<Array<GeolocationResponse>>, Integer, Hash)> bulk_geolocation_with_http_info(api_key, bulk_geolocation_request)
50
+
51
+ ```ruby
52
+ begin
53
+ # Bulk IP Geolocation
54
+ data, status_code, headers = api_instance.bulk_geolocation_with_http_info(api_key, bulk_geolocation_request)
55
+ p status_code # => 2xx
56
+ p headers # => { ... }
57
+ p data # => <Array<GeolocationResponse>>
58
+ rescue WhoisFreaks::ApiError => e
59
+ puts "Error when calling GeolocationApi->bulk_geolocation_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
+ | **bulk_geolocation_request** | [**BulkGeolocationRequest**](BulkGeolocationRequest.md) | | |
69
+
70
+ ### Return type
71
+
72
+ [**Array&lt;GeolocationResponse&gt;**](GeolocationResponse.md)
73
+
74
+ ### Authorization
75
+
76
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: application/json
81
+ - **Accept**: application/json
82
+
83
+
84
+ ## geolocation
85
+
86
+ > <GeolocationResponse> geolocation(api_key, ip)
87
+
88
+ IP Geolocation Lookup
89
+
90
+ Get location, ASN, currency for an IP. 1 credit.
91
+
92
+ ### Examples
93
+
94
+ ```ruby
95
+ require 'time'
96
+ require 'whoisfreaks'
97
+ # setup authorization
98
+ WhoisFreaks.configure do |config|
99
+ # Configure API key authorization: ApiKeyAuth
100
+ config.api_key['apiKey'] = 'YOUR API KEY'
101
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
102
+ # config.api_key_prefix['apiKey'] = 'Bearer'
103
+ end
104
+
105
+ api_instance = WhoisFreaks::GeolocationApi.new
106
+ api_key = 'api_key_example' # String | Your WHOISFreaks API key
107
+ ip = 'ip_example' # String |
108
+
109
+ begin
110
+ # IP Geolocation Lookup
111
+ result = api_instance.geolocation(api_key, ip)
112
+ p result
113
+ rescue WhoisFreaks::ApiError => e
114
+ puts "Error when calling GeolocationApi->geolocation: #{e}"
115
+ end
116
+ ```
117
+
118
+ #### Using the geolocation_with_http_info variant
119
+
120
+ This returns an Array which contains the response data, status code and headers.
121
+
122
+ > <Array(<GeolocationResponse>, Integer, Hash)> geolocation_with_http_info(api_key, ip)
123
+
124
+ ```ruby
125
+ begin
126
+ # IP Geolocation Lookup
127
+ data, status_code, headers = api_instance.geolocation_with_http_info(api_key, ip)
128
+ p status_code # => 2xx
129
+ p headers # => { ... }
130
+ p data # => <GeolocationResponse>
131
+ rescue WhoisFreaks::ApiError => e
132
+ puts "Error when calling GeolocationApi->geolocation_with_http_info: #{e}"
133
+ end
134
+ ```
135
+
136
+ ### Parameters
137
+
138
+ | Name | Type | Description | Notes |
139
+ | ---- | ---- | ----------- | ----- |
140
+ | **api_key** | **String** | Your WHOISFreaks API key | |
141
+ | **ip** | **String** | | |
142
+
143
+ ### Return type
144
+
145
+ [**GeolocationResponse**](GeolocationResponse.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
+
@@ -0,0 +1,26 @@
1
+ # WhoisFreaks::GeolocationAsn
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **as_number** | **String** | | [optional] |
8
+ | **organization** | **String** | | [optional] |
9
+ | **type** | **String** | | [optional] |
10
+ | **domain** | **String** | | [optional] |
11
+ | **rir** | **String** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'whoisfreaks'
17
+
18
+ instance = WhoisFreaks::GeolocationAsn.new(
19
+ as_number: null,
20
+ organization: null,
21
+ type: null,
22
+ domain: null,
23
+ rir: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,38 @@
1
+ # WhoisFreaks::GeolocationLocation
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **continent_code** | **String** | | [optional] |
8
+ | **continent_name** | **String** | | [optional] |
9
+ | **country_code2** | **String** | | [optional] |
10
+ | **country_code3** | **String** | | [optional] |
11
+ | **country_name** | **String** | | [optional] |
12
+ | **state_prov** | **String** | | [optional] |
13
+ | **city** | **String** | | [optional] |
14
+ | **zipcode** | **String** | | [optional] |
15
+ | **latitude** | **String** | | [optional] |
16
+ | **longitude** | **String** | | [optional] |
17
+ | **is_eu** | **Boolean** | | [optional] |
18
+
19
+ ## Example
20
+
21
+ ```ruby
22
+ require 'whoisfreaks'
23
+
24
+ instance = WhoisFreaks::GeolocationLocation.new(
25
+ continent_code: null,
26
+ continent_name: null,
27
+ country_code2: null,
28
+ country_code3: null,
29
+ country_name: null,
30
+ state_prov: null,
31
+ city: null,
32
+ zipcode: null,
33
+ latitude: null,
34
+ longitude: null,
35
+ is_eu: null
36
+ )
37
+ ```
38
+
@@ -0,0 +1,24 @@
1
+ # WhoisFreaks::GeolocationResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **ip** | **String** | | [optional] |
8
+ | **location** | [**GeolocationLocation**](GeolocationLocation.md) | | [optional] |
9
+ | **network** | [**GeolocationResponseNetwork**](GeolocationResponseNetwork.md) | | [optional] |
10
+ | **currency** | [**GeolocationResponseCurrency**](GeolocationResponseCurrency.md) | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'whoisfreaks'
16
+
17
+ instance = WhoisFreaks::GeolocationResponse.new(
18
+ ip: null,
19
+ location: null,
20
+ network: null,
21
+ currency: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,22 @@
1
+ # WhoisFreaks::GeolocationResponseCurrency
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **code** | **String** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+ | **symbol** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'whoisfreaks'
15
+
16
+ instance = WhoisFreaks::GeolocationResponseCurrency.new(
17
+ code: null,
18
+ name: null,
19
+ symbol: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,18 @@
1
+ # WhoisFreaks::GeolocationResponseNetwork
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **asn** | [**GeolocationAsn**](GeolocationAsn.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'whoisfreaks'
13
+
14
+ instance = WhoisFreaks::GeolocationResponseNetwork.new(
15
+ asn: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,24 @@
1
+ # WhoisFreaks::HistoricalDnsResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **total_records** | **Integer** | | [optional] |
8
+ | **total_pages** | **Integer** | | [optional] |
9
+ | **current_page** | **Integer** | | [optional] |
10
+ | **historical_dns_records** | [**Array&lt;DnsResponse&gt;**](DnsResponse.md) | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'whoisfreaks'
16
+
17
+ instance = WhoisFreaks::HistoricalDnsResponse.new(
18
+ total_records: null,
19
+ total_pages: null,
20
+ current_page: null,
21
+ historical_dns_records: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,155 @@
1
+ # WhoisFreaks::IPReputationApi
2
+
3
+ All URIs are relative to *https://api.whoisfreaks.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**bulk_ip_reputation**](IPReputationApi.md#bulk_ip_reputation) | **POST** /v1.0/security | Bulk IP Reputation |
8
+ | [**ip_reputation**](IPReputationApi.md#ip_reputation) | **GET** /v1.0/security | IP Reputation Lookup |
9
+
10
+
11
+ ## bulk_ip_reputation
12
+
13
+ > <Array<IpReputationResponse>> bulk_ip_reputation(api_key, bulk_geolocation_request)
14
+
15
+ Bulk IP Reputation
16
+
17
+ Up to 100 IPs.
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'whoisfreaks'
24
+ # setup authorization
25
+ WhoisFreaks.configure do |config|
26
+ # Configure API key authorization: ApiKeyAuth
27
+ config.api_key['apiKey'] = 'YOUR API KEY'
28
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
29
+ # config.api_key_prefix['apiKey'] = 'Bearer'
30
+ end
31
+
32
+ api_instance = WhoisFreaks::IPReputationApi.new
33
+ api_key = 'api_key_example' # String | Your WHOISFreaks API key
34
+ bulk_geolocation_request = WhoisFreaks::BulkGeolocationRequest.new({ips: ['ips_example']}) # BulkGeolocationRequest |
35
+
36
+ begin
37
+ # Bulk IP Reputation
38
+ result = api_instance.bulk_ip_reputation(api_key, bulk_geolocation_request)
39
+ p result
40
+ rescue WhoisFreaks::ApiError => e
41
+ puts "Error when calling IPReputationApi->bulk_ip_reputation: #{e}"
42
+ end
43
+ ```
44
+
45
+ #### Using the bulk_ip_reputation_with_http_info variant
46
+
47
+ This returns an Array which contains the response data, status code and headers.
48
+
49
+ > <Array(<Array<IpReputationResponse>>, Integer, Hash)> bulk_ip_reputation_with_http_info(api_key, bulk_geolocation_request)
50
+
51
+ ```ruby
52
+ begin
53
+ # Bulk IP Reputation
54
+ data, status_code, headers = api_instance.bulk_ip_reputation_with_http_info(api_key, bulk_geolocation_request)
55
+ p status_code # => 2xx
56
+ p headers # => { ... }
57
+ p data # => <Array<IpReputationResponse>>
58
+ rescue WhoisFreaks::ApiError => e
59
+ puts "Error when calling IPReputationApi->bulk_ip_reputation_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
+ | **bulk_geolocation_request** | [**BulkGeolocationRequest**](BulkGeolocationRequest.md) | | |
69
+
70
+ ### Return type
71
+
72
+ [**Array&lt;IpReputationResponse&gt;**](IpReputationResponse.md)
73
+
74
+ ### Authorization
75
+
76
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: application/json
81
+ - **Accept**: application/json
82
+
83
+
84
+ ## ip_reputation
85
+
86
+ > <IpReputationResponse> ip_reputation(api_key, ip)
87
+
88
+ IP Reputation Lookup
89
+
90
+ Threat intel for IP — VPN, proxy, Tor, bots. 1 credit.
91
+
92
+ ### Examples
93
+
94
+ ```ruby
95
+ require 'time'
96
+ require 'whoisfreaks'
97
+ # setup authorization
98
+ WhoisFreaks.configure do |config|
99
+ # Configure API key authorization: ApiKeyAuth
100
+ config.api_key['apiKey'] = 'YOUR API KEY'
101
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
102
+ # config.api_key_prefix['apiKey'] = 'Bearer'
103
+ end
104
+
105
+ api_instance = WhoisFreaks::IPReputationApi.new
106
+ api_key = 'api_key_example' # String | Your WHOISFreaks API key
107
+ ip = 'ip_example' # String |
108
+
109
+ begin
110
+ # IP Reputation Lookup
111
+ result = api_instance.ip_reputation(api_key, ip)
112
+ p result
113
+ rescue WhoisFreaks::ApiError => e
114
+ puts "Error when calling IPReputationApi->ip_reputation: #{e}"
115
+ end
116
+ ```
117
+
118
+ #### Using the ip_reputation_with_http_info variant
119
+
120
+ This returns an Array which contains the response data, status code and headers.
121
+
122
+ > <Array(<IpReputationResponse>, Integer, Hash)> ip_reputation_with_http_info(api_key, ip)
123
+
124
+ ```ruby
125
+ begin
126
+ # IP Reputation Lookup
127
+ data, status_code, headers = api_instance.ip_reputation_with_http_info(api_key, ip)
128
+ p status_code # => 2xx
129
+ p headers # => { ... }
130
+ p data # => <IpReputationResponse>
131
+ rescue WhoisFreaks::ApiError => e
132
+ puts "Error when calling IPReputationApi->ip_reputation_with_http_info: #{e}"
133
+ end
134
+ ```
135
+
136
+ ### Parameters
137
+
138
+ | Name | Type | Description | Notes |
139
+ | ---- | ---- | ----------- | ----- |
140
+ | **api_key** | **String** | Your WHOISFreaks API key | |
141
+ | **ip** | **String** | | |
142
+
143
+ ### Return type
144
+
145
+ [**IpReputationResponse**](IpReputationResponse.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
+
@@ -0,0 +1,85 @@
1
+ # WhoisFreaks::IPWHOISApi
2
+
3
+ All URIs are relative to *https://api.whoisfreaks.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**ip_whois**](IPWHOISApi.md#ip_whois) | **GET** /v1.0/ip-whois | IP WHOIS Lookup |
8
+
9
+
10
+ ## ip_whois
11
+
12
+ > <IpWhoisResponse> ip_whois(api_key, ip, opts)
13
+
14
+ IP WHOIS Lookup
15
+
16
+ WHOIS for an IP address. 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::IPWHOISApi.new
32
+ api_key = 'api_key_example' # String | Your WHOISFreaks API key
33
+ ip = 'ip_example' # String |
34
+ opts = {
35
+ format: 'json' # String |
36
+ }
37
+
38
+ begin
39
+ # IP WHOIS Lookup
40
+ result = api_instance.ip_whois(api_key, ip, opts)
41
+ p result
42
+ rescue WhoisFreaks::ApiError => e
43
+ puts "Error when calling IPWHOISApi->ip_whois: #{e}"
44
+ end
45
+ ```
46
+
47
+ #### Using the ip_whois_with_http_info variant
48
+
49
+ This returns an Array which contains the response data, status code and headers.
50
+
51
+ > <Array(<IpWhoisResponse>, Integer, Hash)> ip_whois_with_http_info(api_key, ip, opts)
52
+
53
+ ```ruby
54
+ begin
55
+ # IP WHOIS Lookup
56
+ data, status_code, headers = api_instance.ip_whois_with_http_info(api_key, ip, opts)
57
+ p status_code # => 2xx
58
+ p headers # => { ... }
59
+ p data # => <IpWhoisResponse>
60
+ rescue WhoisFreaks::ApiError => e
61
+ puts "Error when calling IPWHOISApi->ip_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
+ | **ip** | **String** | | |
71
+ | **format** | **String** | | [optional][default to &#39;json&#39;] |
72
+
73
+ ### Return type
74
+
75
+ [**IpWhoisResponse**](IpWhoisResponse.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
+
@@ -0,0 +1,24 @@
1
+ # WhoisFreaks::IpReputationResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **ip** | **String** | | [optional] |
8
+ | **location** | [**GeolocationLocation**](GeolocationLocation.md) | | [optional] |
9
+ | **asn** | [**GeolocationAsn**](GeolocationAsn.md) | | [optional] |
10
+ | **security** | [**IpReputationSecurity**](IpReputationSecurity.md) | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'whoisfreaks'
16
+
17
+ instance = WhoisFreaks::IpReputationResponse.new(
18
+ ip: null,
19
+ location: null,
20
+ asn: null,
21
+ security: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,42 @@
1
+ # WhoisFreaks::IpReputationSecurity
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **threat_score** | **Integer** | | [optional] |
8
+ | **is_tor** | **Boolean** | | [optional] |
9
+ | **is_proxy** | **Boolean** | | [optional] |
10
+ | **proxy_confidence_score** | **Integer** | | [optional] |
11
+ | **is_residential_proxy** | **Boolean** | | [optional] |
12
+ | **is_vpn** | **Boolean** | | [optional] |
13
+ | **vpn_confidence_score** | **Integer** | | [optional] |
14
+ | **is_anonymous** | **Boolean** | | [optional] |
15
+ | **is_known_attacker** | **Boolean** | | [optional] |
16
+ | **is_bot** | **Boolean** | | [optional] |
17
+ | **is_spam** | **Boolean** | | [optional] |
18
+ | **is_cloud_provider** | **Boolean** | | [optional] |
19
+ | **cloud_provider_name** | **String** | | [optional] |
20
+
21
+ ## Example
22
+
23
+ ```ruby
24
+ require 'whoisfreaks'
25
+
26
+ instance = WhoisFreaks::IpReputationSecurity.new(
27
+ threat_score: null,
28
+ is_tor: null,
29
+ is_proxy: null,
30
+ proxy_confidence_score: null,
31
+ is_residential_proxy: null,
32
+ is_vpn: null,
33
+ vpn_confidence_score: null,
34
+ is_anonymous: null,
35
+ is_known_attacker: null,
36
+ is_bot: null,
37
+ is_spam: null,
38
+ is_cloud_provider: null,
39
+ cloud_provider_name: null
40
+ )
41
+ ```
42
+
@@ -0,0 +1,30 @@
1
+ # WhoisFreaks::IpWhoisResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | **Boolean** | | [optional] |
8
+ | **ip_address** | **String** | | [optional] |
9
+ | **query_time** | **String** | | [optional] |
10
+ | **whois_server** | **String** | | [optional] |
11
+ | **inet_nums** | [**Array&lt;IpWhoisResponseInetNumsInner&gt;**](IpWhoisResponseInetNumsInner.md) | | [optional] |
12
+ | **organization** | [**IpWhoisResponseOrganization**](IpWhoisResponseOrganization.md) | | [optional] |
13
+ | **abuse_contacts** | [**Array&lt;IpWhoisResponseAbuseContactsInner&gt;**](IpWhoisResponseAbuseContactsInner.md) | | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'whoisfreaks'
19
+
20
+ instance = WhoisFreaks::IpWhoisResponse.new(
21
+ status: null,
22
+ ip_address: null,
23
+ query_time: null,
24
+ whois_server: null,
25
+ inet_nums: null,
26
+ organization: null,
27
+ abuse_contacts: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,22 @@
1
+ # WhoisFreaks::IpWhoisResponseAbuseContactsInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **handle** | **String** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+ | **email** | **Array&lt;String&gt;** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'whoisfreaks'
15
+
16
+ instance = WhoisFreaks::IpWhoisResponseAbuseContactsInner.new(
17
+ handle: null,
18
+ name: null,
19
+ email: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,28 @@
1
+ # WhoisFreaks::IpWhoisResponseInetNumsInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **start_ip** | **String** | | [optional] |
8
+ | **end_ip** | **String** | | [optional] |
9
+ | **cidr** | **Array&lt;String&gt;** | | [optional] |
10
+ | **net_name** | **String** | | [optional] |
11
+ | **organization** | **String** | | [optional] |
12
+ | **status** | **String** | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'whoisfreaks'
18
+
19
+ instance = WhoisFreaks::IpWhoisResponseInetNumsInner.new(
20
+ start_ip: null,
21
+ end_ip: null,
22
+ cidr: null,
23
+ net_name: null,
24
+ organization: null,
25
+ status: null
26
+ )
27
+ ```
28
+