cloudmersive-validate-api-client 1.3.7 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +3 -124
- data/Gemfile +0 -7
- data/README.md +0 -145
- data/Rakefile +0 -8
- data/cloudmersive-validate-api-client.gemspec +0 -45
- data/docs/AddressApi.md +0 -63
- data/docs/AddressGetServersResponse.md +0 -9
- data/docs/AddressVerifySyntaxOnlyResponse.md +0 -8
- data/docs/CheckResponse.md +0 -8
- data/docs/DomainApi.md +0 -228
- data/docs/EmailApi.md +0 -173
- data/docs/FirstNameValidationRequest.md +0 -8
- data/docs/FirstNameValidationResponse.md +0 -9
- data/docs/FullEmailValidationResponse.md +0 -16
- data/docs/FullNameValidationRequest.md +0 -8
- data/docs/FullNameValidationResponse.md +0 -17
- data/docs/GeolocateResponse.md +0 -16
- data/docs/GetGenderRequest.md +0 -9
- data/docs/GetGenderResponse.md +0 -9
- data/docs/IPAddressApi.md +0 -63
- data/docs/LastNameValidationRequest.md +0 -8
- data/docs/LastNameValidationResponse.md +0 -9
- data/docs/NameApi.md +0 -283
- data/docs/ParseAddressRequest.md +0 -9
- data/docs/ParseAddressResponse.md +0 -15
- data/docs/PhoneNumberApi.md +0 -63
- data/docs/PhoneNumberValidateRequest.md +0 -9
- data/docs/PhoneNumberValidationResponse.md +0 -15
- data/docs/UserAgentApi.md +0 -63
- data/docs/UserAgentValidateRequest.md +0 -8
- data/docs/UserAgentValidateResponse.md +0 -21
- data/docs/ValidateIdentifierRequest.md +0 -15
- data/docs/ValidateIdentifierResponse.md +0 -9
- data/docs/ValidateUrlRequestFull.md +0 -8
- data/docs/ValidateUrlRequestSyntaxOnly.md +0 -8
- data/docs/ValidateUrlResponseFull.md +0 -12
- data/docs/ValidateUrlResponseSyntaxOnly.md +0 -9
- data/docs/VatApi.md +0 -63
- data/docs/VatLookupRequest.md +0 -8
- data/docs/VatLookupResponse.md +0 -12
- data/docs/WhoisResponse.md +0 -11
- data/git_push.sh +0 -55
- data/lib/cloudmersive-validate-api-client.rb +0 -75
- data/lib/cloudmersive-validate-api-client/api/address_api.rb +0 -78
- data/lib/cloudmersive-validate-api-client/api/domain_api.rb +0 -243
- data/lib/cloudmersive-validate-api-client/api/email_api.rb +0 -188
- data/lib/cloudmersive-validate-api-client/api/ip_address_api.rb +0 -78
- data/lib/cloudmersive-validate-api-client/api/name_api.rb +0 -298
- data/lib/cloudmersive-validate-api-client/api/phone_number_api.rb +0 -78
- data/lib/cloudmersive-validate-api-client/api/user_agent_api.rb +0 -78
- data/lib/cloudmersive-validate-api-client/api/vat_api.rb +0 -78
- data/lib/cloudmersive-validate-api-client/api_client.rb +0 -389
- data/lib/cloudmersive-validate-api-client/api_error.rb +0 -38
- data/lib/cloudmersive-validate-api-client/configuration.rb +0 -209
- data/lib/cloudmersive-validate-api-client/models/address_get_servers_response.rb +0 -201
- data/lib/cloudmersive-validate-api-client/models/address_verify_syntax_only_response.rb +0 -189
- data/lib/cloudmersive-validate-api-client/models/check_response.rb +0 -189
- data/lib/cloudmersive-validate-api-client/models/first_name_validation_request.rb +0 -189
- data/lib/cloudmersive-validate-api-client/models/first_name_validation_response.rb +0 -199
- data/lib/cloudmersive-validate-api-client/models/full_email_validation_response.rb +0 -269
- data/lib/cloudmersive-validate-api-client/models/full_name_validation_request.rb +0 -189
- data/lib/cloudmersive-validate-api-client/models/full_name_validation_response.rb +0 -279
- data/lib/cloudmersive-validate-api-client/models/geolocate_response.rb +0 -269
- data/lib/cloudmersive-validate-api-client/models/get_gender_request.rb +0 -199
- data/lib/cloudmersive-validate-api-client/models/get_gender_response.rb +0 -199
- data/lib/cloudmersive-validate-api-client/models/last_name_validation_request.rb +0 -189
- data/lib/cloudmersive-validate-api-client/models/last_name_validation_response.rb +0 -199
- data/lib/cloudmersive-validate-api-client/models/parse_address_request.rb +0 -199
- data/lib/cloudmersive-validate-api-client/models/parse_address_response.rb +0 -259
- data/lib/cloudmersive-validate-api-client/models/phone_number_validate_request.rb +0 -199
- data/lib/cloudmersive-validate-api-client/models/phone_number_validation_response.rb +0 -259
- data/lib/cloudmersive-validate-api-client/models/user_agent_validate_request.rb +0 -189
- data/lib/cloudmersive-validate-api-client/models/user_agent_validate_response.rb +0 -319
- data/lib/cloudmersive-validate-api-client/models/validate_identifier_request.rb +0 -259
- data/lib/cloudmersive-validate-api-client/models/validate_identifier_response.rb +0 -199
- data/lib/cloudmersive-validate-api-client/models/validate_url_request_full.rb +0 -189
- data/lib/cloudmersive-validate-api-client/models/validate_url_request_syntax_only.rb +0 -189
- data/lib/cloudmersive-validate-api-client/models/validate_url_response_full.rb +0 -229
- data/lib/cloudmersive-validate-api-client/models/validate_url_response_syntax_only.rb +0 -199
- data/lib/cloudmersive-validate-api-client/models/vat_lookup_request.rb +0 -189
- data/lib/cloudmersive-validate-api-client/models/vat_lookup_response.rb +0 -229
- data/lib/cloudmersive-validate-api-client/models/whois_response.rb +0 -219
- data/lib/cloudmersive-validate-api-client/version.rb +0 -15
- data/spec/api/address_api_spec.rb +0 -47
- data/spec/api/domain_api_spec.rb +0 -83
- data/spec/api/email_api_spec.rb +0 -71
- data/spec/api/ip_address_api_spec.rb +0 -47
- data/spec/api/name_api_spec.rb +0 -95
- data/spec/api/phone_number_api_spec.rb +0 -47
- data/spec/api/user_agent_api_spec.rb +0 -47
- data/spec/api/vat_api_spec.rb +0 -47
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/address_get_servers_response_spec.rb +0 -48
- data/spec/models/address_verify_syntax_only_response_spec.rb +0 -42
- data/spec/models/check_response_spec.rb +0 -42
- data/spec/models/first_name_validation_request_spec.rb +0 -42
- data/spec/models/first_name_validation_response_spec.rb +0 -48
- data/spec/models/full_email_validation_response_spec.rb +0 -90
- data/spec/models/full_name_validation_request_spec.rb +0 -42
- data/spec/models/full_name_validation_response_spec.rb +0 -96
- data/spec/models/geolocate_response_spec.rb +0 -90
- data/spec/models/get_gender_request_spec.rb +0 -48
- data/spec/models/get_gender_response_spec.rb +0 -48
- data/spec/models/last_name_validation_request_spec.rb +0 -42
- data/spec/models/last_name_validation_response_spec.rb +0 -48
- data/spec/models/parse_address_request_spec.rb +0 -48
- data/spec/models/parse_address_response_spec.rb +0 -84
- data/spec/models/phone_number_validate_request_spec.rb +0 -48
- data/spec/models/phone_number_validation_response_spec.rb +0 -84
- data/spec/models/user_agent_validate_request_spec.rb +0 -42
- data/spec/models/user_agent_validate_response_spec.rb +0 -120
- data/spec/models/validate_identifier_request_spec.rb +0 -84
- data/spec/models/validate_identifier_response_spec.rb +0 -48
- data/spec/models/validate_url_request_full_spec.rb +0 -42
- data/spec/models/validate_url_request_syntax_only_spec.rb +0 -42
- data/spec/models/validate_url_response_full_spec.rb +0 -66
- data/spec/models/validate_url_response_syntax_only_spec.rb +0 -48
- data/spec/models/vat_lookup_request_spec.rb +0 -42
- data/spec/models/vat_lookup_response_spec.rb +0 -66
- data/spec/models/whois_response_spec.rb +0 -60
- data/spec/spec_helper.rb +0 -111
data/docs/CheckResponse.md
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
# CloudmersiveValidateApiClient::CheckResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**valid_domain** | **BOOLEAN** | True if the domain name was valid, false if it is not | [optional]
|
7
|
-
|
8
|
-
|
data/docs/DomainApi.md
DELETED
@@ -1,228 +0,0 @@
|
|
1
|
-
# CloudmersiveValidateApiClient::DomainApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**domain_check**](DomainApi.md#domain_check) | **POST** /validate/domain/check | Validate a domain name
|
8
|
-
[**domain_post**](DomainApi.md#domain_post) | **POST** /validate/domain/whois | Get WHOIS information for a domain
|
9
|
-
[**domain_url_full**](DomainApi.md#domain_url_full) | **POST** /validate/domain/url/full | Validate a URL fully
|
10
|
-
[**domain_url_syntax_only**](DomainApi.md#domain_url_syntax_only) | **POST** /validate/domain/url/syntax-only | Validate a URL syntactically
|
11
|
-
|
12
|
-
|
13
|
-
# **domain_check**
|
14
|
-
> CheckResponse domain_check(domain)
|
15
|
-
|
16
|
-
Validate a domain name
|
17
|
-
|
18
|
-
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.
|
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::DomainApi.new
|
33
|
-
|
34
|
-
domain = "domain_example" # String | Domain name to check, for example \"cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes.
|
35
|
-
|
36
|
-
|
37
|
-
begin
|
38
|
-
#Validate a domain name
|
39
|
-
result = api_instance.domain_check(domain)
|
40
|
-
p result
|
41
|
-
rescue CloudmersiveValidateApiClient::ApiError => e
|
42
|
-
puts "Exception when calling DomainApi->domain_check: #{e}"
|
43
|
-
end
|
44
|
-
```
|
45
|
-
|
46
|
-
### Parameters
|
47
|
-
|
48
|
-
Name | Type | Description | Notes
|
49
|
-
------------- | ------------- | ------------- | -------------
|
50
|
-
**domain** | **String**| Domain name to check, for example \"cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes. |
|
51
|
-
|
52
|
-
### Return type
|
53
|
-
|
54
|
-
[**CheckResponse**](CheckResponse.md)
|
55
|
-
|
56
|
-
### Authorization
|
57
|
-
|
58
|
-
[Apikey](../README.md#Apikey)
|
59
|
-
|
60
|
-
### HTTP request headers
|
61
|
-
|
62
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
63
|
-
- **Accept**: application/json, text/json, application/xml, text/xml
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
# **domain_post**
|
68
|
-
> WhoisResponse domain_post(domain)
|
69
|
-
|
70
|
-
Get WHOIS information for a domain
|
71
|
-
|
72
|
-
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.
|
73
|
-
|
74
|
-
### Example
|
75
|
-
```ruby
|
76
|
-
# load the gem
|
77
|
-
require 'cloudmersive-validate-api-client'
|
78
|
-
# setup authorization
|
79
|
-
CloudmersiveValidateApiClient.configure do |config|
|
80
|
-
# Configure API key authorization: Apikey
|
81
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
82
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
83
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
84
|
-
end
|
85
|
-
|
86
|
-
api_instance = CloudmersiveValidateApiClient::DomainApi.new
|
87
|
-
|
88
|
-
domain = "domain_example" # String | Domain name to check, for example \"cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes.
|
89
|
-
|
90
|
-
|
91
|
-
begin
|
92
|
-
#Get WHOIS information for a domain
|
93
|
-
result = api_instance.domain_post(domain)
|
94
|
-
p result
|
95
|
-
rescue CloudmersiveValidateApiClient::ApiError => e
|
96
|
-
puts "Exception when calling DomainApi->domain_post: #{e}"
|
97
|
-
end
|
98
|
-
```
|
99
|
-
|
100
|
-
### Parameters
|
101
|
-
|
102
|
-
Name | Type | Description | Notes
|
103
|
-
------------- | ------------- | ------------- | -------------
|
104
|
-
**domain** | **String**| Domain name to check, for example \"cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes. |
|
105
|
-
|
106
|
-
### Return type
|
107
|
-
|
108
|
-
[**WhoisResponse**](WhoisResponse.md)
|
109
|
-
|
110
|
-
### Authorization
|
111
|
-
|
112
|
-
[Apikey](../README.md#Apikey)
|
113
|
-
|
114
|
-
### HTTP request headers
|
115
|
-
|
116
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
117
|
-
- **Accept**: application/json, text/json, application/xml, text/xml
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
# **domain_url_full**
|
122
|
-
> ValidateUrlResponseFull domain_url_full(request)
|
123
|
-
|
124
|
-
Validate a URL fully
|
125
|
-
|
126
|
-
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.
|
127
|
-
|
128
|
-
### Example
|
129
|
-
```ruby
|
130
|
-
# load the gem
|
131
|
-
require 'cloudmersive-validate-api-client'
|
132
|
-
# setup authorization
|
133
|
-
CloudmersiveValidateApiClient.configure do |config|
|
134
|
-
# Configure API key authorization: Apikey
|
135
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
136
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
137
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
138
|
-
end
|
139
|
-
|
140
|
-
api_instance = CloudmersiveValidateApiClient::DomainApi.new
|
141
|
-
|
142
|
-
request = CloudmersiveValidateApiClient::ValidateUrlRequestFull.new # ValidateUrlRequestFull |
|
143
|
-
|
144
|
-
|
145
|
-
begin
|
146
|
-
#Validate a URL fully
|
147
|
-
result = api_instance.domain_url_full(request)
|
148
|
-
p result
|
149
|
-
rescue CloudmersiveValidateApiClient::ApiError => e
|
150
|
-
puts "Exception when calling DomainApi->domain_url_full: #{e}"
|
151
|
-
end
|
152
|
-
```
|
153
|
-
|
154
|
-
### Parameters
|
155
|
-
|
156
|
-
Name | Type | Description | Notes
|
157
|
-
------------- | ------------- | ------------- | -------------
|
158
|
-
**request** | [**ValidateUrlRequestFull**](ValidateUrlRequestFull.md)| |
|
159
|
-
|
160
|
-
### Return type
|
161
|
-
|
162
|
-
[**ValidateUrlResponseFull**](ValidateUrlResponseFull.md)
|
163
|
-
|
164
|
-
### Authorization
|
165
|
-
|
166
|
-
[Apikey](../README.md#Apikey)
|
167
|
-
|
168
|
-
### HTTP request headers
|
169
|
-
|
170
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
171
|
-
- **Accept**: application/json, text/json, application/xml, text/xml
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
# **domain_url_syntax_only**
|
176
|
-
> ValidateUrlResponseSyntaxOnly domain_url_syntax_only(request)
|
177
|
-
|
178
|
-
Validate a URL syntactically
|
179
|
-
|
180
|
-
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.
|
181
|
-
|
182
|
-
### Example
|
183
|
-
```ruby
|
184
|
-
# load the gem
|
185
|
-
require 'cloudmersive-validate-api-client'
|
186
|
-
# setup authorization
|
187
|
-
CloudmersiveValidateApiClient.configure do |config|
|
188
|
-
# Configure API key authorization: Apikey
|
189
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
190
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
191
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
192
|
-
end
|
193
|
-
|
194
|
-
api_instance = CloudmersiveValidateApiClient::DomainApi.new
|
195
|
-
|
196
|
-
request = CloudmersiveValidateApiClient::ValidateUrlRequestSyntaxOnly.new # ValidateUrlRequestSyntaxOnly |
|
197
|
-
|
198
|
-
|
199
|
-
begin
|
200
|
-
#Validate a URL syntactically
|
201
|
-
result = api_instance.domain_url_syntax_only(request)
|
202
|
-
p result
|
203
|
-
rescue CloudmersiveValidateApiClient::ApiError => e
|
204
|
-
puts "Exception when calling DomainApi->domain_url_syntax_only: #{e}"
|
205
|
-
end
|
206
|
-
```
|
207
|
-
|
208
|
-
### Parameters
|
209
|
-
|
210
|
-
Name | Type | Description | Notes
|
211
|
-
------------- | ------------- | ------------- | -------------
|
212
|
-
**request** | [**ValidateUrlRequestSyntaxOnly**](ValidateUrlRequestSyntaxOnly.md)| |
|
213
|
-
|
214
|
-
### Return type
|
215
|
-
|
216
|
-
[**ValidateUrlResponseSyntaxOnly**](ValidateUrlResponseSyntaxOnly.md)
|
217
|
-
|
218
|
-
### Authorization
|
219
|
-
|
220
|
-
[Apikey](../README.md#Apikey)
|
221
|
-
|
222
|
-
### HTTP request headers
|
223
|
-
|
224
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
225
|
-
- **Accept**: application/json, text/json, application/xml, text/xml
|
226
|
-
|
227
|
-
|
228
|
-
|
data/docs/EmailApi.md
DELETED
@@ -1,173 +0,0 @@
|
|
1
|
-
# CloudmersiveValidateApiClient::EmailApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**email_address_get_servers**](EmailApi.md#email_address_get_servers) | **POST** /validate/email/address/servers | Partially check whether an email address is valid
|
8
|
-
[**email_full_validation**](EmailApi.md#email_full_validation) | **POST** /validate/email/address/full | Fully validate an email address
|
9
|
-
[**email_post**](EmailApi.md#email_post) | **POST** /validate/email/address/syntaxOnly | Validate email adddress for syntactic correctness only
|
10
|
-
|
11
|
-
|
12
|
-
# **email_address_get_servers**
|
13
|
-
> AddressGetServersResponse email_address_get_servers(email)
|
14
|
-
|
15
|
-
Partially check whether an email address is valid
|
16
|
-
|
17
|
-
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.
|
18
|
-
|
19
|
-
### Example
|
20
|
-
```ruby
|
21
|
-
# load the gem
|
22
|
-
require 'cloudmersive-validate-api-client'
|
23
|
-
# setup authorization
|
24
|
-
CloudmersiveValidateApiClient.configure do |config|
|
25
|
-
# Configure API key authorization: Apikey
|
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 = CloudmersiveValidateApiClient::EmailApi.new
|
32
|
-
|
33
|
-
email = "email_example" # String | Email address to validate, e.g. \"support@cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes.
|
34
|
-
|
35
|
-
|
36
|
-
begin
|
37
|
-
#Partially check whether an email address is valid
|
38
|
-
result = api_instance.email_address_get_servers(email)
|
39
|
-
p result
|
40
|
-
rescue CloudmersiveValidateApiClient::ApiError => e
|
41
|
-
puts "Exception when calling EmailApi->email_address_get_servers: #{e}"
|
42
|
-
end
|
43
|
-
```
|
44
|
-
|
45
|
-
### Parameters
|
46
|
-
|
47
|
-
Name | Type | Description | Notes
|
48
|
-
------------- | ------------- | ------------- | -------------
|
49
|
-
**email** | **String**| Email address to validate, e.g. \"support@cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes. |
|
50
|
-
|
51
|
-
### Return type
|
52
|
-
|
53
|
-
[**AddressGetServersResponse**](AddressGetServersResponse.md)
|
54
|
-
|
55
|
-
### Authorization
|
56
|
-
|
57
|
-
[Apikey](../README.md#Apikey)
|
58
|
-
|
59
|
-
### HTTP request headers
|
60
|
-
|
61
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
62
|
-
- **Accept**: application/json, text/json, application/xml, text/xml
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
# **email_full_validation**
|
67
|
-
> FullEmailValidationResponse email_full_validation(email)
|
68
|
-
|
69
|
-
Fully validate an email address
|
70
|
-
|
71
|
-
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.
|
72
|
-
|
73
|
-
### Example
|
74
|
-
```ruby
|
75
|
-
# load the gem
|
76
|
-
require 'cloudmersive-validate-api-client'
|
77
|
-
# setup authorization
|
78
|
-
CloudmersiveValidateApiClient.configure do |config|
|
79
|
-
# Configure API key authorization: Apikey
|
80
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
81
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
82
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
83
|
-
end
|
84
|
-
|
85
|
-
api_instance = CloudmersiveValidateApiClient::EmailApi.new
|
86
|
-
|
87
|
-
email = "email_example" # String | Email address to validate, e.g. \"support@cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes.
|
88
|
-
|
89
|
-
|
90
|
-
begin
|
91
|
-
#Fully validate an email address
|
92
|
-
result = api_instance.email_full_validation(email)
|
93
|
-
p result
|
94
|
-
rescue CloudmersiveValidateApiClient::ApiError => e
|
95
|
-
puts "Exception when calling EmailApi->email_full_validation: #{e}"
|
96
|
-
end
|
97
|
-
```
|
98
|
-
|
99
|
-
### Parameters
|
100
|
-
|
101
|
-
Name | Type | Description | Notes
|
102
|
-
------------- | ------------- | ------------- | -------------
|
103
|
-
**email** | **String**| Email address to validate, e.g. \"support@cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes. |
|
104
|
-
|
105
|
-
### Return type
|
106
|
-
|
107
|
-
[**FullEmailValidationResponse**](FullEmailValidationResponse.md)
|
108
|
-
|
109
|
-
### Authorization
|
110
|
-
|
111
|
-
[Apikey](../README.md#Apikey)
|
112
|
-
|
113
|
-
### HTTP request headers
|
114
|
-
|
115
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
116
|
-
- **Accept**: application/json, text/json, application/xml, text/xml
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
# **email_post**
|
121
|
-
> AddressVerifySyntaxOnlyResponse email_post(value)
|
122
|
-
|
123
|
-
Validate email adddress for syntactic correctness only
|
124
|
-
|
125
|
-
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.
|
126
|
-
|
127
|
-
### Example
|
128
|
-
```ruby
|
129
|
-
# load the gem
|
130
|
-
require 'cloudmersive-validate-api-client'
|
131
|
-
# setup authorization
|
132
|
-
CloudmersiveValidateApiClient.configure do |config|
|
133
|
-
# Configure API key authorization: Apikey
|
134
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
135
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
136
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
137
|
-
end
|
138
|
-
|
139
|
-
api_instance = CloudmersiveValidateApiClient::EmailApi.new
|
140
|
-
|
141
|
-
value = "value_example" # String | Email address to validate, e.g. \"support@cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes.
|
142
|
-
|
143
|
-
|
144
|
-
begin
|
145
|
-
#Validate email adddress for syntactic correctness only
|
146
|
-
result = api_instance.email_post(value)
|
147
|
-
p result
|
148
|
-
rescue CloudmersiveValidateApiClient::ApiError => e
|
149
|
-
puts "Exception when calling EmailApi->email_post: #{e}"
|
150
|
-
end
|
151
|
-
```
|
152
|
-
|
153
|
-
### Parameters
|
154
|
-
|
155
|
-
Name | Type | Description | Notes
|
156
|
-
------------- | ------------- | ------------- | -------------
|
157
|
-
**value** | **String**| Email address to validate, e.g. \"support@cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes. |
|
158
|
-
|
159
|
-
### Return type
|
160
|
-
|
161
|
-
[**AddressVerifySyntaxOnlyResponse**](AddressVerifySyntaxOnlyResponse.md)
|
162
|
-
|
163
|
-
### Authorization
|
164
|
-
|
165
|
-
[Apikey](../README.md#Apikey)
|
166
|
-
|
167
|
-
### HTTP request headers
|
168
|
-
|
169
|
-
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
170
|
-
- **Accept**: application/json, text/json, application/xml, text/xml
|
171
|
-
|
172
|
-
|
173
|
-
|
@@ -1,9 +0,0 @@
|
|
1
|
-
# CloudmersiveValidateApiClient::FirstNameValidationResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**successful** | **BOOLEAN** | True if the validation operation was successful, false otherwise | [optional]
|
7
|
-
**validation_result** | **String** | Possible values are: ValidFirstName, ValidUnknownFirstName, InvalidSpamInput, InvalidCharacters, InvalidEmpty | [optional]
|
8
|
-
|
9
|
-
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# CloudmersiveValidateApiClient::FullEmailValidationResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**valid_address** | **BOOLEAN** | True if the email address is valid overall, false otherwise | [optional]
|
7
|
-
**mail_server_used_for_validation** | **String** | Email server connected to for verification | [optional]
|
8
|
-
**valid_syntax** | **BOOLEAN** | True if the syntax of the email address is valid, false otherwise. This is one component of ValidAddress, but not the only one. | [optional]
|
9
|
-
**valid_domain** | **BOOLEAN** | True if the domain name of the email address is valid, false otherwise. This is one component of ValidAddress, but not the only one. | [optional]
|
10
|
-
**valid_smtp** | **BOOLEAN** | True if the email address was verified by the remote server, false otherwise. This is one component of ValidAddress, but not the only one. | [optional]
|
11
|
-
**is_catchall_domain** | **BOOLEAN** | True if the domain is a catch-all domain name, false otherwise. Catch-all domain names, while rare, always accept inbound email to ensure they do not lose any potentially useful emails. Catch-all domain names can occassionally be configured to first accept and store all inbound email, but then later send a bounce email back to the sender after a delayed period of time. | [optional]
|
12
|
-
**domain** | **String** | Domain name of the email address | [optional]
|
13
|
-
**is_free_email_provider** | **BOOLEAN** | True if the email domain name is a free provider (typically a free to sign up web email provider for consumers / personal use), false otherwise. | [optional]
|
14
|
-
**is_disposable** | **BOOLEAN** | True if the email address is a disposable email address, false otherwise; these disposable providers are not typically used to receive email and so will have a low likelihood of opening mail sent there. | [optional]
|
15
|
-
|
16
|
-
|