cloudmersive-validate-api-client 2.0.6 → 2.1.1

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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -4
  3. data/docs/AddressApi.md +220 -0
  4. data/docs/CountryDetails.md +5 -0
  5. data/docs/DomainApi.md +55 -0
  6. data/docs/DomainQualityResponse.md +8 -0
  7. data/docs/GeolocateStreetAddressResponse.md +13 -0
  8. data/docs/IPAddressApi.md +55 -0
  9. data/docs/ReverseGeocodeAddressRequest.md +9 -0
  10. data/docs/ReverseGeocodeAddressResponse.md +14 -0
  11. data/docs/TextInputApi.md +118 -0
  12. data/docs/ValidateCountryResponse.md +5 -0
  13. data/docs/XssProtectionResult.md +11 -0
  14. data/lib/cloudmersive-validate-api-client.rb +6 -0
  15. data/lib/cloudmersive-validate-api-client/api/address_api.rb +216 -0
  16. data/lib/cloudmersive-validate-api-client/api/domain_api.rb +54 -0
  17. data/lib/cloudmersive-validate-api-client/api/ip_address_api.rb +54 -0
  18. data/lib/cloudmersive-validate-api-client/api/text_input_api.rb +131 -0
  19. data/lib/cloudmersive-validate-api-client/models/country_details.rb +54 -4
  20. data/lib/cloudmersive-validate-api-client/models/domain_quality_response.rb +186 -0
  21. data/lib/cloudmersive-validate-api-client/models/geolocate_street_address_response.rb +236 -0
  22. data/lib/cloudmersive-validate-api-client/models/reverse_geocode_address_request.rb +196 -0
  23. data/lib/cloudmersive-validate-api-client/models/reverse_geocode_address_response.rb +246 -0
  24. data/lib/cloudmersive-validate-api-client/models/validate_country_response.rb +54 -4
  25. data/lib/cloudmersive-validate-api-client/models/xss_protection_result.rb +216 -0
  26. data/lib/cloudmersive-validate-api-client/version.rb +1 -1
  27. data/spec/api/address_api_spec.rb +48 -0
  28. data/spec/api/domain_api_spec.rb +12 -0
  29. data/spec/api/ip_address_api_spec.rb +12 -0
  30. data/spec/api/text_input_api_spec.rb +59 -0
  31. data/spec/models/country_details_spec.rb +30 -0
  32. data/spec/models/domain_quality_response_spec.rb +41 -0
  33. data/spec/models/geolocate_street_address_response_spec.rb +71 -0
  34. data/spec/models/reverse_geocode_address_request_spec.rb +47 -0
  35. data/spec/models/reverse_geocode_address_response_spec.rb +77 -0
  36. data/spec/models/validate_country_response_spec.rb +30 -0
  37. data/spec/models/xss_protection_result_spec.rb +59 -0
  38. metadata +20 -2
@@ -4,11 +4,66 @@ All URIs are relative to *https://api.cloudmersive.com*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**i_p_address_geolocate_street_address**](IPAddressApi.md#i_p_address_geolocate_street_address) | **POST** /validate/ip/geolocate/street-address | Geolocate an IP address to a street address
7
8
  [**i_p_address_is_threat**](IPAddressApi.md#i_p_address_is_threat) | **POST** /validate/ip/is-threat | Check if IP address is a known threat
8
9
  [**i_p_address_is_tor_node**](IPAddressApi.md#i_p_address_is_tor_node) | **POST** /validate/ip/is-tor-node | Check if IP address is a Tor node server
9
10
  [**i_p_address_post**](IPAddressApi.md#i_p_address_post) | **POST** /validate/ip/geolocate | Geolocate an IP address
10
11
 
11
12
 
13
+ # **i_p_address_geolocate_street_address**
14
+ > GeolocateStreetAddressResponse i_p_address_geolocate_street_address(value)
15
+
16
+ Geolocate an IP address to a street address
17
+
18
+ Identify an IP address's street address. Useful for security and UX applications.
19
+
20
+ ### Example
21
+ ```ruby
22
+ # load the gem
23
+ require 'cloudmersive-validate-api-client'
24
+ # setup authorization
25
+ CloudmersiveValidateApiClient.configure do |config|
26
+ # Configure API key authorization: Apikey
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 = CloudmersiveValidateApiClient::IPAddressApi.new
33
+
34
+ value = 'value_example' # String | IP address to geolocate, e.g. \"55.55.55.55\". The input is a string so be sure to enclose it in double-quotes.
35
+
36
+
37
+ begin
38
+ #Geolocate an IP address to a street address
39
+ result = api_instance.i_p_address_geolocate_street_address(value)
40
+ p result
41
+ rescue CloudmersiveValidateApiClient::ApiError => e
42
+ puts "Exception when calling IPAddressApi->i_p_address_geolocate_street_address: #{e}"
43
+ end
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+ Name | Type | Description | Notes
49
+ ------------- | ------------- | ------------- | -------------
50
+ **value** | **String**| IP address to geolocate, e.g. \"55.55.55.55\". The input is a string so be sure to enclose it in double-quotes. |
51
+
52
+ ### Return type
53
+
54
+ [**GeolocateStreetAddressResponse**](GeolocateStreetAddressResponse.md)
55
+
56
+ ### Authorization
57
+
58
+ [Apikey](../README.md#Apikey)
59
+
60
+ ### HTTP request headers
61
+
62
+ - **Content-Type**: text/javascript, application/json, text/json
63
+ - **Accept**: application/json, text/json, application/xml, text/xml
64
+
65
+
66
+
12
67
  # **i_p_address_is_threat**
13
68
  > IPThreatResponse i_p_address_is_threat(value)
14
69
 
@@ -0,0 +1,9 @@
1
+ # CloudmersiveValidateApiClient::ReverseGeocodeAddressRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **latitude** | **Float** | Latitude coordinate in WGS84 format | [optional]
7
+ **longitude** | **Float** | Longitude coordinate in WGS84 format | [optional]
8
+
9
+
@@ -0,0 +1,14 @@
1
+ # CloudmersiveValidateApiClient::ReverseGeocodeAddressResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the address operation was successful, false otherwise | [optional]
7
+ **street_address** | **String** | Street address to validate, such as '2950 Buskirk Ave.' | [optional]
8
+ **city** | **String** | City part of the addrerss to validate, such as 'Walnut Creek' | [optional]
9
+ **state_or_province** | **String** | State or province of the address to validate, such as 'CA' or 'California' | [optional]
10
+ **postal_code** | **String** | Zip code or postal code of the address to validate, such as '94597' | [optional]
11
+ **country_full_name** | **String** | Name of the country, such as 'United States'. Global countries are supported. | [optional]
12
+ **country_code** | **String** | Three-letter ISO 3166-1 country code | [optional]
13
+
14
+
@@ -0,0 +1,118 @@
1
+ # CloudmersiveValidateApiClient::TextInputApi
2
+
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**text_input_check_xss**](TextInputApi.md#text_input_check_xss) | **POST** /validate/text-input/check/xss | Check text input for Cross-Site-Scripting (XSS) attacks
8
+ [**text_input_protect_xss**](TextInputApi.md#text_input_protect_xss) | **POST** /validate/text-input/protect/xss | Protect text input from Cross-Site-Scripting (XSS) attacks through normalization
9
+
10
+
11
+ # **text_input_check_xss**
12
+ > XssProtectionResult text_input_check_xss(value)
13
+
14
+ Check text input for Cross-Site-Scripting (XSS) attacks
15
+
16
+ Detects XSS (Cross-Site-Scripting) attacks from text input.
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'cloudmersive-validate-api-client'
22
+ # setup authorization
23
+ CloudmersiveValidateApiClient.configure do |config|
24
+ # Configure API key authorization: Apikey
25
+ config.api_key['Apikey'] = 'YOUR API KEY'
26
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
27
+ #config.api_key_prefix['Apikey'] = 'Bearer'
28
+ end
29
+
30
+ api_instance = CloudmersiveValidateApiClient::TextInputApi.new
31
+
32
+ value = 'value_example' # String | User-facing text input.
33
+
34
+
35
+ begin
36
+ #Check text input for Cross-Site-Scripting (XSS) attacks
37
+ result = api_instance.text_input_check_xss(value)
38
+ p result
39
+ rescue CloudmersiveValidateApiClient::ApiError => e
40
+ puts "Exception when calling TextInputApi->text_input_check_xss: #{e}"
41
+ end
42
+ ```
43
+
44
+ ### Parameters
45
+
46
+ Name | Type | Description | Notes
47
+ ------------- | ------------- | ------------- | -------------
48
+ **value** | **String**| User-facing text input. |
49
+
50
+ ### Return type
51
+
52
+ [**XssProtectionResult**](XssProtectionResult.md)
53
+
54
+ ### Authorization
55
+
56
+ [Apikey](../README.md#Apikey)
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: text/javascript, application/json, text/json
61
+ - **Accept**: application/json, text/json, application/xml, text/xml
62
+
63
+
64
+
65
+ # **text_input_protect_xss**
66
+ > XssProtectionResult text_input_protect_xss(value)
67
+
68
+ Protect text input from Cross-Site-Scripting (XSS) attacks through normalization
69
+
70
+ Detects and removes XSS (Cross-Site-Scripting) attacks from text input through normalization. Returns the normalized result, as well as information on whether the original input contained an XSS risk.
71
+
72
+ ### Example
73
+ ```ruby
74
+ # load the gem
75
+ require 'cloudmersive-validate-api-client'
76
+ # setup authorization
77
+ CloudmersiveValidateApiClient.configure do |config|
78
+ # Configure API key authorization: Apikey
79
+ config.api_key['Apikey'] = 'YOUR API KEY'
80
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
81
+ #config.api_key_prefix['Apikey'] = 'Bearer'
82
+ end
83
+
84
+ api_instance = CloudmersiveValidateApiClient::TextInputApi.new
85
+
86
+ value = 'value_example' # String | User-facing text input.
87
+
88
+
89
+ begin
90
+ #Protect text input from Cross-Site-Scripting (XSS) attacks through normalization
91
+ result = api_instance.text_input_protect_xss(value)
92
+ p result
93
+ rescue CloudmersiveValidateApiClient::ApiError => e
94
+ puts "Exception when calling TextInputApi->text_input_protect_xss: #{e}"
95
+ end
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+ Name | Type | Description | Notes
101
+ ------------- | ------------- | ------------- | -------------
102
+ **value** | **String**| User-facing text input. |
103
+
104
+ ### Return type
105
+
106
+ [**XssProtectionResult**](XssProtectionResult.md)
107
+
108
+ ### Authorization
109
+
110
+ [Apikey](../README.md#Apikey)
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: text/javascript, application/json, text/json
115
+ - **Accept**: application/json, text/json, application/xml, text/xml
116
+
117
+
118
+
@@ -10,5 +10,10 @@ Name | Type | Description | Notes
10
10
  **three_letter_code** | **String** | Three-letter ISO 3166-1 country code | [optional]
11
11
  **is_european_union_member** | **BOOLEAN** | True if this country is currently a member of the European Union (EU), false otherwise | [optional]
12
12
  **timezones** | [**Array<Timezone>**](Timezone.md) | Time zones (IANA/Olsen) in the country | [optional]
13
+ **iso_currency_code** | **String** | ISO 4217 currency three-letter code associated with the country | [optional]
14
+ **currency_symbol** | **String** | Symbol associated with the currency | [optional]
15
+ **currency_english_name** | **String** | Full name of the currency | [optional]
16
+ **region** | **String** | Region (continent) in which the country is located; possible values are None, Europe, Americas, Asia, Africa, Oceania | [optional]
17
+ **subregion** | **String** | Subregion in which the country is located; possible values are None, NorthernEurope, WesternEurope, SouthernEurope, EasternEurope, CentralAmerica, NorthernAmerica, SouthAmerica, EasternAfrica, MiddleAfrica, NorthernAfrica , SouthernAfrica , WesternAfrica , CentralAsia , EasternAsia , SouthernAsia , SouthEasternAsia , WesternAsia , Southern , Middle , AustraliaandNewZealand , Melanesia , Polynesia , Micronesia , Caribbean, | [optional]
13
18
 
14
19
 
@@ -0,0 +1,11 @@
1
+ # CloudmersiveValidateApiClient::XssProtectionResult
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
7
+ **contained_xss** | **BOOLEAN** | True if the input contained XSS scripting, false otherwise | [optional]
8
+ **original_input** | **String** | Original input string | [optional]
9
+ **normalized_result** | **String** | Normalized string result, with XSS removed | [optional]
10
+
11
+
@@ -22,12 +22,14 @@ require 'cloudmersive-validate-api-client/models/address_verify_syntax_only_resp
22
22
  require 'cloudmersive-validate-api-client/models/check_response'
23
23
  require 'cloudmersive-validate-api-client/models/country_details'
24
24
  require 'cloudmersive-validate-api-client/models/country_list_result'
25
+ require 'cloudmersive-validate-api-client/models/domain_quality_response'
25
26
  require 'cloudmersive-validate-api-client/models/first_name_validation_request'
26
27
  require 'cloudmersive-validate-api-client/models/first_name_validation_response'
27
28
  require 'cloudmersive-validate-api-client/models/full_email_validation_response'
28
29
  require 'cloudmersive-validate-api-client/models/full_name_validation_request'
29
30
  require 'cloudmersive-validate-api-client/models/full_name_validation_response'
30
31
  require 'cloudmersive-validate-api-client/models/geolocate_response'
32
+ require 'cloudmersive-validate-api-client/models/geolocate_street_address_response'
31
33
  require 'cloudmersive-validate-api-client/models/get_gender_request'
32
34
  require 'cloudmersive-validate-api-client/models/get_gender_response'
33
35
  require 'cloudmersive-validate-api-client/models/get_timezones_request'
@@ -41,6 +43,8 @@ require 'cloudmersive-validate-api-client/models/parse_address_request'
41
43
  require 'cloudmersive-validate-api-client/models/parse_address_response'
42
44
  require 'cloudmersive-validate-api-client/models/phone_number_validate_request'
43
45
  require 'cloudmersive-validate-api-client/models/phone_number_validation_response'
46
+ require 'cloudmersive-validate-api-client/models/reverse_geocode_address_request'
47
+ require 'cloudmersive-validate-api-client/models/reverse_geocode_address_response'
44
48
  require 'cloudmersive-validate-api-client/models/timezone'
45
49
  require 'cloudmersive-validate-api-client/models/tor_node_response'
46
50
  require 'cloudmersive-validate-api-client/models/user_agent_validate_request'
@@ -64,6 +68,7 @@ require 'cloudmersive-validate-api-client/models/validate_url_response_syntax_on
64
68
  require 'cloudmersive-validate-api-client/models/vat_lookup_request'
65
69
  require 'cloudmersive-validate-api-client/models/vat_lookup_response'
66
70
  require 'cloudmersive-validate-api-client/models/whois_response'
71
+ require 'cloudmersive-validate-api-client/models/xss_protection_result'
67
72
 
68
73
  # APIs
69
74
  require 'cloudmersive-validate-api-client/api/address_api'
@@ -73,6 +78,7 @@ require 'cloudmersive-validate-api-client/api/ip_address_api'
73
78
  require 'cloudmersive-validate-api-client/api/lead_enrichment_api'
74
79
  require 'cloudmersive-validate-api-client/api/name_api'
75
80
  require 'cloudmersive-validate-api-client/api/phone_number_api'
81
+ require 'cloudmersive-validate-api-client/api/text_input_api'
76
82
  require 'cloudmersive-validate-api-client/api/user_agent_api'
77
83
  require 'cloudmersive-validate-api-client/api/vat_api'
78
84
 
@@ -173,6 +173,168 @@ module CloudmersiveValidateApiClient
173
173
  end
174
174
  return data, status_code, headers
175
175
  end
176
+ # Geocode a street address into latitude and longitude
177
+ # Geocodes a street address into latitude and longitude.
178
+ # @param input Input parse request
179
+ # @param [Hash] opts the optional parameters
180
+ # @return [ValidateAddressResponse]
181
+ def address_geocode(input, opts = {})
182
+ data, _status_code, _headers = address_geocode_with_http_info(input, opts)
183
+ data
184
+ end
185
+
186
+ # Geocode a street address into latitude and longitude
187
+ # Geocodes a street address into latitude and longitude.
188
+ # @param input Input parse request
189
+ # @param [Hash] opts the optional parameters
190
+ # @return [Array<(ValidateAddressResponse, Fixnum, Hash)>] ValidateAddressResponse data, response status code and response headers
191
+ def address_geocode_with_http_info(input, opts = {})
192
+ if @api_client.config.debugging
193
+ @api_client.config.logger.debug 'Calling API: AddressApi.address_geocode ...'
194
+ end
195
+ # verify the required parameter 'input' is set
196
+ if @api_client.config.client_side_validation && input.nil?
197
+ fail ArgumentError, "Missing the required parameter 'input' when calling AddressApi.address_geocode"
198
+ end
199
+ # resource path
200
+ local_var_path = '/validate/address/geocode'
201
+
202
+ # query parameters
203
+ query_params = {}
204
+
205
+ # header parameters
206
+ header_params = {}
207
+ # HTTP header 'Accept' (if needed)
208
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
209
+ # HTTP header 'Content-Type'
210
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
211
+
212
+ # form parameters
213
+ form_params = {}
214
+
215
+ # http body (model)
216
+ post_body = @api_client.object_to_http_body(input)
217
+ auth_names = ['Apikey']
218
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
219
+ :header_params => header_params,
220
+ :query_params => query_params,
221
+ :form_params => form_params,
222
+ :body => post_body,
223
+ :auth_names => auth_names,
224
+ :return_type => 'ValidateAddressResponse')
225
+ if @api_client.config.debugging
226
+ @api_client.config.logger.debug "API called: AddressApi#address_geocode\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
227
+ end
228
+ return data, status_code, headers
229
+ end
230
+ # Get the currency of the input country
231
+ # Gets the currency information for the input country, including the ISO three-letter country code, currency symbol, and English currency name.
232
+ # @param input Input request
233
+ # @param [Hash] opts the optional parameters
234
+ # @return [ValidateCountryResponse]
235
+ def address_get_country_currency(input, opts = {})
236
+ data, _status_code, _headers = address_get_country_currency_with_http_info(input, opts)
237
+ data
238
+ end
239
+
240
+ # Get the currency of the input country
241
+ # Gets the currency information for the input country, including the ISO three-letter country code, currency symbol, and English currency name.
242
+ # @param input Input request
243
+ # @param [Hash] opts the optional parameters
244
+ # @return [Array<(ValidateCountryResponse, Fixnum, Hash)>] ValidateCountryResponse data, response status code and response headers
245
+ def address_get_country_currency_with_http_info(input, opts = {})
246
+ if @api_client.config.debugging
247
+ @api_client.config.logger.debug 'Calling API: AddressApi.address_get_country_currency ...'
248
+ end
249
+ # verify the required parameter 'input' is set
250
+ if @api_client.config.client_side_validation && input.nil?
251
+ fail ArgumentError, "Missing the required parameter 'input' when calling AddressApi.address_get_country_currency"
252
+ end
253
+ # resource path
254
+ local_var_path = '/validate/address/country/get-currency'
255
+
256
+ # query parameters
257
+ query_params = {}
258
+
259
+ # header parameters
260
+ header_params = {}
261
+ # HTTP header 'Accept' (if needed)
262
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
263
+ # HTTP header 'Content-Type'
264
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
265
+
266
+ # form parameters
267
+ form_params = {}
268
+
269
+ # http body (model)
270
+ post_body = @api_client.object_to_http_body(input)
271
+ auth_names = ['Apikey']
272
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
273
+ :header_params => header_params,
274
+ :query_params => query_params,
275
+ :form_params => form_params,
276
+ :body => post_body,
277
+ :auth_names => auth_names,
278
+ :return_type => 'ValidateCountryResponse')
279
+ if @api_client.config.debugging
280
+ @api_client.config.logger.debug "API called: AddressApi#address_get_country_currency\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
281
+ end
282
+ return data, status_code, headers
283
+ end
284
+ # Get the region, subregion and continent of the country
285
+ # Gets the continent information including region and subregion for the input country.
286
+ # @param input Input request
287
+ # @param [Hash] opts the optional parameters
288
+ # @return [ValidateCountryResponse]
289
+ def address_get_country_region(input, opts = {})
290
+ data, _status_code, _headers = address_get_country_region_with_http_info(input, opts)
291
+ data
292
+ end
293
+
294
+ # Get the region, subregion and continent of the country
295
+ # Gets the continent information including region and subregion for the input country.
296
+ # @param input Input request
297
+ # @param [Hash] opts the optional parameters
298
+ # @return [Array<(ValidateCountryResponse, Fixnum, Hash)>] ValidateCountryResponse data, response status code and response headers
299
+ def address_get_country_region_with_http_info(input, opts = {})
300
+ if @api_client.config.debugging
301
+ @api_client.config.logger.debug 'Calling API: AddressApi.address_get_country_region ...'
302
+ end
303
+ # verify the required parameter 'input' is set
304
+ if @api_client.config.client_side_validation && input.nil?
305
+ fail ArgumentError, "Missing the required parameter 'input' when calling AddressApi.address_get_country_region"
306
+ end
307
+ # resource path
308
+ local_var_path = '/validate/address/country/get-region'
309
+
310
+ # query parameters
311
+ query_params = {}
312
+
313
+ # header parameters
314
+ header_params = {}
315
+ # HTTP header 'Accept' (if needed)
316
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
317
+ # HTTP header 'Content-Type'
318
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
319
+
320
+ # form parameters
321
+ form_params = {}
322
+
323
+ # http body (model)
324
+ post_body = @api_client.object_to_http_body(input)
325
+ auth_names = ['Apikey']
326
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
327
+ :header_params => header_params,
328
+ :query_params => query_params,
329
+ :form_params => form_params,
330
+ :body => post_body,
331
+ :auth_names => auth_names,
332
+ :return_type => 'ValidateCountryResponse')
333
+ if @api_client.config.debugging
334
+ @api_client.config.logger.debug "API called: AddressApi#address_get_country_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
335
+ end
336
+ return data, status_code, headers
337
+ end
176
338
  # Gets IANA/Olsen time zones for a country
177
339
  # Gets the IANA/Olsen time zones for a country.
178
340
  # @param input Input request
@@ -281,6 +443,60 @@ module CloudmersiveValidateApiClient
281
443
  end
282
444
  return data, status_code, headers
283
445
  end
446
+ # Reverse geocode a lattitude and longitude into an address
447
+ # Converts lattitude and longitude coordinates into an address through reverse-geocoding.
448
+ # @param input Input reverse geocoding request
449
+ # @param [Hash] opts the optional parameters
450
+ # @return [ReverseGeocodeAddressResponse]
451
+ def address_reverse_geocode_address(input, opts = {})
452
+ data, _status_code, _headers = address_reverse_geocode_address_with_http_info(input, opts)
453
+ data
454
+ end
455
+
456
+ # Reverse geocode a lattitude and longitude into an address
457
+ # Converts lattitude and longitude coordinates into an address through reverse-geocoding.
458
+ # @param input Input reverse geocoding request
459
+ # @param [Hash] opts the optional parameters
460
+ # @return [Array<(ReverseGeocodeAddressResponse, Fixnum, Hash)>] ReverseGeocodeAddressResponse data, response status code and response headers
461
+ def address_reverse_geocode_address_with_http_info(input, opts = {})
462
+ if @api_client.config.debugging
463
+ @api_client.config.logger.debug 'Calling API: AddressApi.address_reverse_geocode_address ...'
464
+ end
465
+ # verify the required parameter 'input' is set
466
+ if @api_client.config.client_side_validation && input.nil?
467
+ fail ArgumentError, "Missing the required parameter 'input' when calling AddressApi.address_reverse_geocode_address"
468
+ end
469
+ # resource path
470
+ local_var_path = '/validate/address/geocode/reverse'
471
+
472
+ # query parameters
473
+ query_params = {}
474
+
475
+ # header parameters
476
+ header_params = {}
477
+ # HTTP header 'Accept' (if needed)
478
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
479
+ # HTTP header 'Content-Type'
480
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
481
+
482
+ # form parameters
483
+ form_params = {}
484
+
485
+ # http body (model)
486
+ post_body = @api_client.object_to_http_body(input)
487
+ auth_names = ['Apikey']
488
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
489
+ :header_params => header_params,
490
+ :query_params => query_params,
491
+ :form_params => form_params,
492
+ :body => post_body,
493
+ :auth_names => auth_names,
494
+ :return_type => 'ReverseGeocodeAddressResponse')
495
+ if @api_client.config.debugging
496
+ @api_client.config.logger.debug "API called: AddressApi#address_reverse_geocode_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
497
+ end
498
+ return data, status_code, headers
499
+ end
284
500
  # Validate a street address
285
501
  # Determines if an input structured street address is valid or invalid. If the address is valid, also returns the latitude and longitude of the address. Supports all major international addresses.
286
502
  # @param input Input parse request