cloudmersive-validate-api-client 1.4.2 → 2.0.5
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 +4 -4
- data/Gemfile +1 -1
- data/README.md +22 -7
- data/cloudmersive-validate-api-client.gemspec +3 -3
- data/docs/AddressApi.md +270 -1
- data/docs/CountryDetails.md +11 -0
- data/docs/CountryListResult.md +9 -0
- data/docs/DomainApi.md +2 -2
- data/docs/EmailApi.md +3 -3
- data/docs/IPAddressApi.md +56 -1
- data/docs/TorNodeResponse.md +8 -0
- data/docs/ValidateCityRequest.md +11 -0
- data/docs/ValidateCityResponse.md +12 -0
- data/docs/ValidateCountryResponse.md +1 -0
- data/docs/ValidatePostalCodeRequest.md +10 -0
- data/docs/ValidatePostalCodeResponse.md +12 -0
- data/docs/ValidateStateRequest.md +10 -0
- data/docs/ValidateStateResponse.md +11 -0
- data/lib/cloudmersive-validate-api-client.rb +10 -1
- data/lib/cloudmersive-validate-api-client/api/address_api.rb +276 -18
- data/lib/cloudmersive-validate-api-client/api/domain_api.rb +14 -18
- data/lib/cloudmersive-validate-api-client/api/email_api.rb +11 -14
- data/lib/cloudmersive-validate-api-client/api/ip_address_api.rb +58 -5
- data/lib/cloudmersive-validate-api-client/api/lead_enrichment_api.rb +5 -8
- data/lib/cloudmersive-validate-api-client/api/name_api.rb +17 -22
- data/lib/cloudmersive-validate-api-client/api/phone_number_api.rb +5 -6
- data/lib/cloudmersive-validate-api-client/api/user_agent_api.rb +5 -6
- data/lib/cloudmersive-validate-api-client/api/vat_api.rb +5 -6
- data/lib/cloudmersive-validate-api-client/api_client.rb +11 -9
- data/lib/cloudmersive-validate-api-client/api_error.rb +1 -1
- data/lib/cloudmersive-validate-api-client/configuration.rb +2 -2
- data/lib/cloudmersive-validate-api-client/models/address_get_servers_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/address_verify_syntax_only_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/check_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/country_details.rb +216 -0
- data/lib/cloudmersive-validate-api-client/models/country_list_result.rb +198 -0
- data/lib/cloudmersive-validate-api-client/models/first_name_validation_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/first_name_validation_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/full_email_validation_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/full_name_validation_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/full_name_validation_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/geolocate_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/get_gender_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/get_gender_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/get_timezones_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/get_timezones_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/last_name_validation_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/last_name_validation_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/lead_enrichment_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/lead_enrichment_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/parse_address_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/parse_address_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/phone_number_validate_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/phone_number_validation_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/timezone.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/tor_node_response.rb +186 -0
- data/lib/cloudmersive-validate-api-client/models/user_agent_validate_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/user_agent_validate_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_address_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_address_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_city_request.rb +216 -0
- data/lib/cloudmersive-validate-api-client/models/validate_city_response.rb +226 -0
- data/lib/cloudmersive-validate-api-client/models/validate_country_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_country_response.rb +18 -11
- data/lib/cloudmersive-validate-api-client/models/validate_identifier_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_identifier_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_postal_code_request.rb +206 -0
- data/lib/cloudmersive-validate-api-client/models/validate_postal_code_response.rb +226 -0
- data/lib/cloudmersive-validate-api-client/models/validate_state_request.rb +206 -0
- data/lib/cloudmersive-validate-api-client/models/validate_state_response.rb +216 -0
- data/lib/cloudmersive-validate-api-client/models/validate_url_request_full.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_url_request_syntax_only.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_url_response_full.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_url_response_syntax_only.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/vat_lookup_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/vat_lookup_response.rb +7 -11
- data/lib/cloudmersive-validate-api-client/models/whois_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/version.rb +2 -2
- data/spec/api/address_api_spec.rb +65 -6
- data/spec/api/domain_api_spec.rb +5 -5
- data/spec/api/email_api_spec.rb +4 -4
- data/spec/api/ip_address_api_spec.rb +14 -2
- data/spec/api/lead_enrichment_api_spec.rb +2 -3
- data/spec/api/name_api_spec.rb +6 -6
- data/spec/api/phone_number_api_spec.rb +2 -2
- data/spec/api/user_agent_api_spec.rb +2 -2
- data/spec/api/vat_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +52 -35
- data/spec/configuration_spec.rb +9 -9
- data/spec/models/address_get_servers_response_spec.rb +3 -4
- data/spec/models/address_verify_syntax_only_response_spec.rb +5 -6
- data/spec/models/check_response_spec.rb +2 -3
- data/spec/models/country_details_spec.rb +59 -0
- data/spec/models/country_list_result_spec.rb +47 -0
- data/spec/models/first_name_validation_request_spec.rb +2 -3
- data/spec/models/first_name_validation_response_spec.rb +3 -4
- data/spec/models/full_email_validation_response_spec.rb +10 -11
- data/spec/models/full_name_validation_request_spec.rb +2 -3
- data/spec/models/full_name_validation_response_spec.rb +11 -12
- data/spec/models/geolocate_response_spec.rb +10 -11
- data/spec/models/get_gender_request_spec.rb +3 -4
- data/spec/models/get_gender_response_spec.rb +3 -4
- data/spec/models/get_timezones_request_spec.rb +2 -3
- data/spec/models/get_timezones_response_spec.rb +7 -8
- data/spec/models/last_name_validation_request_spec.rb +2 -3
- data/spec/models/last_name_validation_response_spec.rb +3 -4
- data/spec/models/lead_enrichment_request_spec.rb +15 -16
- data/spec/models/lead_enrichment_response_spec.rb +19 -20
- data/spec/models/parse_address_request_spec.rb +3 -4
- data/spec/models/parse_address_response_spec.rb +10 -11
- data/spec/models/phone_number_validate_request_spec.rb +3 -4
- data/spec/models/phone_number_validation_response_spec.rb +9 -10
- data/spec/models/timezone_spec.rb +4 -5
- data/spec/models/tor_node_response_spec.rb +41 -0
- data/spec/models/user_agent_validate_request_spec.rb +2 -3
- data/spec/models/user_agent_validate_response_spec.rb +15 -16
- data/spec/models/validate_address_request_spec.rb +7 -8
- data/spec/models/validate_address_response_spec.rb +4 -5
- data/spec/models/validate_city_request_spec.rb +59 -0
- data/spec/models/validate_city_response_spec.rb +65 -0
- data/spec/models/validate_country_request_spec.rb +2 -3
- data/spec/models/validate_country_response_spec.rb +13 -8
- data/spec/models/validate_identifier_request_spec.rb +9 -10
- data/spec/models/validate_identifier_response_spec.rb +3 -4
- data/spec/models/validate_postal_code_request_spec.rb +53 -0
- data/spec/models/validate_postal_code_response_spec.rb +65 -0
- data/spec/models/validate_state_request_spec.rb +53 -0
- data/spec/models/validate_state_response_spec.rb +59 -0
- data/spec/models/validate_url_request_full_spec.rb +2 -3
- data/spec/models/validate_url_request_syntax_only_spec.rb +2 -3
- data/spec/models/validate_url_response_full_spec.rb +6 -7
- data/spec/models/validate_url_response_syntax_only_spec.rb +3 -4
- data/spec/models/vat_lookup_request_spec.rb +2 -3
- data/spec/models/vat_lookup_response_spec.rb +13 -14
- data/spec/models/whois_response_spec.rb +16 -17
- data/spec/spec_helper.rb +1 -1
- metadata +29 -2
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module CloudmersiveValidateApiClient
|
16
16
|
class DomainApi
|
@@ -19,7 +19,6 @@ module CloudmersiveValidateApiClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# Validate a domain name
|
24
23
|
# Check whether a domain name is valid or not. API performs a live validation by contacting DNS services to validate the existence of the domain name.
|
25
24
|
# @param domain Domain name to check, for example \"cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes.
|
@@ -27,7 +26,7 @@ module CloudmersiveValidateApiClient
|
|
27
26
|
# @return [CheckResponse]
|
28
27
|
def domain_check(domain, opts = {})
|
29
28
|
data, _status_code, _headers = domain_check_with_http_info(domain, opts)
|
30
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# Validate a domain name
|
@@ -37,14 +36,14 @@ module CloudmersiveValidateApiClient
|
|
37
36
|
# @return [Array<(CheckResponse, Fixnum, Hash)>] CheckResponse data, response status code and response headers
|
38
37
|
def domain_check_with_http_info(domain, opts = {})
|
39
38
|
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug
|
39
|
+
@api_client.config.logger.debug 'Calling API: DomainApi.domain_check ...'
|
41
40
|
end
|
42
41
|
# verify the required parameter 'domain' is set
|
43
42
|
if @api_client.config.client_side_validation && domain.nil?
|
44
43
|
fail ArgumentError, "Missing the required parameter 'domain' when calling DomainApi.domain_check"
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/validate/domain/check'
|
48
47
|
|
49
48
|
# query parameters
|
50
49
|
query_params = {}
|
@@ -74,7 +73,6 @@ module CloudmersiveValidateApiClient
|
|
74
73
|
end
|
75
74
|
return data, status_code, headers
|
76
75
|
end
|
77
|
-
|
78
76
|
# Get WHOIS information for a domain
|
79
77
|
# Validate whether a domain name exists, and also return the full WHOIS record for that domain name. WHOIS records include all the registration details of the domain name, such as information about the domain's owners.
|
80
78
|
# @param domain Domain name to check, for example \"cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes.
|
@@ -82,7 +80,7 @@ module CloudmersiveValidateApiClient
|
|
82
80
|
# @return [WhoisResponse]
|
83
81
|
def domain_post(domain, opts = {})
|
84
82
|
data, _status_code, _headers = domain_post_with_http_info(domain, opts)
|
85
|
-
|
83
|
+
data
|
86
84
|
end
|
87
85
|
|
88
86
|
# Get WHOIS information for a domain
|
@@ -92,14 +90,14 @@ module CloudmersiveValidateApiClient
|
|
92
90
|
# @return [Array<(WhoisResponse, Fixnum, Hash)>] WhoisResponse data, response status code and response headers
|
93
91
|
def domain_post_with_http_info(domain, opts = {})
|
94
92
|
if @api_client.config.debugging
|
95
|
-
@api_client.config.logger.debug
|
93
|
+
@api_client.config.logger.debug 'Calling API: DomainApi.domain_post ...'
|
96
94
|
end
|
97
95
|
# verify the required parameter 'domain' is set
|
98
96
|
if @api_client.config.client_side_validation && domain.nil?
|
99
97
|
fail ArgumentError, "Missing the required parameter 'domain' when calling DomainApi.domain_post"
|
100
98
|
end
|
101
99
|
# resource path
|
102
|
-
local_var_path =
|
100
|
+
local_var_path = '/validate/domain/whois'
|
103
101
|
|
104
102
|
# query parameters
|
105
103
|
query_params = {}
|
@@ -129,7 +127,6 @@ module CloudmersiveValidateApiClient
|
|
129
127
|
end
|
130
128
|
return data, status_code, headers
|
131
129
|
end
|
132
|
-
|
133
130
|
# Validate a URL fully
|
134
131
|
# Validate whether a URL is syntactically valid (does not check endpoint for validity), whether it exists, and whether the endpoint is up and passes virus scan checks. Accepts various types of input and produces a well-formed URL as output.
|
135
132
|
# @param request Input URL request
|
@@ -137,7 +134,7 @@ module CloudmersiveValidateApiClient
|
|
137
134
|
# @return [ValidateUrlResponseFull]
|
138
135
|
def domain_url_full(request, opts = {})
|
139
136
|
data, _status_code, _headers = domain_url_full_with_http_info(request, opts)
|
140
|
-
|
137
|
+
data
|
141
138
|
end
|
142
139
|
|
143
140
|
# Validate a URL fully
|
@@ -147,14 +144,14 @@ module CloudmersiveValidateApiClient
|
|
147
144
|
# @return [Array<(ValidateUrlResponseFull, Fixnum, Hash)>] ValidateUrlResponseFull data, response status code and response headers
|
148
145
|
def domain_url_full_with_http_info(request, opts = {})
|
149
146
|
if @api_client.config.debugging
|
150
|
-
@api_client.config.logger.debug
|
147
|
+
@api_client.config.logger.debug 'Calling API: DomainApi.domain_url_full ...'
|
151
148
|
end
|
152
149
|
# verify the required parameter 'request' is set
|
153
150
|
if @api_client.config.client_side_validation && request.nil?
|
154
151
|
fail ArgumentError, "Missing the required parameter 'request' when calling DomainApi.domain_url_full"
|
155
152
|
end
|
156
153
|
# resource path
|
157
|
-
local_var_path =
|
154
|
+
local_var_path = '/validate/domain/url/full'
|
158
155
|
|
159
156
|
# query parameters
|
160
157
|
query_params = {}
|
@@ -184,7 +181,6 @@ module CloudmersiveValidateApiClient
|
|
184
181
|
end
|
185
182
|
return data, status_code, headers
|
186
183
|
end
|
187
|
-
|
188
184
|
# Validate a URL syntactically
|
189
185
|
# Validate whether a URL is syntactically valid (does not check endpoint for validity). Accepts various types of input and produces a well-formed URL as output.
|
190
186
|
# @param request Input URL information
|
@@ -192,7 +188,7 @@ module CloudmersiveValidateApiClient
|
|
192
188
|
# @return [ValidateUrlResponseSyntaxOnly]
|
193
189
|
def domain_url_syntax_only(request, opts = {})
|
194
190
|
data, _status_code, _headers = domain_url_syntax_only_with_http_info(request, opts)
|
195
|
-
|
191
|
+
data
|
196
192
|
end
|
197
193
|
|
198
194
|
# Validate a URL syntactically
|
@@ -202,14 +198,14 @@ module CloudmersiveValidateApiClient
|
|
202
198
|
# @return [Array<(ValidateUrlResponseSyntaxOnly, Fixnum, Hash)>] ValidateUrlResponseSyntaxOnly data, response status code and response headers
|
203
199
|
def domain_url_syntax_only_with_http_info(request, opts = {})
|
204
200
|
if @api_client.config.debugging
|
205
|
-
@api_client.config.logger.debug
|
201
|
+
@api_client.config.logger.debug 'Calling API: DomainApi.domain_url_syntax_only ...'
|
206
202
|
end
|
207
203
|
# verify the required parameter 'request' is set
|
208
204
|
if @api_client.config.client_side_validation && request.nil?
|
209
205
|
fail ArgumentError, "Missing the required parameter 'request' when calling DomainApi.domain_url_syntax_only"
|
210
206
|
end
|
211
207
|
# resource path
|
212
|
-
local_var_path =
|
208
|
+
local_var_path = '/validate/domain/url/syntax-only'
|
213
209
|
|
214
210
|
# query parameters
|
215
211
|
query_params = {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module CloudmersiveValidateApiClient
|
16
16
|
class EmailApi
|
@@ -19,7 +19,6 @@ module CloudmersiveValidateApiClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# Partially check whether an email address is valid
|
24
23
|
# Validate an email address by identifying whether its parent domain has email servers defined. This call is less limited than syntaxOnly but not as comprehensive as address/full.
|
25
24
|
# @param email Email address to validate, e.g. \"support@cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes.
|
@@ -27,7 +26,7 @@ module CloudmersiveValidateApiClient
|
|
27
26
|
# @return [AddressGetServersResponse]
|
28
27
|
def email_address_get_servers(email, opts = {})
|
29
28
|
data, _status_code, _headers = email_address_get_servers_with_http_info(email, opts)
|
30
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# Partially check whether an email address is valid
|
@@ -37,14 +36,14 @@ module CloudmersiveValidateApiClient
|
|
37
36
|
# @return [Array<(AddressGetServersResponse, Fixnum, Hash)>] AddressGetServersResponse data, response status code and response headers
|
38
37
|
def email_address_get_servers_with_http_info(email, opts = {})
|
39
38
|
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug
|
39
|
+
@api_client.config.logger.debug 'Calling API: EmailApi.email_address_get_servers ...'
|
41
40
|
end
|
42
41
|
# verify the required parameter 'email' is set
|
43
42
|
if @api_client.config.client_side_validation && email.nil?
|
44
43
|
fail ArgumentError, "Missing the required parameter 'email' when calling EmailApi.email_address_get_servers"
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/validate/email/address/servers'
|
48
47
|
|
49
48
|
# query parameters
|
50
49
|
query_params = {}
|
@@ -74,7 +73,6 @@ module CloudmersiveValidateApiClient
|
|
74
73
|
end
|
75
74
|
return data, status_code, headers
|
76
75
|
end
|
77
|
-
|
78
76
|
# Fully validate an email address
|
79
77
|
# Performs a full validation of the email address. Checks for syntactic correctness, identifies the mail server in question if any, and then contacts the email server to validate the existence of the account - without sending any emails.
|
80
78
|
# @param email Email address to validate, e.g. \"support@cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes.
|
@@ -82,7 +80,7 @@ module CloudmersiveValidateApiClient
|
|
82
80
|
# @return [FullEmailValidationResponse]
|
83
81
|
def email_full_validation(email, opts = {})
|
84
82
|
data, _status_code, _headers = email_full_validation_with_http_info(email, opts)
|
85
|
-
|
83
|
+
data
|
86
84
|
end
|
87
85
|
|
88
86
|
# Fully validate an email address
|
@@ -92,14 +90,14 @@ module CloudmersiveValidateApiClient
|
|
92
90
|
# @return [Array<(FullEmailValidationResponse, Fixnum, Hash)>] FullEmailValidationResponse data, response status code and response headers
|
93
91
|
def email_full_validation_with_http_info(email, opts = {})
|
94
92
|
if @api_client.config.debugging
|
95
|
-
@api_client.config.logger.debug
|
93
|
+
@api_client.config.logger.debug 'Calling API: EmailApi.email_full_validation ...'
|
96
94
|
end
|
97
95
|
# verify the required parameter 'email' is set
|
98
96
|
if @api_client.config.client_side_validation && email.nil?
|
99
97
|
fail ArgumentError, "Missing the required parameter 'email' when calling EmailApi.email_full_validation"
|
100
98
|
end
|
101
99
|
# resource path
|
102
|
-
local_var_path =
|
100
|
+
local_var_path = '/validate/email/address/full'
|
103
101
|
|
104
102
|
# query parameters
|
105
103
|
query_params = {}
|
@@ -129,7 +127,6 @@ module CloudmersiveValidateApiClient
|
|
129
127
|
end
|
130
128
|
return data, status_code, headers
|
131
129
|
end
|
132
|
-
|
133
130
|
# Validate email adddress for syntactic correctness only
|
134
131
|
# Validate whether a given email address is syntactically correct via a limited local-only check. Use the address/full API to do a full validation.
|
135
132
|
# @param value Email address to validate, e.g. \"support@cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes.
|
@@ -137,7 +134,7 @@ module CloudmersiveValidateApiClient
|
|
137
134
|
# @return [AddressVerifySyntaxOnlyResponse]
|
138
135
|
def email_post(value, opts = {})
|
139
136
|
data, _status_code, _headers = email_post_with_http_info(value, opts)
|
140
|
-
|
137
|
+
data
|
141
138
|
end
|
142
139
|
|
143
140
|
# Validate email adddress for syntactic correctness only
|
@@ -147,14 +144,14 @@ module CloudmersiveValidateApiClient
|
|
147
144
|
# @return [Array<(AddressVerifySyntaxOnlyResponse, Fixnum, Hash)>] AddressVerifySyntaxOnlyResponse data, response status code and response headers
|
148
145
|
def email_post_with_http_info(value, opts = {})
|
149
146
|
if @api_client.config.debugging
|
150
|
-
@api_client.config.logger.debug
|
147
|
+
@api_client.config.logger.debug 'Calling API: EmailApi.email_post ...'
|
151
148
|
end
|
152
149
|
# verify the required parameter 'value' is set
|
153
150
|
if @api_client.config.client_side_validation && value.nil?
|
154
151
|
fail ArgumentError, "Missing the required parameter 'value' when calling EmailApi.email_post"
|
155
152
|
end
|
156
153
|
# resource path
|
157
|
-
local_var_path =
|
154
|
+
local_var_path = '/validate/email/address/syntaxOnly'
|
158
155
|
|
159
156
|
# query parameters
|
160
157
|
query_params = {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module CloudmersiveValidateApiClient
|
16
16
|
class IPAddressApi
|
@@ -19,7 +19,60 @@ module CloudmersiveValidateApiClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Check if IP address is a Tor node server
|
23
|
+
# Check if the input IP address is a Tor exit node server. Tor servers are a type of privacy-preserving technology that can hide the original IP address who makes a request.
|
24
|
+
# @param value IP address to check, e.g. \"55.55.55.55\". The input is a string so be sure to enclose it in double-quotes.
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [TorNodeResponse]
|
27
|
+
def i_p_address_is_tor_node(value, opts = {})
|
28
|
+
data, _status_code, _headers = i_p_address_is_tor_node_with_http_info(value, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Check if IP address is a Tor node server
|
33
|
+
# Check if the input IP address is a Tor exit node server. Tor servers are a type of privacy-preserving technology that can hide the original IP address who makes a request.
|
34
|
+
# @param value IP address to check, e.g. \"55.55.55.55\". The input is a string so be sure to enclose it in double-quotes.
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(TorNodeResponse, Fixnum, Hash)>] TorNodeResponse data, response status code and response headers
|
37
|
+
def i_p_address_is_tor_node_with_http_info(value, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: IPAddressApi.i_p_address_is_tor_node ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'value' is set
|
42
|
+
if @api_client.config.client_side_validation && value.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'value' when calling IPAddressApi.i_p_address_is_tor_node"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/validate/ip/is-tor-node'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = {}
|
22
60
|
|
61
|
+
# http body (model)
|
62
|
+
post_body = @api_client.object_to_http_body(value)
|
63
|
+
auth_names = ['Apikey']
|
64
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
65
|
+
:header_params => header_params,
|
66
|
+
:query_params => query_params,
|
67
|
+
:form_params => form_params,
|
68
|
+
:body => post_body,
|
69
|
+
:auth_names => auth_names,
|
70
|
+
:return_type => 'TorNodeResponse')
|
71
|
+
if @api_client.config.debugging
|
72
|
+
@api_client.config.logger.debug "API called: IPAddressApi#i_p_address_is_tor_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
+
end
|
74
|
+
return data, status_code, headers
|
75
|
+
end
|
23
76
|
# Geolocate an IP address
|
24
77
|
# Identify an IP address Country, State/Provence, City, Zip/Postal Code, etc. Useful for security and UX applications.
|
25
78
|
# @param value IP address to geolocate, e.g. \"55.55.55.55\". The input is a string so be sure to enclose it in double-quotes.
|
@@ -27,7 +80,7 @@ module CloudmersiveValidateApiClient
|
|
27
80
|
# @return [GeolocateResponse]
|
28
81
|
def i_p_address_post(value, opts = {})
|
29
82
|
data, _status_code, _headers = i_p_address_post_with_http_info(value, opts)
|
30
|
-
|
83
|
+
data
|
31
84
|
end
|
32
85
|
|
33
86
|
# Geolocate an IP address
|
@@ -37,14 +90,14 @@ module CloudmersiveValidateApiClient
|
|
37
90
|
# @return [Array<(GeolocateResponse, Fixnum, Hash)>] GeolocateResponse data, response status code and response headers
|
38
91
|
def i_p_address_post_with_http_info(value, opts = {})
|
39
92
|
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug
|
93
|
+
@api_client.config.logger.debug 'Calling API: IPAddressApi.i_p_address_post ...'
|
41
94
|
end
|
42
95
|
# verify the required parameter 'value' is set
|
43
96
|
if @api_client.config.client_side_validation && value.nil?
|
44
97
|
fail ArgumentError, "Missing the required parameter 'value' when calling IPAddressApi.i_p_address_post"
|
45
98
|
end
|
46
99
|
# resource path
|
47
|
-
local_var_path =
|
100
|
+
local_var_path = '/validate/ip/geolocate'
|
48
101
|
|
49
102
|
# query parameters
|
50
103
|
query_params = {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module CloudmersiveValidateApiClient
|
16
16
|
class LeadEnrichmentApi
|
@@ -19,32 +19,29 @@ module CloudmersiveValidateApiClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# Enrich an input lead with additional fields of data
|
24
|
-
#
|
25
23
|
# @param request Input lead with known fields set, and unknown fields left blank (null)
|
26
24
|
# @param [Hash] opts the optional parameters
|
27
25
|
# @return [LeadEnrichmentResponse]
|
28
26
|
def lead_enrichment_enrich_lead(request, opts = {})
|
29
27
|
data, _status_code, _headers = lead_enrichment_enrich_lead_with_http_info(request, opts)
|
30
|
-
|
28
|
+
data
|
31
29
|
end
|
32
30
|
|
33
31
|
# Enrich an input lead with additional fields of data
|
34
|
-
#
|
35
32
|
# @param request Input lead with known fields set, and unknown fields left blank (null)
|
36
33
|
# @param [Hash] opts the optional parameters
|
37
34
|
# @return [Array<(LeadEnrichmentResponse, Fixnum, Hash)>] LeadEnrichmentResponse data, response status code and response headers
|
38
35
|
def lead_enrichment_enrich_lead_with_http_info(request, opts = {})
|
39
36
|
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug
|
37
|
+
@api_client.config.logger.debug 'Calling API: LeadEnrichmentApi.lead_enrichment_enrich_lead ...'
|
41
38
|
end
|
42
39
|
# verify the required parameter 'request' is set
|
43
40
|
if @api_client.config.client_side_validation && request.nil?
|
44
41
|
fail ArgumentError, "Missing the required parameter 'request' when calling LeadEnrichmentApi.lead_enrichment_enrich_lead"
|
45
42
|
end
|
46
43
|
# resource path
|
47
|
-
local_var_path =
|
44
|
+
local_var_path = '/validate/lead-enrichment/lead/enrich'
|
48
45
|
|
49
46
|
# query parameters
|
50
47
|
query_params = {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module CloudmersiveValidateApiClient
|
16
16
|
class NameApi
|
@@ -19,7 +19,6 @@ module CloudmersiveValidateApiClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# Get the gender of a first name
|
24
23
|
# Determines the gender of a first name (given name)
|
25
24
|
# @param input Gender request information
|
@@ -27,7 +26,7 @@ module CloudmersiveValidateApiClient
|
|
27
26
|
# @return [GetGenderResponse]
|
28
27
|
def name_get_gender(input, opts = {})
|
29
28
|
data, _status_code, _headers = name_get_gender_with_http_info(input, opts)
|
30
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# Get the gender of a first name
|
@@ -37,14 +36,14 @@ module CloudmersiveValidateApiClient
|
|
37
36
|
# @return [Array<(GetGenderResponse, Fixnum, Hash)>] GetGenderResponse data, response status code and response headers
|
38
37
|
def name_get_gender_with_http_info(input, opts = {})
|
39
38
|
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug
|
39
|
+
@api_client.config.logger.debug 'Calling API: NameApi.name_get_gender ...'
|
41
40
|
end
|
42
41
|
# verify the required parameter 'input' is set
|
43
42
|
if @api_client.config.client_side_validation && input.nil?
|
44
43
|
fail ArgumentError, "Missing the required parameter 'input' when calling NameApi.name_get_gender"
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/validate/name/get-gender'
|
48
47
|
|
49
48
|
# query parameters
|
50
49
|
query_params = {}
|
@@ -74,7 +73,6 @@ module CloudmersiveValidateApiClient
|
|
74
73
|
end
|
75
74
|
return data, status_code, headers
|
76
75
|
end
|
77
|
-
|
78
76
|
# Validate a code identifier
|
79
77
|
# Determines if the input name is a valid technical / code identifier. Configure input rules such as whether whitespace, hyphens, underscores, etc. are allowed. For example, a valid identifier might be \"helloWorld\" but not \"hello*World\".
|
80
78
|
# @param input Identifier validation request information
|
@@ -82,7 +80,7 @@ module CloudmersiveValidateApiClient
|
|
82
80
|
# @return [ValidateIdentifierResponse]
|
83
81
|
def name_identifier(input, opts = {})
|
84
82
|
data, _status_code, _headers = name_identifier_with_http_info(input, opts)
|
85
|
-
|
83
|
+
data
|
86
84
|
end
|
87
85
|
|
88
86
|
# Validate a code identifier
|
@@ -92,14 +90,14 @@ module CloudmersiveValidateApiClient
|
|
92
90
|
# @return [Array<(ValidateIdentifierResponse, Fixnum, Hash)>] ValidateIdentifierResponse data, response status code and response headers
|
93
91
|
def name_identifier_with_http_info(input, opts = {})
|
94
92
|
if @api_client.config.debugging
|
95
|
-
@api_client.config.logger.debug
|
93
|
+
@api_client.config.logger.debug 'Calling API: NameApi.name_identifier ...'
|
96
94
|
end
|
97
95
|
# verify the required parameter 'input' is set
|
98
96
|
if @api_client.config.client_side_validation && input.nil?
|
99
97
|
fail ArgumentError, "Missing the required parameter 'input' when calling NameApi.name_identifier"
|
100
98
|
end
|
101
99
|
# resource path
|
102
|
-
local_var_path =
|
100
|
+
local_var_path = '/validate/name/identifier'
|
103
101
|
|
104
102
|
# query parameters
|
105
103
|
query_params = {}
|
@@ -129,7 +127,6 @@ module CloudmersiveValidateApiClient
|
|
129
127
|
end
|
130
128
|
return data, status_code, headers
|
131
129
|
end
|
132
|
-
|
133
130
|
# Validate a first name
|
134
131
|
# Determines if a string is a valid first name (given name)
|
135
132
|
# @param input Validation request information
|
@@ -137,7 +134,7 @@ module CloudmersiveValidateApiClient
|
|
137
134
|
# @return [FirstNameValidationResponse]
|
138
135
|
def name_validate_first_name(input, opts = {})
|
139
136
|
data, _status_code, _headers = name_validate_first_name_with_http_info(input, opts)
|
140
|
-
|
137
|
+
data
|
141
138
|
end
|
142
139
|
|
143
140
|
# Validate a first name
|
@@ -147,14 +144,14 @@ module CloudmersiveValidateApiClient
|
|
147
144
|
# @return [Array<(FirstNameValidationResponse, Fixnum, Hash)>] FirstNameValidationResponse data, response status code and response headers
|
148
145
|
def name_validate_first_name_with_http_info(input, opts = {})
|
149
146
|
if @api_client.config.debugging
|
150
|
-
@api_client.config.logger.debug
|
147
|
+
@api_client.config.logger.debug 'Calling API: NameApi.name_validate_first_name ...'
|
151
148
|
end
|
152
149
|
# verify the required parameter 'input' is set
|
153
150
|
if @api_client.config.client_side_validation && input.nil?
|
154
151
|
fail ArgumentError, "Missing the required parameter 'input' when calling NameApi.name_validate_first_name"
|
155
152
|
end
|
156
153
|
# resource path
|
157
|
-
local_var_path =
|
154
|
+
local_var_path = '/validate/name/first'
|
158
155
|
|
159
156
|
# query parameters
|
160
157
|
query_params = {}
|
@@ -184,7 +181,6 @@ module CloudmersiveValidateApiClient
|
|
184
181
|
end
|
185
182
|
return data, status_code, headers
|
186
183
|
end
|
187
|
-
|
188
184
|
# Parse and validate a full name
|
189
185
|
# Parses a full name string (e.g. \"Mr. Jon van der Waal Jr.\") into its component parts (and returns these component parts), and then validates whether it is a valid name string or not
|
190
186
|
# @param input Validation request information
|
@@ -192,7 +188,7 @@ module CloudmersiveValidateApiClient
|
|
192
188
|
# @return [FullNameValidationResponse]
|
193
189
|
def name_validate_full_name(input, opts = {})
|
194
190
|
data, _status_code, _headers = name_validate_full_name_with_http_info(input, opts)
|
195
|
-
|
191
|
+
data
|
196
192
|
end
|
197
193
|
|
198
194
|
# Parse and validate a full name
|
@@ -202,14 +198,14 @@ module CloudmersiveValidateApiClient
|
|
202
198
|
# @return [Array<(FullNameValidationResponse, Fixnum, Hash)>] FullNameValidationResponse data, response status code and response headers
|
203
199
|
def name_validate_full_name_with_http_info(input, opts = {})
|
204
200
|
if @api_client.config.debugging
|
205
|
-
@api_client.config.logger.debug
|
201
|
+
@api_client.config.logger.debug 'Calling API: NameApi.name_validate_full_name ...'
|
206
202
|
end
|
207
203
|
# verify the required parameter 'input' is set
|
208
204
|
if @api_client.config.client_side_validation && input.nil?
|
209
205
|
fail ArgumentError, "Missing the required parameter 'input' when calling NameApi.name_validate_full_name"
|
210
206
|
end
|
211
207
|
# resource path
|
212
|
-
local_var_path =
|
208
|
+
local_var_path = '/validate/name/full-name'
|
213
209
|
|
214
210
|
# query parameters
|
215
211
|
query_params = {}
|
@@ -239,7 +235,6 @@ module CloudmersiveValidateApiClient
|
|
239
235
|
end
|
240
236
|
return data, status_code, headers
|
241
237
|
end
|
242
|
-
|
243
238
|
# Validate a last name
|
244
239
|
# Determines if a string is a valid last name (surname)
|
245
240
|
# @param input Validation request information
|
@@ -247,7 +242,7 @@ module CloudmersiveValidateApiClient
|
|
247
242
|
# @return [LastNameValidationResponse]
|
248
243
|
def name_validate_last_name(input, opts = {})
|
249
244
|
data, _status_code, _headers = name_validate_last_name_with_http_info(input, opts)
|
250
|
-
|
245
|
+
data
|
251
246
|
end
|
252
247
|
|
253
248
|
# Validate a last name
|
@@ -257,14 +252,14 @@ module CloudmersiveValidateApiClient
|
|
257
252
|
# @return [Array<(LastNameValidationResponse, Fixnum, Hash)>] LastNameValidationResponse data, response status code and response headers
|
258
253
|
def name_validate_last_name_with_http_info(input, opts = {})
|
259
254
|
if @api_client.config.debugging
|
260
|
-
@api_client.config.logger.debug
|
255
|
+
@api_client.config.logger.debug 'Calling API: NameApi.name_validate_last_name ...'
|
261
256
|
end
|
262
257
|
# verify the required parameter 'input' is set
|
263
258
|
if @api_client.config.client_side_validation && input.nil?
|
264
259
|
fail ArgumentError, "Missing the required parameter 'input' when calling NameApi.name_validate_last_name"
|
265
260
|
end
|
266
261
|
# resource path
|
267
|
-
local_var_path =
|
262
|
+
local_var_path = '/validate/name/last'
|
268
263
|
|
269
264
|
# query parameters
|
270
265
|
query_params = {}
|