cloudmersive-validate-api-client 1.3.3 → 1.3.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -9
  3. data/cloudmersive-validate-api-client.gemspec +1 -1
  4. data/docs/AddressApi.md +118 -0
  5. data/docs/AddressGetServersResponse.md +2 -2
  6. data/docs/AddressVerifySyntaxOnlyResponse.md +3 -0
  7. data/docs/DomainApi.md +112 -2
  8. data/docs/EmailApi.md +3 -3
  9. data/docs/IPAddressApi.md +1 -1
  10. data/docs/LeadEnrichmentApi.md +61 -0
  11. data/docs/LeadEnrichmentRequest.md +21 -0
  12. data/docs/LeadEnrichmentResponse.md +25 -0
  13. data/docs/NameApi.md +59 -4
  14. data/docs/ParseAddressRequest.md +9 -0
  15. data/docs/ParseAddressResponse.md +16 -0
  16. data/docs/PhoneNumberApi.md +1 -1
  17. data/docs/UserAgentApi.md +63 -0
  18. data/docs/UserAgentValidateRequest.md +8 -0
  19. data/docs/UserAgentValidateResponse.md +21 -0
  20. data/docs/ValidateCountryRequest.md +8 -0
  21. data/docs/ValidateCountryResponse.md +12 -0
  22. data/docs/ValidateIdentifierRequest.md +15 -0
  23. data/docs/ValidateIdentifierResponse.md +9 -0
  24. data/docs/ValidateUrlRequestFull.md +8 -0
  25. data/docs/ValidateUrlRequestSyntaxOnly.md +8 -0
  26. data/docs/ValidateUrlResponseFull.md +12 -0
  27. data/docs/ValidateUrlResponseSyntaxOnly.md +9 -0
  28. data/docs/VatApi.md +1 -1
  29. data/docs/VatLookupRequest.md +1 -1
  30. data/docs/VatLookupResponse.md +12 -5
  31. data/docs/WhoisResponse.md +11 -0
  32. data/lib/cloudmersive-validate-api-client.rb +18 -1
  33. data/lib/cloudmersive-validate-api-client/api/address_api.rb +133 -0
  34. data/lib/cloudmersive-validate-api-client/api/domain_api.rb +113 -3
  35. data/lib/cloudmersive-validate-api-client/api/email_api.rb +4 -4
  36. data/lib/cloudmersive-validate-api-client/api/ip_address_api.rb +2 -2
  37. data/lib/cloudmersive-validate-api-client/api/lead_enrichment_api.rb +78 -0
  38. data/lib/cloudmersive-validate-api-client/api/name_api.rb +60 -5
  39. data/lib/cloudmersive-validate-api-client/api/phone_number_api.rb +2 -2
  40. data/lib/cloudmersive-validate-api-client/api/user_agent_api.rb +78 -0
  41. data/lib/cloudmersive-validate-api-client/api/vat_api.rb +2 -2
  42. data/lib/cloudmersive-validate-api-client/api_client.rb +1 -1
  43. data/lib/cloudmersive-validate-api-client/api_error.rb +1 -1
  44. data/lib/cloudmersive-validate-api-client/configuration.rb +1 -1
  45. data/lib/cloudmersive-validate-api-client/models/address_get_servers_response.rb +3 -1
  46. data/lib/cloudmersive-validate-api-client/models/address_verify_syntax_only_response.rb +35 -5
  47. data/lib/cloudmersive-validate-api-client/models/check_response.rb +1 -1
  48. data/lib/cloudmersive-validate-api-client/models/first_name_validation_request.rb +1 -1
  49. data/lib/cloudmersive-validate-api-client/models/first_name_validation_response.rb +1 -1
  50. data/lib/cloudmersive-validate-api-client/models/full_email_validation_response.rb +1 -1
  51. data/lib/cloudmersive-validate-api-client/models/full_name_validation_request.rb +1 -1
  52. data/lib/cloudmersive-validate-api-client/models/full_name_validation_response.rb +1 -1
  53. data/lib/cloudmersive-validate-api-client/models/geolocate_response.rb +1 -1
  54. data/lib/cloudmersive-validate-api-client/models/get_gender_request.rb +1 -1
  55. data/lib/cloudmersive-validate-api-client/models/get_gender_response.rb +1 -1
  56. data/lib/cloudmersive-validate-api-client/models/last_name_validation_request.rb +1 -1
  57. data/lib/cloudmersive-validate-api-client/models/last_name_validation_response.rb +1 -1
  58. data/lib/cloudmersive-validate-api-client/models/lead_enrichment_request.rb +319 -0
  59. data/lib/cloudmersive-validate-api-client/models/lead_enrichment_response.rb +359 -0
  60. data/lib/cloudmersive-validate-api-client/models/parse_address_request.rb +199 -0
  61. data/lib/cloudmersive-validate-api-client/models/parse_address_response.rb +269 -0
  62. data/lib/cloudmersive-validate-api-client/models/phone_number_validate_request.rb +1 -1
  63. data/lib/cloudmersive-validate-api-client/models/phone_number_validation_response.rb +1 -1
  64. data/lib/cloudmersive-validate-api-client/models/user_agent_validate_request.rb +189 -0
  65. data/lib/cloudmersive-validate-api-client/models/user_agent_validate_response.rb +319 -0
  66. data/lib/cloudmersive-validate-api-client/models/validate_country_request.rb +189 -0
  67. data/lib/cloudmersive-validate-api-client/models/validate_country_response.rb +229 -0
  68. data/lib/cloudmersive-validate-api-client/models/validate_identifier_request.rb +259 -0
  69. data/lib/cloudmersive-validate-api-client/models/validate_identifier_response.rb +199 -0
  70. data/lib/cloudmersive-validate-api-client/models/validate_url_request_full.rb +189 -0
  71. data/lib/cloudmersive-validate-api-client/models/validate_url_request_syntax_only.rb +189 -0
  72. data/lib/cloudmersive-validate-api-client/models/validate_url_response_full.rb +229 -0
  73. data/lib/cloudmersive-validate-api-client/models/validate_url_response_syntax_only.rb +199 -0
  74. data/lib/cloudmersive-validate-api-client/models/vat_lookup_request.rb +2 -1
  75. data/lib/cloudmersive-validate-api-client/models/vat_lookup_response.rb +80 -5
  76. data/lib/cloudmersive-validate-api-client/models/whois_response.rb +112 -2
  77. data/lib/cloudmersive-validate-api-client/version.rb +2 -2
  78. data/spec/api/address_api_spec.rb +59 -0
  79. data/spec/api/domain_api_spec.rb +25 -1
  80. data/spec/api/email_api_spec.rb +1 -1
  81. data/spec/api/ip_address_api_spec.rb +1 -1
  82. data/spec/api/lead_enrichment_api_spec.rb +47 -0
  83. data/spec/api/name_api_spec.rb +13 -1
  84. data/spec/api/phone_number_api_spec.rb +1 -1
  85. data/spec/api/user_agent_api_spec.rb +47 -0
  86. data/spec/api/vat_api_spec.rb +1 -1
  87. data/spec/api_client_spec.rb +1 -1
  88. data/spec/configuration_spec.rb +1 -1
  89. data/spec/models/address_get_servers_response_spec.rb +1 -1
  90. data/spec/models/address_verify_syntax_only_response_spec.rb +19 -1
  91. data/spec/models/check_response_spec.rb +1 -1
  92. data/spec/models/first_name_validation_request_spec.rb +1 -1
  93. data/spec/models/first_name_validation_response_spec.rb +1 -1
  94. data/spec/models/full_email_validation_response_spec.rb +1 -1
  95. data/spec/models/full_name_validation_request_spec.rb +1 -1
  96. data/spec/models/full_name_validation_response_spec.rb +1 -1
  97. data/spec/models/geolocate_response_spec.rb +1 -1
  98. data/spec/models/get_gender_request_spec.rb +1 -1
  99. data/spec/models/get_gender_response_spec.rb +1 -1
  100. data/spec/models/last_name_validation_request_spec.rb +1 -1
  101. data/spec/models/last_name_validation_response_spec.rb +1 -1
  102. data/spec/models/lead_enrichment_request_spec.rb +120 -0
  103. data/spec/models/lead_enrichment_response_spec.rb +144 -0
  104. data/spec/models/parse_address_request_spec.rb +48 -0
  105. data/spec/models/parse_address_response_spec.rb +90 -0
  106. data/spec/models/phone_number_validate_request_spec.rb +1 -1
  107. data/spec/models/phone_number_validation_response_spec.rb +1 -1
  108. data/spec/models/user_agent_validate_request_spec.rb +42 -0
  109. data/spec/models/user_agent_validate_response_spec.rb +120 -0
  110. data/spec/models/validate_country_request_spec.rb +42 -0
  111. data/spec/models/validate_country_response_spec.rb +66 -0
  112. data/spec/models/validate_identifier_request_spec.rb +84 -0
  113. data/spec/models/validate_identifier_response_spec.rb +48 -0
  114. data/spec/models/validate_url_request_full_spec.rb +42 -0
  115. data/spec/models/validate_url_request_syntax_only_spec.rb +42 -0
  116. data/spec/models/validate_url_response_full_spec.rb +66 -0
  117. data/spec/models/validate_url_response_syntax_only_spec.rb +48 -0
  118. data/spec/models/vat_lookup_request_spec.rb +1 -1
  119. data/spec/models/vat_lookup_response_spec.rb +43 -1
  120. data/spec/models/whois_response_spec.rb +67 -1
  121. data/spec/spec_helper.rb +1 -1
  122. metadata +66 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 651df94b49985ee194b2b4f98a807122b77ccc2229f16e755b3e57eaa6a41f67
4
- data.tar.gz: 8b0a5a3632a2b263c8ada9924f64048586a1b52732a7f48df51d1b30ddc9c77f
3
+ metadata.gz: d2f6eac190c34cad7cbdaf3d120199a0d7d385bc51bdddc068af99dccd987696
4
+ data.tar.gz: 9070a4f22fb7d095592a8abe4a39fe66c6e1a8aef9b8086348f9dc4c54d30384
5
5
  SHA512:
6
- metadata.gz: a8582002ca7fae01d888e84a6e22c6dc5f4c6f11db9201f257d8e381723bd047b012aa869f9201a6ab2183dcb654796b1baeb363d4dfc0ce700911d67005e2ea
7
- data.tar.gz: 42d02589332c71c7f26197019c9ca7099866d0fa9a1ac5cfbf703261d86345c0a89b0fbf928d79a13c6dd19f8efd3e6c343d4a54d2928f651ab66515ec794f7c
6
+ metadata.gz: f712df54ae0c0e4f3e00aec4a793d1a936bcfcafb79e243f978401348a83900fca46d9a8b3cd1b49021e9e12ebbaed8a6e32da86fcac726454e2021506a5b845
7
+ data.tar.gz: 4eb45a418278746102f24933bc6a255038ff03ff6fe082534d04b2e5e5c802de73acd39c23fc8f019ca86e089258d9da74802115987e5fe1d702adad75abe999
data/README.md CHANGED
@@ -7,7 +7,7 @@ The validation APIs help you validate data. Check if an E-mail address is real.
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 1.3.3
10
+ - Package version: 1.3.9
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build cloudmersive-validate-api-client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./cloudmersive-validate-api-client-1.3.3.gem
26
+ gem install ./cloudmersive-validate-api-client-1.3.9.gem
27
27
  ```
28
- (for development, run `gem install --dev ./cloudmersive-validate-api-client-1.3.3.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./cloudmersive-validate-api-client-1.3.9.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'cloudmersive-validate-api-client', '~> 1.3.3'
34
+ gem 'cloudmersive-validate-api-client', '~> 1.3.9'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -62,17 +62,17 @@ CloudmersiveValidateApiClient.configure do |config|
62
62
  #config.api_key_prefix['Apikey'] = 'Bearer'
63
63
  end
64
64
 
65
- api_instance = CloudmersiveValidateApiClient::DomainApi.new
65
+ api_instance = CloudmersiveValidateApiClient::AddressApi.new
66
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.
67
+ input = CloudmersiveValidateApiClient::ValidateCountryRequest.new # ValidateCountryRequest | Input request
68
68
 
69
69
 
70
70
  begin
71
- #Validate a domain name
72
- result = api_instance.domain_check(domain)
71
+ #Validate and normalize country information, return ISO 3166-1 country codes and country name
72
+ result = api_instance.address_country(input)
73
73
  p result
74
74
  rescue CloudmersiveValidateApiClient::ApiError => e
75
- puts "Exception when calling DomainApi->domain_check: #{e}"
75
+ puts "Exception when calling AddressApi->address_country: #{e}"
76
76
  end
77
77
 
78
78
  ```
@@ -83,17 +83,24 @@ All URIs are relative to *https://api.cloudmersive.com*
83
83
 
84
84
  Class | Method | HTTP request | Description
85
85
  ------------ | ------------- | ------------- | -------------
86
+ *CloudmersiveValidateApiClient::AddressApi* | [**address_country**](docs/AddressApi.md#address_country) | **POST** /validate/address/country | Validate and normalize country information, return ISO 3166-1 country codes and country name
87
+ *CloudmersiveValidateApiClient::AddressApi* | [**address_parse_string**](docs/AddressApi.md#address_parse_string) | **POST** /validate/address/parse | Parse an unstructured input text string into an international, formatted address
86
88
  *CloudmersiveValidateApiClient::DomainApi* | [**domain_check**](docs/DomainApi.md#domain_check) | **POST** /validate/domain/check | Validate a domain name
87
89
  *CloudmersiveValidateApiClient::DomainApi* | [**domain_post**](docs/DomainApi.md#domain_post) | **POST** /validate/domain/whois | Get WHOIS information for a domain
90
+ *CloudmersiveValidateApiClient::DomainApi* | [**domain_url_full**](docs/DomainApi.md#domain_url_full) | **POST** /validate/domain/url/full | Validate a URL fully
91
+ *CloudmersiveValidateApiClient::DomainApi* | [**domain_url_syntax_only**](docs/DomainApi.md#domain_url_syntax_only) | **POST** /validate/domain/url/syntax-only | Validate a URL syntactically
88
92
  *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
93
  *CloudmersiveValidateApiClient::EmailApi* | [**email_full_validation**](docs/EmailApi.md#email_full_validation) | **POST** /validate/email/address/full | Fully validate an email address
90
94
  *CloudmersiveValidateApiClient::EmailApi* | [**email_post**](docs/EmailApi.md#email_post) | **POST** /validate/email/address/syntaxOnly | Validate email adddress for syntactic correctness only
91
95
  *CloudmersiveValidateApiClient::IPAddressApi* | [**i_p_address_post**](docs/IPAddressApi.md#i_p_address_post) | **POST** /validate/ip/geolocate | Geolocate an IP address
96
+ *CloudmersiveValidateApiClient::LeadEnrichmentApi* | [**lead_enrichment_enrich_lead**](docs/LeadEnrichmentApi.md#lead_enrichment_enrich_lead) | **POST** /validate/lead-enrichment/lead/enrich | Enrich an input lead with additional fields of data
92
97
  *CloudmersiveValidateApiClient::NameApi* | [**name_get_gender**](docs/NameApi.md#name_get_gender) | **POST** /validate/name/get-gender | Get the gender of a first name
98
+ *CloudmersiveValidateApiClient::NameApi* | [**name_identifier**](docs/NameApi.md#name_identifier) | **POST** /validate/name/identifier | Validate a code identifier
93
99
  *CloudmersiveValidateApiClient::NameApi* | [**name_validate_first_name**](docs/NameApi.md#name_validate_first_name) | **POST** /validate/name/first | Validate a first name
94
100
  *CloudmersiveValidateApiClient::NameApi* | [**name_validate_full_name**](docs/NameApi.md#name_validate_full_name) | **POST** /validate/name/full-name | Parse and validate a full name
95
101
  *CloudmersiveValidateApiClient::NameApi* | [**name_validate_last_name**](docs/NameApi.md#name_validate_last_name) | **POST** /validate/name/last | Validate a last name
96
102
  *CloudmersiveValidateApiClient::PhoneNumberApi* | [**phone_number_syntax_only**](docs/PhoneNumberApi.md#phone_number_syntax_only) | **POST** /validate/phonenumber/basic | Validate phone number (basic)
103
+ *CloudmersiveValidateApiClient::UserAgentApi* | [**user_agent_parse**](docs/UserAgentApi.md#user_agent_parse) | **POST** /validate/useragent/parse | Parse an HTTP User-Agent string, identify robots
97
104
  *CloudmersiveValidateApiClient::VatApi* | [**vat_vat_lookup**](docs/VatApi.md#vat_vat_lookup) | **POST** /validate/vat/lookup | Lookup a VAT code
98
105
 
99
106
 
@@ -112,8 +119,22 @@ Class | Method | HTTP request | Description
112
119
  - [CloudmersiveValidateApiClient::GetGenderResponse](docs/GetGenderResponse.md)
113
120
  - [CloudmersiveValidateApiClient::LastNameValidationRequest](docs/LastNameValidationRequest.md)
114
121
  - [CloudmersiveValidateApiClient::LastNameValidationResponse](docs/LastNameValidationResponse.md)
122
+ - [CloudmersiveValidateApiClient::LeadEnrichmentRequest](docs/LeadEnrichmentRequest.md)
123
+ - [CloudmersiveValidateApiClient::LeadEnrichmentResponse](docs/LeadEnrichmentResponse.md)
124
+ - [CloudmersiveValidateApiClient::ParseAddressRequest](docs/ParseAddressRequest.md)
125
+ - [CloudmersiveValidateApiClient::ParseAddressResponse](docs/ParseAddressResponse.md)
115
126
  - [CloudmersiveValidateApiClient::PhoneNumberValidateRequest](docs/PhoneNumberValidateRequest.md)
116
127
  - [CloudmersiveValidateApiClient::PhoneNumberValidationResponse](docs/PhoneNumberValidationResponse.md)
128
+ - [CloudmersiveValidateApiClient::UserAgentValidateRequest](docs/UserAgentValidateRequest.md)
129
+ - [CloudmersiveValidateApiClient::UserAgentValidateResponse](docs/UserAgentValidateResponse.md)
130
+ - [CloudmersiveValidateApiClient::ValidateCountryRequest](docs/ValidateCountryRequest.md)
131
+ - [CloudmersiveValidateApiClient::ValidateCountryResponse](docs/ValidateCountryResponse.md)
132
+ - [CloudmersiveValidateApiClient::ValidateIdentifierRequest](docs/ValidateIdentifierRequest.md)
133
+ - [CloudmersiveValidateApiClient::ValidateIdentifierResponse](docs/ValidateIdentifierResponse.md)
134
+ - [CloudmersiveValidateApiClient::ValidateUrlRequestFull](docs/ValidateUrlRequestFull.md)
135
+ - [CloudmersiveValidateApiClient::ValidateUrlRequestSyntaxOnly](docs/ValidateUrlRequestSyntaxOnly.md)
136
+ - [CloudmersiveValidateApiClient::ValidateUrlResponseFull](docs/ValidateUrlResponseFull.md)
137
+ - [CloudmersiveValidateApiClient::ValidateUrlResponseSyntaxOnly](docs/ValidateUrlResponseSyntaxOnly.md)
117
138
  - [CloudmersiveValidateApiClient::VatLookupRequest](docs/VatLookupRequest.md)
118
139
  - [CloudmersiveValidateApiClient::VatLookupResponse](docs/VatLookupResponse.md)
119
140
  - [CloudmersiveValidateApiClient::WhoisResponse](docs/WhoisResponse.md)
@@ -8,7 +8,7 @@
8
8
  OpenAPI spec version: v1
9
9
 
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
- Swagger Codegen version: unset
11
+ Swagger Codegen version: 2.3.1
12
12
 
13
13
  =end
14
14
 
@@ -0,0 +1,118 @@
1
+ # CloudmersiveValidateApiClient::AddressApi
2
+
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**address_country**](AddressApi.md#address_country) | **POST** /validate/address/country | Validate and normalize country information, return ISO 3166-1 country codes and country name
8
+ [**address_parse_string**](AddressApi.md#address_parse_string) | **POST** /validate/address/parse | Parse an unstructured input text string into an international, formatted address
9
+
10
+
11
+ # **address_country**
12
+ > ValidateCountryResponse address_country(input)
13
+
14
+ Validate and normalize country information, return ISO 3166-1 country codes and country name
15
+
16
+ Validates and normalizes country information, and returns key information about a country.
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::AddressApi.new
31
+
32
+ input = CloudmersiveValidateApiClient::ValidateCountryRequest.new # ValidateCountryRequest | Input request
33
+
34
+
35
+ begin
36
+ #Validate and normalize country information, return ISO 3166-1 country codes and country name
37
+ result = api_instance.address_country(input)
38
+ p result
39
+ rescue CloudmersiveValidateApiClient::ApiError => e
40
+ puts "Exception when calling AddressApi->address_country: #{e}"
41
+ end
42
+ ```
43
+
44
+ ### Parameters
45
+
46
+ Name | Type | Description | Notes
47
+ ------------- | ------------- | ------------- | -------------
48
+ **input** | [**ValidateCountryRequest**](ValidateCountryRequest.md)| Input request |
49
+
50
+ ### Return type
51
+
52
+ [**ValidateCountryResponse**](ValidateCountryResponse.md)
53
+
54
+ ### Authorization
55
+
56
+ [Apikey](../README.md#Apikey)
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: application/json, text/json
61
+ - **Accept**: application/json, text/json, application/xml, text/xml
62
+
63
+
64
+
65
+ # **address_parse_string**
66
+ > ParseAddressResponse address_parse_string(input)
67
+
68
+ Parse an unstructured input text string into an international, formatted address
69
+
70
+ Uses machine learning and Natural Language Processing (NLP) to handle a wide array of cases, including non-standard and unstructured address strings across a wide array of countries and address formatting norms.
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::AddressApi.new
85
+
86
+ input = CloudmersiveValidateApiClient::ParseAddressRequest.new # ParseAddressRequest | Input parse request
87
+
88
+
89
+ begin
90
+ #Parse an unstructured input text string into an international, formatted address
91
+ result = api_instance.address_parse_string(input)
92
+ p result
93
+ rescue CloudmersiveValidateApiClient::ApiError => e
94
+ puts "Exception when calling AddressApi->address_parse_string: #{e}"
95
+ end
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+ Name | Type | Description | Notes
101
+ ------------- | ------------- | ------------- | -------------
102
+ **input** | [**ParseAddressRequest**](ParseAddressRequest.md)| Input parse request |
103
+
104
+ ### Return type
105
+
106
+ [**ParseAddressResponse**](ParseAddressResponse.md)
107
+
108
+ ### Authorization
109
+
110
+ [Apikey](../README.md#Apikey)
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: application/json, text/json
115
+ - **Accept**: application/json, text/json, application/xml, text/xml
116
+
117
+
118
+
@@ -3,7 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **success** | **BOOLEAN** | | [optional]
7
- **servers** | **Array<String>** | | [optional]
6
+ **success** | **BOOLEAN** | True if partial address validation was successufl, false otherwise | [optional]
7
+ **servers** | **Array<String>** | Email servers for this email address | [optional]
8
8
 
9
9
 
@@ -4,5 +4,8 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **valid_address** | **BOOLEAN** | True if the email address is syntactically valid, false if it is not | [optional]
7
+ **domain** | **String** | Domain name of the email address | [optional]
8
+ **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]
9
+ **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]
7
10
 
8
11
 
data/docs/DomainApi.md CHANGED
@@ -6,6 +6,8 @@ Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**domain_check**](DomainApi.md#domain_check) | **POST** /validate/domain/check | Validate a domain name
8
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
9
11
 
10
12
 
11
13
  # **domain_check**
@@ -57,7 +59,7 @@ Name | Type | Description | Notes
57
59
 
58
60
  ### HTTP request headers
59
61
 
60
- - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
62
+ - **Content-Type**: text/javascript, application/json, text/json
61
63
  - **Accept**: application/json, text/json, application/xml, text/xml
62
64
 
63
65
 
@@ -111,7 +113,115 @@ Name | Type | Description | Notes
111
113
 
112
114
  ### HTTP request headers
113
115
 
114
- - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
116
+ - **Content-Type**: text/javascript, application/json, text/json
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 | Input URL request
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)| Input URL request |
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
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 | Input URL information
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)| Input URL information |
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
115
225
  - **Accept**: application/json, text/json, application/xml, text/xml
116
226
 
117
227
 
data/docs/EmailApi.md CHANGED
@@ -58,7 +58,7 @@ Name | Type | Description | Notes
58
58
 
59
59
  ### HTTP request headers
60
60
 
61
- - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
61
+ - **Content-Type**: text/javascript, application/json, text/json
62
62
  - **Accept**: application/json, text/json, application/xml, text/xml
63
63
 
64
64
 
@@ -112,7 +112,7 @@ Name | Type | Description | Notes
112
112
 
113
113
  ### HTTP request headers
114
114
 
115
- - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
115
+ - **Content-Type**: text/javascript, application/json, text/json
116
116
  - **Accept**: application/json, text/json, application/xml, text/xml
117
117
 
118
118
 
@@ -166,7 +166,7 @@ Name | Type | Description | Notes
166
166
 
167
167
  ### HTTP request headers
168
168
 
169
- - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
169
+ - **Content-Type**: text/javascript, application/json, text/json
170
170
  - **Accept**: application/json, text/json, application/xml, text/xml
171
171
 
172
172
 
data/docs/IPAddressApi.md CHANGED
@@ -56,7 +56,7 @@ Name | Type | Description | Notes
56
56
 
57
57
  ### HTTP request headers
58
58
 
59
- - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
59
+ - **Content-Type**: text/javascript, application/json, text/json
60
60
  - **Accept**: application/json, text/json, application/xml, text/xml
61
61
 
62
62
 
@@ -0,0 +1,61 @@
1
+ # CloudmersiveValidateApiClient::LeadEnrichmentApi
2
+
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**lead_enrichment_enrich_lead**](LeadEnrichmentApi.md#lead_enrichment_enrich_lead) | **POST** /validate/lead-enrichment/lead/enrich | Enrich an input lead with additional fields of data
8
+
9
+
10
+ # **lead_enrichment_enrich_lead**
11
+ > LeadEnrichmentResponse lead_enrichment_enrich_lead(request)
12
+
13
+ Enrich an input lead with additional fields of data
14
+
15
+ ### Example
16
+ ```ruby
17
+ # load the gem
18
+ require 'cloudmersive-validate-api-client'
19
+ # setup authorization
20
+ CloudmersiveValidateApiClient.configure do |config|
21
+ # Configure API key authorization: Apikey
22
+ config.api_key['Apikey'] = 'YOUR API KEY'
23
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
24
+ #config.api_key_prefix['Apikey'] = 'Bearer'
25
+ end
26
+
27
+ api_instance = CloudmersiveValidateApiClient::LeadEnrichmentApi.new
28
+
29
+ request = CloudmersiveValidateApiClient::LeadEnrichmentRequest.new # LeadEnrichmentRequest | Input lead with known fields set, and unknown fields left blank (null)
30
+
31
+
32
+ begin
33
+ #Enrich an input lead with additional fields of data
34
+ result = api_instance.lead_enrichment_enrich_lead(request)
35
+ p result
36
+ rescue CloudmersiveValidateApiClient::ApiError => e
37
+ puts "Exception when calling LeadEnrichmentApi->lead_enrichment_enrich_lead: #{e}"
38
+ end
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ Name | Type | Description | Notes
44
+ ------------- | ------------- | ------------- | -------------
45
+ **request** | [**LeadEnrichmentRequest**](LeadEnrichmentRequest.md)| Input lead with known fields set, and unknown fields left blank (null) |
46
+
47
+ ### Return type
48
+
49
+ [**LeadEnrichmentResponse**](LeadEnrichmentResponse.md)
50
+
51
+ ### Authorization
52
+
53
+ [Apikey](../README.md#Apikey)
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: application/json, text/json
58
+ - **Accept**: application/json, text/json, application/xml, text/xml
59
+
60
+
61
+