cloudmersive-validate-api-client 1.2.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +118 -0
  4. data/Rakefile +8 -0
  5. data/cloudmersive-validate-api-client.gemspec +45 -0
  6. data/docs/AddressGetServersResponse.md +9 -0
  7. data/docs/AddressVerifySyntaxOnlyResponse.md +8 -0
  8. data/docs/CheckResponse.md +8 -0
  9. data/docs/DomainApi.md +118 -0
  10. data/docs/EmailApi.md +173 -0
  11. data/docs/FullEmailValidationResponse.md +9 -0
  12. data/docs/GeolocateResponse.md +16 -0
  13. data/docs/IPAddressApi.md +63 -0
  14. data/docs/PhoneNumberApi.md +63 -0
  15. data/docs/PhoneNumberValidateRequest.md +9 -0
  16. data/docs/PhoneNumberValidationResponse.md +15 -0
  17. data/docs/VatApi.md +63 -0
  18. data/docs/VatLookupRequest.md +8 -0
  19. data/docs/VatLookupResponse.md +12 -0
  20. data/docs/WhoisResponse.md +11 -0
  21. data/git_push.sh +55 -0
  22. data/lib/cloudmersive-validate-api-client.rb +54 -0
  23. data/lib/cloudmersive-validate-api-client/api/domain_api.rb +133 -0
  24. data/lib/cloudmersive-validate-api-client/api/email_api.rb +188 -0
  25. data/lib/cloudmersive-validate-api-client/api/ip_address_api.rb +78 -0
  26. data/lib/cloudmersive-validate-api-client/api/phone_number_api.rb +78 -0
  27. data/lib/cloudmersive-validate-api-client/api/vat_api.rb +78 -0
  28. data/lib/cloudmersive-validate-api-client/api_client.rb +389 -0
  29. data/lib/cloudmersive-validate-api-client/api_error.rb +38 -0
  30. data/lib/cloudmersive-validate-api-client/configuration.rb +209 -0
  31. data/lib/cloudmersive-validate-api-client/models/address_get_servers_response.rb +199 -0
  32. data/lib/cloudmersive-validate-api-client/models/address_verify_syntax_only_response.rb +189 -0
  33. data/lib/cloudmersive-validate-api-client/models/check_response.rb +189 -0
  34. data/lib/cloudmersive-validate-api-client/models/full_email_validation_response.rb +199 -0
  35. data/lib/cloudmersive-validate-api-client/models/geolocate_response.rb +269 -0
  36. data/lib/cloudmersive-validate-api-client/models/phone_number_validate_request.rb +199 -0
  37. data/lib/cloudmersive-validate-api-client/models/phone_number_validation_response.rb +259 -0
  38. data/lib/cloudmersive-validate-api-client/models/vat_lookup_request.rb +188 -0
  39. data/lib/cloudmersive-validate-api-client/models/vat_lookup_response.rb +224 -0
  40. data/lib/cloudmersive-validate-api-client/models/whois_response.rb +219 -0
  41. data/lib/cloudmersive-validate-api-client/version.rb +15 -0
  42. data/spec/api/domain_api_spec.rb +59 -0
  43. data/spec/api/email_api_spec.rb +71 -0
  44. data/spec/api/ip_address_api_spec.rb +47 -0
  45. data/spec/api/phone_number_api_spec.rb +47 -0
  46. data/spec/api/vat_api_spec.rb +47 -0
  47. data/spec/api_client_spec.rb +226 -0
  48. data/spec/configuration_spec.rb +42 -0
  49. data/spec/models/address_get_servers_response_spec.rb +48 -0
  50. data/spec/models/address_verify_syntax_only_response_spec.rb +42 -0
  51. data/spec/models/check_response_spec.rb +42 -0
  52. data/spec/models/full_email_validation_response_spec.rb +48 -0
  53. data/spec/models/geolocate_response_spec.rb +90 -0
  54. data/spec/models/phone_number_validate_request_spec.rb +48 -0
  55. data/spec/models/phone_number_validation_response_spec.rb +84 -0
  56. data/spec/models/vat_lookup_request_spec.rb +42 -0
  57. data/spec/models/vat_lookup_response_spec.rb +66 -0
  58. data/spec/models/whois_response_spec.rb +60 -0
  59. data/spec/spec_helper.rb +111 -0
  60. metadata +284 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: cc5bf2a26996f500abf8ab96550e4a1725bf4b187960737229a5911d6b5eec89
4
+ data.tar.gz: 044b65a4c331eb8b9c581231ecdca1c0a092c1e2221f6e374a8b94db6d086652
5
+ SHA512:
6
+ metadata.gz: 0e6254deb81621fb568f70735ad285677cb5ecc35f7f7fbc5e83760657134845187ddf4001cea108f11cea9a45ae243a1038449c1ee7a864edef62180d373d68
7
+ data.tar.gz: f8df7ff536709eaf7a0b2ec85532cd732e39a9e5fcb49f4641e20b5536cd66f5266838a633a3f48d34d47c7b4703678d1961d8e6fad0e94c0649f73122263aa5
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 12.0.0'
7
+ end
data/README.md ADDED
@@ -0,0 +1,118 @@
1
+ # cloudmersive-validate-api-client
2
+
3
+ CloudmersiveValidateApiClient - the Ruby gem for the validateapi
4
+
5
+ The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
6
+
7
+ This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
+
9
+ - API version: v1
10
+ - Package version: 1.2.9
11
+ - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
+
13
+ ## Installation
14
+
15
+ ### Build a gem
16
+
17
+ To build the Ruby code into a gem:
18
+
19
+ ```shell
20
+ gem build cloudmersive-validate-api-client.gemspec
21
+ ```
22
+
23
+ Then either install the gem locally:
24
+
25
+ ```shell
26
+ gem install ./cloudmersive-validate-api-client-1.2.9.gem
27
+ ```
28
+ (for development, run `gem install --dev ./cloudmersive-validate-api-client-1.2.9.gem` to install the development dependencies)
29
+
30
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
+
32
+ Finally add this to the Gemfile:
33
+
34
+ gem 'cloudmersive-validate-api-client', '~> 1.2.9'
35
+
36
+ ### Install from Git
37
+
38
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
39
+
40
+ gem 'cloudmersive-validate-api-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
41
+
42
+ ### Include the Ruby code directly
43
+
44
+ Include the Ruby code directly using `-I` as follows:
45
+
46
+ ```shell
47
+ ruby -Ilib script.rb
48
+ ```
49
+
50
+ ## Getting Started
51
+
52
+ Please follow the [installation](#installation) procedure and then run the following code:
53
+ ```ruby
54
+ # Load the gem
55
+ require 'cloudmersive-validate-api-client'
56
+
57
+ # Setup authorization
58
+ CloudmersiveValidateApiClient.configure do |config|
59
+ # Configure API key authorization: Apikey
60
+ config.api_key['Apikey'] = 'YOUR API KEY'
61
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
62
+ #config.api_key_prefix['Apikey'] = 'Bearer'
63
+ end
64
+
65
+ api_instance = CloudmersiveValidateApiClient::DomainApi.new
66
+
67
+ 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.
68
+
69
+
70
+ begin
71
+ #Validate a domain name
72
+ result = api_instance.domain_check(domain)
73
+ p result
74
+ rescue CloudmersiveValidateApiClient::ApiError => e
75
+ puts "Exception when calling DomainApi->domain_check: #{e}"
76
+ end
77
+
78
+ ```
79
+
80
+ ## Documentation for API Endpoints
81
+
82
+ All URIs are relative to *https://api.cloudmersive.com*
83
+
84
+ Class | Method | HTTP request | Description
85
+ ------------ | ------------- | ------------- | -------------
86
+ *CloudmersiveValidateApiClient::DomainApi* | [**domain_check**](docs/DomainApi.md#domain_check) | **POST** /validate/domain/check | Validate a domain name
87
+ *CloudmersiveValidateApiClient::DomainApi* | [**domain_post**](docs/DomainApi.md#domain_post) | **POST** /validate/domain/whois | Get WHOIS information for a domain
88
+ *CloudmersiveValidateApiClient::EmailApi* | [**email_address_get_servers**](docs/EmailApi.md#email_address_get_servers) | **POST** /validate/email/address/servers | Partially check whether an email address is valid
89
+ *CloudmersiveValidateApiClient::EmailApi* | [**email_full_validation**](docs/EmailApi.md#email_full_validation) | **POST** /validate/email/address/full | Fully validate an email address
90
+ *CloudmersiveValidateApiClient::EmailApi* | [**email_post**](docs/EmailApi.md#email_post) | **POST** /validate/email/address/syntaxOnly | Validate email adddress for syntactic correctness only
91
+ *CloudmersiveValidateApiClient::IPAddressApi* | [**i_p_address_post**](docs/IPAddressApi.md#i_p_address_post) | **POST** /validate/ip/geolocate | Geolocate an IP address
92
+ *CloudmersiveValidateApiClient::PhoneNumberApi* | [**phone_number_syntax_only**](docs/PhoneNumberApi.md#phone_number_syntax_only) | **POST** /validate/phonenumber/basic | Validate phone number (basic)
93
+ *CloudmersiveValidateApiClient::VatApi* | [**vat_vat_lookup**](docs/VatApi.md#vat_vat_lookup) | **POST** /validate/vat/lookup | Lookup a VAT code
94
+
95
+
96
+ ## Documentation for Models
97
+
98
+ - [CloudmersiveValidateApiClient::AddressGetServersResponse](docs/AddressGetServersResponse.md)
99
+ - [CloudmersiveValidateApiClient::AddressVerifySyntaxOnlyResponse](docs/AddressVerifySyntaxOnlyResponse.md)
100
+ - [CloudmersiveValidateApiClient::CheckResponse](docs/CheckResponse.md)
101
+ - [CloudmersiveValidateApiClient::FullEmailValidationResponse](docs/FullEmailValidationResponse.md)
102
+ - [CloudmersiveValidateApiClient::GeolocateResponse](docs/GeolocateResponse.md)
103
+ - [CloudmersiveValidateApiClient::PhoneNumberValidateRequest](docs/PhoneNumberValidateRequest.md)
104
+ - [CloudmersiveValidateApiClient::PhoneNumberValidationResponse](docs/PhoneNumberValidationResponse.md)
105
+ - [CloudmersiveValidateApiClient::VatLookupRequest](docs/VatLookupRequest.md)
106
+ - [CloudmersiveValidateApiClient::VatLookupResponse](docs/VatLookupResponse.md)
107
+ - [CloudmersiveValidateApiClient::WhoisResponse](docs/WhoisResponse.md)
108
+
109
+
110
+ ## Documentation for Authorization
111
+
112
+
113
+ ### Apikey
114
+
115
+ - **Type**: API key
116
+ - **API key parameter name**: Apikey
117
+ - **Location**: HTTP header
118
+
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ begin
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task default: :spec
6
+ rescue LoadError
7
+ # no rspec available
8
+ end
@@ -0,0 +1,45 @@
1
+ # -*- encoding: utf-8 -*-
2
+ #
3
+ =begin
4
+ #validateapi
5
+
6
+ #The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
7
+
8
+ OpenAPI spec version: v1
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ Swagger Codegen version: unset
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "cloudmersive-validate-api-client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "cloudmersive-validate-api-client"
20
+ s.version = CloudmersiveValidateApiClient::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["Cloudmersive"]
23
+ s.email = [""]
24
+ s.homepage = "https://www.cloudmersive.com/validate-api"
25
+ s.summary = "Validate key business data thoroughly."
26
+ s.description = "The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API."
27
+ s.license = "Apache 2.0"
28
+ s.required_ruby_version = ">= 1.9"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+ s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35
+ s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
36
+ s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
37
+ s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
38
+ s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
39
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
40
+
41
+ s.files = Dir['./**/*']
42
+ s.test_files = `find spec/*`.split("\n")
43
+ s.executables = []
44
+ s.require_paths = ["lib"]
45
+ end
@@ -0,0 +1,9 @@
1
+ # CloudmersiveValidateApiClient::AddressGetServersResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **success** | **BOOLEAN** | | [optional]
7
+ **servers** | **Array<String>** | | [optional]
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # CloudmersiveValidateApiClient::AddressVerifySyntaxOnlyResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **valid_address** | **BOOLEAN** | True if the email address is syntactically valid, false if it is not | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
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 ADDED
@@ -0,0 +1,118 @@
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
+
10
+
11
+ # **domain_check**
12
+ > CheckResponse domain_check(domain)
13
+
14
+ Validate a domain name
15
+
16
+ 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.
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::DomainApi.new
31
+
32
+ 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.
33
+
34
+
35
+ begin
36
+ #Validate a domain name
37
+ result = api_instance.domain_check(domain)
38
+ p result
39
+ rescue CloudmersiveValidateApiClient::ApiError => e
40
+ puts "Exception when calling DomainApi->domain_check: #{e}"
41
+ end
42
+ ```
43
+
44
+ ### Parameters
45
+
46
+ Name | Type | Description | Notes
47
+ ------------- | ------------- | ------------- | -------------
48
+ **domain** | **String**| Domain name to check, for example \"cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes. |
49
+
50
+ ### Return type
51
+
52
+ [**CheckResponse**](CheckResponse.md)
53
+
54
+ ### Authorization
55
+
56
+ [Apikey](../README.md#Apikey)
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
61
+ - **Accept**: application/json, text/json, application/xml, text/xml
62
+
63
+
64
+
65
+ # **domain_post**
66
+ > WhoisResponse domain_post(domain)
67
+
68
+ Get WHOIS information for a domain
69
+
70
+ 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.
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::DomainApi.new
85
+
86
+ 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.
87
+
88
+
89
+ begin
90
+ #Get WHOIS information for a domain
91
+ result = api_instance.domain_post(domain)
92
+ p result
93
+ rescue CloudmersiveValidateApiClient::ApiError => e
94
+ puts "Exception when calling DomainApi->domain_post: #{e}"
95
+ end
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+ Name | Type | Description | Notes
101
+ ------------- | ------------- | ------------- | -------------
102
+ **domain** | **String**| Domain name to check, for example \"cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes. |
103
+
104
+ ### Return type
105
+
106
+ [**WhoisResponse**](WhoisResponse.md)
107
+
108
+ ### Authorization
109
+
110
+ [Apikey](../README.md#Apikey)
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
115
+ - **Accept**: application/json, text/json, application/xml, text/xml
116
+
117
+
118
+
data/docs/EmailApi.md ADDED
@@ -0,0 +1,173 @@
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
+