cloudmersive-validate-api-client 1.3.6 → 1.3.7
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/README.md +7 -4
- data/cloudmersive-validate-api-client.gemspec +1 -1
- data/docs/AddressGetServersResponse.md +2 -2
- data/docs/NameApi.md +55 -0
- data/docs/ValidateIdentifierRequest.md +15 -0
- data/docs/ValidateIdentifierResponse.md +9 -0
- data/docs/ValidateUrlRequestFull.md +1 -1
- data/docs/ValidateUrlRequestSyntaxOnly.md +1 -1
- data/docs/VatLookupRequest.md +1 -1
- data/docs/VatLookupResponse.md +5 -5
- data/lib/cloudmersive-validate-api-client.rb +3 -1
- data/lib/cloudmersive-validate-api-client/api/address_api.rb +1 -1
- data/lib/cloudmersive-validate-api-client/api/domain_api.rb +1 -1
- data/lib/cloudmersive-validate-api-client/api/email_api.rb +1 -1
- data/lib/cloudmersive-validate-api-client/api/ip_address_api.rb +1 -1
- data/lib/cloudmersive-validate-api-client/api/name_api.rb +56 -1
- data/lib/cloudmersive-validate-api-client/api/phone_number_api.rb +1 -1
- data/lib/cloudmersive-validate-api-client/api/user_agent_api.rb +1 -1
- data/lib/cloudmersive-validate-api-client/api/vat_api.rb +1 -1
- data/lib/cloudmersive-validate-api-client/api_client.rb +1 -1
- data/lib/cloudmersive-validate-api-client/api_error.rb +1 -1
- data/lib/cloudmersive-validate-api-client/configuration.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/address_get_servers_response.rb +3 -1
- data/lib/cloudmersive-validate-api-client/models/address_verify_syntax_only_response.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/check_response.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/first_name_validation_request.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/first_name_validation_response.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/full_email_validation_response.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/full_name_validation_request.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/full_name_validation_response.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/geolocate_response.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/get_gender_request.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/get_gender_response.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/last_name_validation_request.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/last_name_validation_response.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/parse_address_request.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/parse_address_response.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/phone_number_validate_request.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/phone_number_validation_response.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/user_agent_validate_request.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/user_agent_validate_response.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/validate_identifier_request.rb +259 -0
- data/lib/cloudmersive-validate-api-client/models/validate_identifier_response.rb +199 -0
- data/lib/cloudmersive-validate-api-client/models/validate_url_request_full.rb +2 -1
- data/lib/cloudmersive-validate-api-client/models/validate_url_request_syntax_only.rb +2 -1
- data/lib/cloudmersive-validate-api-client/models/validate_url_response_full.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/validate_url_response_syntax_only.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/vat_lookup_request.rb +2 -1
- data/lib/cloudmersive-validate-api-client/models/vat_lookup_response.rb +6 -1
- data/lib/cloudmersive-validate-api-client/models/whois_response.rb +1 -1
- data/lib/cloudmersive-validate-api-client/version.rb +2 -2
- data/spec/api/address_api_spec.rb +1 -1
- data/spec/api/domain_api_spec.rb +1 -1
- data/spec/api/email_api_spec.rb +1 -1
- data/spec/api/ip_address_api_spec.rb +1 -1
- data/spec/api/name_api_spec.rb +13 -1
- data/spec/api/phone_number_api_spec.rb +1 -1
- data/spec/api/user_agent_api_spec.rb +1 -1
- data/spec/api/vat_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/address_get_servers_response_spec.rb +1 -1
- data/spec/models/address_verify_syntax_only_response_spec.rb +1 -1
- data/spec/models/check_response_spec.rb +1 -1
- data/spec/models/first_name_validation_request_spec.rb +1 -1
- data/spec/models/first_name_validation_response_spec.rb +1 -1
- data/spec/models/full_email_validation_response_spec.rb +1 -1
- data/spec/models/full_name_validation_request_spec.rb +1 -1
- data/spec/models/full_name_validation_response_spec.rb +1 -1
- data/spec/models/geolocate_response_spec.rb +1 -1
- data/spec/models/get_gender_request_spec.rb +1 -1
- data/spec/models/get_gender_response_spec.rb +1 -1
- data/spec/models/last_name_validation_request_spec.rb +1 -1
- data/spec/models/last_name_validation_response_spec.rb +1 -1
- data/spec/models/parse_address_request_spec.rb +1 -1
- data/spec/models/parse_address_response_spec.rb +1 -1
- data/spec/models/phone_number_validate_request_spec.rb +1 -1
- data/spec/models/phone_number_validation_response_spec.rb +1 -1
- data/spec/models/user_agent_validate_request_spec.rb +1 -1
- data/spec/models/user_agent_validate_response_spec.rb +1 -1
- data/spec/models/validate_identifier_request_spec.rb +84 -0
- data/spec/models/validate_identifier_response_spec.rb +48 -0
- data/spec/models/validate_url_request_full_spec.rb +1 -1
- data/spec/models/validate_url_request_syntax_only_spec.rb +1 -1
- data/spec/models/validate_url_response_full_spec.rb +1 -1
- data/spec/models/validate_url_response_syntax_only_spec.rb +1 -1
- data/spec/models/vat_lookup_request_spec.rb +1 -1
- data/spec/models/vat_lookup_response_spec.rb +1 -1
- data/spec/models/whois_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +21 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6f26be0b3362767667fe698407688872c59b0a2463bfae60d206edecbb785ac
|
|
4
|
+
data.tar.gz: 6330ac5d1ab93155b4ddc3c5408034a2b2df0d0aa5ac390bb93f0b0683258be7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e1f9c00dce06668b21f3dd359b660f8bb08121d04390dd11cededef5b91935cda7ba9f911244e4c10f2f6560789bb54ea6ece008792a95ea6bb58c4999faf21
|
|
7
|
+
data.tar.gz: c1c9daac46befe30649f2a04ea95e0720b07b75d27ab4e5142b15999cc12b284e87af465de39edf055572f4e23ecb9d1c4172bfda0f48d01c91a726d2a9270b6
|
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.
|
|
10
|
+
- Package version: 1.3.7
|
|
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.
|
|
26
|
+
gem install ./cloudmersive-validate-api-client-1.3.7.gem
|
|
27
27
|
```
|
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-validate-api-client-1.3.
|
|
28
|
+
(for development, run `gem install --dev ./cloudmersive-validate-api-client-1.3.7.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.
|
|
34
|
+
gem 'cloudmersive-validate-api-client', '~> 1.3.7'
|
|
35
35
|
|
|
36
36
|
### Install from Git
|
|
37
37
|
|
|
@@ -93,6 +93,7 @@ Class | Method | HTTP request | Description
|
|
|
93
93
|
*CloudmersiveValidateApiClient::EmailApi* | [**email_post**](docs/EmailApi.md#email_post) | **POST** /validate/email/address/syntaxOnly | Validate email adddress for syntactic correctness only
|
|
94
94
|
*CloudmersiveValidateApiClient::IPAddressApi* | [**i_p_address_post**](docs/IPAddressApi.md#i_p_address_post) | **POST** /validate/ip/geolocate | Geolocate an IP address
|
|
95
95
|
*CloudmersiveValidateApiClient::NameApi* | [**name_get_gender**](docs/NameApi.md#name_get_gender) | **POST** /validate/name/get-gender | Get the gender of a first name
|
|
96
|
+
*CloudmersiveValidateApiClient::NameApi* | [**name_identifier**](docs/NameApi.md#name_identifier) | **POST** /validate/name/identifier | Validate a code identifier
|
|
96
97
|
*CloudmersiveValidateApiClient::NameApi* | [**name_validate_first_name**](docs/NameApi.md#name_validate_first_name) | **POST** /validate/name/first | Validate a first name
|
|
97
98
|
*CloudmersiveValidateApiClient::NameApi* | [**name_validate_full_name**](docs/NameApi.md#name_validate_full_name) | **POST** /validate/name/full-name | Parse and validate a full name
|
|
98
99
|
*CloudmersiveValidateApiClient::NameApi* | [**name_validate_last_name**](docs/NameApi.md#name_validate_last_name) | **POST** /validate/name/last | Validate a last name
|
|
@@ -122,6 +123,8 @@ Class | Method | HTTP request | Description
|
|
|
122
123
|
- [CloudmersiveValidateApiClient::PhoneNumberValidationResponse](docs/PhoneNumberValidationResponse.md)
|
|
123
124
|
- [CloudmersiveValidateApiClient::UserAgentValidateRequest](docs/UserAgentValidateRequest.md)
|
|
124
125
|
- [CloudmersiveValidateApiClient::UserAgentValidateResponse](docs/UserAgentValidateResponse.md)
|
|
126
|
+
- [CloudmersiveValidateApiClient::ValidateIdentifierRequest](docs/ValidateIdentifierRequest.md)
|
|
127
|
+
- [CloudmersiveValidateApiClient::ValidateIdentifierResponse](docs/ValidateIdentifierResponse.md)
|
|
125
128
|
- [CloudmersiveValidateApiClient::ValidateUrlRequestFull](docs/ValidateUrlRequestFull.md)
|
|
126
129
|
- [CloudmersiveValidateApiClient::ValidateUrlRequestSyntaxOnly](docs/ValidateUrlRequestSyntaxOnly.md)
|
|
127
130
|
- [CloudmersiveValidateApiClient::ValidateUrlResponseFull](docs/ValidateUrlResponseFull.md)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**success** | **BOOLEAN** |
|
|
7
|
-
**servers** | **Array<String>** |
|
|
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
|
|
data/docs/NameApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.cloudmersive.com*
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
7
|
[**name_get_gender**](NameApi.md#name_get_gender) | **POST** /validate/name/get-gender | Get the gender of a first name
|
|
8
|
+
[**name_identifier**](NameApi.md#name_identifier) | **POST** /validate/name/identifier | Validate a code identifier
|
|
8
9
|
[**name_validate_first_name**](NameApi.md#name_validate_first_name) | **POST** /validate/name/first | Validate a first name
|
|
9
10
|
[**name_validate_full_name**](NameApi.md#name_validate_full_name) | **POST** /validate/name/full-name | Parse and validate a full name
|
|
10
11
|
[**name_validate_last_name**](NameApi.md#name_validate_last_name) | **POST** /validate/name/last | Validate a last name
|
|
@@ -64,6 +65,60 @@ Name | Type | Description | Notes
|
|
|
64
65
|
|
|
65
66
|
|
|
66
67
|
|
|
68
|
+
# **name_identifier**
|
|
69
|
+
> ValidateIdentifierResponse name_identifier(input)
|
|
70
|
+
|
|
71
|
+
Validate a code identifier
|
|
72
|
+
|
|
73
|
+
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\".
|
|
74
|
+
|
|
75
|
+
### Example
|
|
76
|
+
```ruby
|
|
77
|
+
# load the gem
|
|
78
|
+
require 'cloudmersive-validate-api-client'
|
|
79
|
+
# setup authorization
|
|
80
|
+
CloudmersiveValidateApiClient.configure do |config|
|
|
81
|
+
# Configure API key authorization: Apikey
|
|
82
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
|
83
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
84
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
api_instance = CloudmersiveValidateApiClient::NameApi.new
|
|
88
|
+
|
|
89
|
+
input = CloudmersiveValidateApiClient::ValidateIdentifierRequest.new # ValidateIdentifierRequest | Identifier validation request information
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
begin
|
|
93
|
+
#Validate a code identifier
|
|
94
|
+
result = api_instance.name_identifier(input)
|
|
95
|
+
p result
|
|
96
|
+
rescue CloudmersiveValidateApiClient::ApiError => e
|
|
97
|
+
puts "Exception when calling NameApi->name_identifier: #{e}"
|
|
98
|
+
end
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Parameters
|
|
102
|
+
|
|
103
|
+
Name | Type | Description | Notes
|
|
104
|
+
------------- | ------------- | ------------- | -------------
|
|
105
|
+
**input** | [**ValidateIdentifierRequest**](ValidateIdentifierRequest.md)| Identifier validation request information |
|
|
106
|
+
|
|
107
|
+
### Return type
|
|
108
|
+
|
|
109
|
+
[**ValidateIdentifierResponse**](ValidateIdentifierResponse.md)
|
|
110
|
+
|
|
111
|
+
### Authorization
|
|
112
|
+
|
|
113
|
+
[Apikey](../README.md#Apikey)
|
|
114
|
+
|
|
115
|
+
### HTTP request headers
|
|
116
|
+
|
|
117
|
+
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
|
118
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
67
122
|
# **name_validate_first_name**
|
|
68
123
|
> FirstNameValidationResponse name_validate_first_name(input)
|
|
69
124
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# CloudmersiveValidateApiClient::ValidateIdentifierRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**input** | **String** | Text string identifier input | [optional]
|
|
7
|
+
**allow_whitespace** | **BOOLEAN** | True if whitespace is allowed in the identifier, false otherwise | [optional]
|
|
8
|
+
**allow_hyphens** | **BOOLEAN** | True if hyphens are allowd in the identifier, false otherwise | [optional]
|
|
9
|
+
**allow_underscore** | **BOOLEAN** | True if underscores are allowed in the identifier, false otherwise | [optional]
|
|
10
|
+
**allow_numbers** | **BOOLEAN** | True if numbers are allowed in the identifier, false otherwise | [optional]
|
|
11
|
+
**allow_periods** | **BOOLEAN** | True if periods are allowed in the identifier, false otherwise | [optional]
|
|
12
|
+
**max_length** | **Integer** | Optional; maximum length, if any, of the identifier | [optional]
|
|
13
|
+
**min_length** | **Integer** | Optional; minimum length, if any, of the identifier | [optional]
|
|
14
|
+
|
|
15
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# CloudmersiveValidateApiClient::ValidateIdentifierResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**valid_identifier** | **BOOLEAN** | True if the input identifier is valid, false otherwise | [optional]
|
|
7
|
+
**error** | **String** | Resulting error from the identifier validation; possible errors are: \"InputIsEmpty\", \"ContainsWhitespace\", \"ContainsNumbers\", \"ContainsHyphen\", \"ContainsUnderscore\", \"ContainsPeriod\", \"TooShort\", \"TooLong\", \"ContainsSpecialCharacters\" | [optional]
|
|
8
|
+
|
|
9
|
+
|
data/docs/VatLookupRequest.md
CHANGED
data/docs/VatLookupResponse.md
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**country_code** | **String** |
|
|
7
|
-
**vat_number** | **String** |
|
|
8
|
-
**is_valid** | **BOOLEAN** |
|
|
9
|
-
**business_name** | **String** |
|
|
10
|
-
**business_address** | **String** |
|
|
6
|
+
**country_code** | **String** | Two-letter country code | [optional]
|
|
7
|
+
**vat_number** | **String** | VAT number | [optional]
|
|
8
|
+
**is_valid** | **BOOLEAN** | True if the VAT code is valid, false otherwise | [optional]
|
|
9
|
+
**business_name** | **String** | Name of the business | [optional]
|
|
10
|
+
**business_address** | **String** | Business address | [optional]
|
|
11
11
|
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version:
|
|
9
|
+
Swagger Codegen version: 2.3.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -36,6 +36,8 @@ require 'cloudmersive-validate-api-client/models/phone_number_validate_request'
|
|
|
36
36
|
require 'cloudmersive-validate-api-client/models/phone_number_validation_response'
|
|
37
37
|
require 'cloudmersive-validate-api-client/models/user_agent_validate_request'
|
|
38
38
|
require 'cloudmersive-validate-api-client/models/user_agent_validate_response'
|
|
39
|
+
require 'cloudmersive-validate-api-client/models/validate_identifier_request'
|
|
40
|
+
require 'cloudmersive-validate-api-client/models/validate_identifier_response'
|
|
39
41
|
require 'cloudmersive-validate-api-client/models/validate_url_request_full'
|
|
40
42
|
require 'cloudmersive-validate-api-client/models/validate_url_request_syntax_only'
|
|
41
43
|
require 'cloudmersive-validate-api-client/models/validate_url_response_full'
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version:
|
|
9
|
+
Swagger Codegen version: 2.3.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -75,6 +75,61 @@ module CloudmersiveValidateApiClient
|
|
|
75
75
|
return data, status_code, headers
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
+
# Validate a code identifier
|
|
79
|
+
# 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
|
+
# @param input Identifier validation request information
|
|
81
|
+
# @param [Hash] opts the optional parameters
|
|
82
|
+
# @return [ValidateIdentifierResponse]
|
|
83
|
+
def name_identifier(input, opts = {})
|
|
84
|
+
data, _status_code, _headers = name_identifier_with_http_info(input, opts)
|
|
85
|
+
return data
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Validate a code identifier
|
|
89
|
+
# 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\".
|
|
90
|
+
# @param input Identifier validation request information
|
|
91
|
+
# @param [Hash] opts the optional parameters
|
|
92
|
+
# @return [Array<(ValidateIdentifierResponse, Fixnum, Hash)>] ValidateIdentifierResponse data, response status code and response headers
|
|
93
|
+
def name_identifier_with_http_info(input, opts = {})
|
|
94
|
+
if @api_client.config.debugging
|
|
95
|
+
@api_client.config.logger.debug "Calling API: NameApi.name_identifier ..."
|
|
96
|
+
end
|
|
97
|
+
# verify the required parameter 'input' is set
|
|
98
|
+
if @api_client.config.client_side_validation && input.nil?
|
|
99
|
+
fail ArgumentError, "Missing the required parameter 'input' when calling NameApi.name_identifier"
|
|
100
|
+
end
|
|
101
|
+
# resource path
|
|
102
|
+
local_var_path = "/validate/name/identifier"
|
|
103
|
+
|
|
104
|
+
# query parameters
|
|
105
|
+
query_params = {}
|
|
106
|
+
|
|
107
|
+
# header parameters
|
|
108
|
+
header_params = {}
|
|
109
|
+
# HTTP header 'Accept' (if needed)
|
|
110
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
|
111
|
+
# HTTP header 'Content-Type'
|
|
112
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
|
113
|
+
|
|
114
|
+
# form parameters
|
|
115
|
+
form_params = {}
|
|
116
|
+
|
|
117
|
+
# http body (model)
|
|
118
|
+
post_body = @api_client.object_to_http_body(input)
|
|
119
|
+
auth_names = ['Apikey']
|
|
120
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
121
|
+
:header_params => header_params,
|
|
122
|
+
:query_params => query_params,
|
|
123
|
+
:form_params => form_params,
|
|
124
|
+
:body => post_body,
|
|
125
|
+
:auth_names => auth_names,
|
|
126
|
+
:return_type => 'ValidateIdentifierResponse')
|
|
127
|
+
if @api_client.config.debugging
|
|
128
|
+
@api_client.config.logger.debug "API called: NameApi#name_identifier\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
129
|
+
end
|
|
130
|
+
return data, status_code, headers
|
|
131
|
+
end
|
|
132
|
+
|
|
78
133
|
# Validate a first name
|
|
79
134
|
# Determines if a string is a valid first name (given name)
|
|
80
135
|
# @param input Validation request information
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version:
|
|
9
|
+
Swagger Codegen version: 2.3.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -15,8 +15,10 @@ require 'date'
|
|
|
15
15
|
module CloudmersiveValidateApiClient
|
|
16
16
|
# Result of a partial email address validation
|
|
17
17
|
class AddressGetServersResponse
|
|
18
|
+
# True if partial address validation was successufl, false otherwise
|
|
18
19
|
attr_accessor :success
|
|
19
20
|
|
|
21
|
+
# Email servers for this email address
|
|
20
22
|
attr_accessor :servers
|
|
21
23
|
|
|
22
24
|
|