cloudmersive-validate-api-client 1.3.7 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -8
- data/docs/AddressApi.md +56 -1
- data/docs/AddressVerifySyntaxOnlyResponse.md +3 -0
- data/docs/DomainApi.md +8 -8
- data/docs/EmailApi.md +3 -3
- data/docs/IPAddressApi.md +1 -1
- data/docs/LeadEnrichmentApi.md +61 -0
- data/docs/LeadEnrichmentRequest.md +21 -0
- data/docs/LeadEnrichmentResponse.md +25 -0
- data/docs/NameApi.md +5 -5
- data/docs/ParseAddressResponse.md +2 -1
- data/docs/PhoneNumberApi.md +1 -1
- data/docs/UserAgentApi.md +1 -1
- data/docs/ValidateCountryRequest.md +8 -0
- data/docs/ValidateCountryResponse.md +12 -0
- data/docs/VatApi.md +1 -1
- data/docs/VatLookupResponse.md +8 -1
- data/docs/WhoisResponse.md +11 -0
- data/lib/cloudmersive-validate-api-client.rb +5 -0
- data/lib/cloudmersive-validate-api-client/api/address_api.rb +56 -1
- data/lib/cloudmersive-validate-api-client/api/domain_api.rb +8 -8
- data/lib/cloudmersive-validate-api-client/api/email_api.rb +3 -3
- data/lib/cloudmersive-validate-api-client/api/ip_address_api.rb +1 -1
- data/lib/cloudmersive-validate-api-client/api/lead_enrichment_api.rb +78 -0
- data/lib/cloudmersive-validate-api-client/api/name_api.rb +5 -5
- 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/models/address_verify_syntax_only_response.rb +34 -4
- data/lib/cloudmersive-validate-api-client/models/lead_enrichment_request.rb +319 -0
- data/lib/cloudmersive-validate-api-client/models/lead_enrichment_response.rb +359 -0
- data/lib/cloudmersive-validate-api-client/models/parse_address_response.rb +17 -7
- data/lib/cloudmersive-validate-api-client/models/validate_country_request.rb +189 -0
- data/lib/cloudmersive-validate-api-client/models/validate_country_response.rb +229 -0
- data/lib/cloudmersive-validate-api-client/models/vat_lookup_response.rb +75 -5
- data/lib/cloudmersive-validate-api-client/models/whois_response.rb +111 -1
- data/lib/cloudmersive-validate-api-client/version.rb +1 -1
- data/spec/api/address_api_spec.rb +12 -0
- data/spec/api/domain_api_spec.rb +2 -2
- data/spec/api/lead_enrichment_api_spec.rb +47 -0
- data/spec/models/address_verify_syntax_only_response_spec.rb +18 -0
- data/spec/models/lead_enrichment_request_spec.rb +120 -0
- data/spec/models/lead_enrichment_response_spec.rb +144 -0
- data/spec/models/parse_address_response_spec.rb +7 -1
- data/spec/models/validate_country_request_spec.rb +42 -0
- data/spec/models/validate_country_response_spec.rb +66 -0
- data/spec/models/vat_lookup_response_spec.rb +42 -0
- data/spec/models/whois_response_spec.rb +66 -0
- metadata +17 -2
data/docs/PhoneNumberApi.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
|
59
|
+
- **Content-Type**: application/json, text/json
|
60
60
|
- **Accept**: application/json, text/json, application/xml, text/xml
|
61
61
|
|
62
62
|
|
data/docs/UserAgentApi.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
|
59
|
+
- **Content-Type**: application/json, text/json
|
60
60
|
- **Accept**: application/json, text/json, application/xml, text/xml
|
61
61
|
|
62
62
|
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# CloudmersiveValidateApiClient::ValidateCountryRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**raw_country_input** | **String** | Raw country input - can be a two-letter code (FIPS 10-4 or ISO 3166-1), three-letter code (ISO 3166-1) or country name | [optional]
|
7
|
+
|
8
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# CloudmersiveValidateApiClient::ValidateCountryResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
|
7
|
+
**country_full_name** | **String** | Full name of the country | [optional]
|
8
|
+
**iso_two_letter_code** | **String** | Two-letter ISO 3166-1 country code | [optional]
|
9
|
+
**fips_two_letter_code** | **String** | Two-letter FIPS 10-4 country code | [optional]
|
10
|
+
**three_letter_code** | **String** | Three-letter ISO 3166-1 country code | [optional]
|
11
|
+
|
12
|
+
|
data/docs/VatApi.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
|
59
|
+
- **Content-Type**: application/json, text/json
|
60
60
|
- **Accept**: application/json, text/json, application/xml, text/xml
|
61
61
|
|
62
62
|
|
data/docs/VatLookupResponse.md
CHANGED
@@ -7,6 +7,13 @@ Name | Type | Description | Notes
|
|
7
7
|
**vat_number** | **String** | VAT number | [optional]
|
8
8
|
**is_valid** | **BOOLEAN** | True if the VAT code is valid, false otherwise | [optional]
|
9
9
|
**business_name** | **String** | Name of the business | [optional]
|
10
|
-
**business_address** | **String** | Business address | [optional]
|
10
|
+
**business_address** | **String** | Business address as a single string | [optional]
|
11
|
+
**business_building** | **String** | For the business address, the name of the building, house or structure if applicable, such as \"Cloudmersive Building 2\". This will often by null. | [optional]
|
12
|
+
**business_street_number** | **String** | For the business address, the street number or house number of the address. For example, in the address \"1600 Pennsylvania Avenue NW\" the street number would be \"1600\". This value will typically be populated for most addresses. | [optional]
|
13
|
+
**business_street** | **String** | For the business address, the name of the street or road of the address. For example, in the address \"1600 Pennsylvania Avenue NW\" the street number would be \"Pennsylvania Avenue NW\". | [optional]
|
14
|
+
**business_city** | **String** | For the business address, the city of the address. | [optional]
|
15
|
+
**business_state_or_province** | **String** | For the business address, the state or province of the address. | [optional]
|
16
|
+
**business_postal_code** | **String** | For the business address, the postal code or zip code of the address. | [optional]
|
17
|
+
**business_country** | **String** | For the business address, country of the address, if present in the address. If not included in the address it will be null. | [optional]
|
11
18
|
|
12
19
|
|
data/docs/WhoisResponse.md
CHANGED
@@ -4,6 +4,17 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**valid_domain** | **BOOLEAN** | True if the domain is valid, false if it is not | [optional]
|
7
|
+
**registrant_name** | **String** | Name of the domain registrant | [optional]
|
8
|
+
**registrant_organization** | **String** | Organization name of the domain registrant | [optional]
|
9
|
+
**registrant_email** | **String** | Email address of the domain registrant | [optional]
|
10
|
+
**registrant_street_number** | **String** | Street number of the address of the domain registrant, if available | [optional]
|
11
|
+
**registrant_street** | **String** | Street name of the address of the domain registrant, if available | [optional]
|
12
|
+
**registrant_city** | **String** | City of the domain registrant, if available | [optional]
|
13
|
+
**registrant_state_or_province** | **String** | State or Province of the address of the domain registrant, if available | [optional]
|
14
|
+
**registrant_postal_code** | **String** | Postal code of the address of the domain registrant, if available | [optional]
|
15
|
+
**registrant_country** | **String** | Country of the address of the domain registrant, if available | [optional]
|
16
|
+
**registrant_raw_address** | **String** | Raw address string of the domain registrant, if available | [optional]
|
17
|
+
**registrant_telephone** | **String** | Telephone number of the address of the domain registrant | [optional]
|
7
18
|
**whois_server** | **String** | Server used to lookup WHOIS information (may change based on lookup). | [optional]
|
8
19
|
**raw_text_record** | **String** | WHOIS raw text record | [optional]
|
9
20
|
**created_dt** | **DateTime** | Creation date for the record | [optional]
|
@@ -30,12 +30,16 @@ require 'cloudmersive-validate-api-client/models/get_gender_request'
|
|
30
30
|
require 'cloudmersive-validate-api-client/models/get_gender_response'
|
31
31
|
require 'cloudmersive-validate-api-client/models/last_name_validation_request'
|
32
32
|
require 'cloudmersive-validate-api-client/models/last_name_validation_response'
|
33
|
+
require 'cloudmersive-validate-api-client/models/lead_enrichment_request'
|
34
|
+
require 'cloudmersive-validate-api-client/models/lead_enrichment_response'
|
33
35
|
require 'cloudmersive-validate-api-client/models/parse_address_request'
|
34
36
|
require 'cloudmersive-validate-api-client/models/parse_address_response'
|
35
37
|
require 'cloudmersive-validate-api-client/models/phone_number_validate_request'
|
36
38
|
require 'cloudmersive-validate-api-client/models/phone_number_validation_response'
|
37
39
|
require 'cloudmersive-validate-api-client/models/user_agent_validate_request'
|
38
40
|
require 'cloudmersive-validate-api-client/models/user_agent_validate_response'
|
41
|
+
require 'cloudmersive-validate-api-client/models/validate_country_request'
|
42
|
+
require 'cloudmersive-validate-api-client/models/validate_country_response'
|
39
43
|
require 'cloudmersive-validate-api-client/models/validate_identifier_request'
|
40
44
|
require 'cloudmersive-validate-api-client/models/validate_identifier_response'
|
41
45
|
require 'cloudmersive-validate-api-client/models/validate_url_request_full'
|
@@ -51,6 +55,7 @@ require 'cloudmersive-validate-api-client/api/address_api'
|
|
51
55
|
require 'cloudmersive-validate-api-client/api/domain_api'
|
52
56
|
require 'cloudmersive-validate-api-client/api/email_api'
|
53
57
|
require 'cloudmersive-validate-api-client/api/ip_address_api'
|
58
|
+
require 'cloudmersive-validate-api-client/api/lead_enrichment_api'
|
54
59
|
require 'cloudmersive-validate-api-client/api/name_api'
|
55
60
|
require 'cloudmersive-validate-api-client/api/phone_number_api'
|
56
61
|
require 'cloudmersive-validate-api-client/api/user_agent_api'
|
@@ -20,6 +20,61 @@ module CloudmersiveValidateApiClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
|
23
|
+
# Validate and normalize country information, return ISO 3166-1 country codes and country name
|
24
|
+
# Validates and normalizes country information, and returns key information about a country.
|
25
|
+
# @param input Input request
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [ValidateCountryResponse]
|
28
|
+
def address_country(input, opts = {})
|
29
|
+
data, _status_code, _headers = address_country_with_http_info(input, opts)
|
30
|
+
return data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Validate and normalize country information, return ISO 3166-1 country codes and country name
|
34
|
+
# Validates and normalizes country information, and returns key information about a country.
|
35
|
+
# @param input Input request
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(ValidateCountryResponse, Fixnum, Hash)>] ValidateCountryResponse data, response status code and response headers
|
38
|
+
def address_country_with_http_info(input, opts = {})
|
39
|
+
if @api_client.config.debugging
|
40
|
+
@api_client.config.logger.debug "Calling API: AddressApi.address_country ..."
|
41
|
+
end
|
42
|
+
# verify the required parameter 'input' is set
|
43
|
+
if @api_client.config.client_side_validation && input.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'input' when calling AddressApi.address_country"
|
45
|
+
end
|
46
|
+
# resource path
|
47
|
+
local_var_path = "/validate/address/country"
|
48
|
+
|
49
|
+
# query parameters
|
50
|
+
query_params = {}
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = {}
|
54
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
56
|
+
# HTTP header 'Content-Type'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = @api_client.object_to_http_body(input)
|
64
|
+
auth_names = ['Apikey']
|
65
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
66
|
+
:header_params => header_params,
|
67
|
+
:query_params => query_params,
|
68
|
+
:form_params => form_params,
|
69
|
+
:body => post_body,
|
70
|
+
:auth_names => auth_names,
|
71
|
+
:return_type => 'ValidateCountryResponse')
|
72
|
+
if @api_client.config.debugging
|
73
|
+
@api_client.config.logger.debug "API called: AddressApi#address_country\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
74
|
+
end
|
75
|
+
return data, status_code, headers
|
76
|
+
end
|
77
|
+
|
23
78
|
# Parse an unstructured input text string into an international, formatted address
|
24
79
|
# 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.
|
25
80
|
# @param input Input parse request
|
@@ -54,7 +109,7 @@ module CloudmersiveValidateApiClient
|
|
54
109
|
# HTTP header 'Accept' (if needed)
|
55
110
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
56
111
|
# HTTP header 'Content-Type'
|
57
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'
|
112
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
|
58
113
|
|
59
114
|
# form parameters
|
60
115
|
form_params = {}
|
@@ -54,7 +54,7 @@ module CloudmersiveValidateApiClient
|
|
54
54
|
# HTTP header 'Accept' (if needed)
|
55
55
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
56
56
|
# HTTP header 'Content-Type'
|
57
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
|
58
58
|
|
59
59
|
# form parameters
|
60
60
|
form_params = {}
|
@@ -109,7 +109,7 @@ module CloudmersiveValidateApiClient
|
|
109
109
|
# HTTP header 'Accept' (if needed)
|
110
110
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
111
111
|
# HTTP header 'Content-Type'
|
112
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
112
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
|
113
113
|
|
114
114
|
# form parameters
|
115
115
|
form_params = {}
|
@@ -132,7 +132,7 @@ module CloudmersiveValidateApiClient
|
|
132
132
|
|
133
133
|
# Validate a URL fully
|
134
134
|
# Validate whether a URL is syntactically valid (does not check endpoint for validity), whether it exists, and whether the endpoint is up and passes virus scan checks. Accepts various types of input and produces a well-formed URL as output.
|
135
|
-
# @param request
|
135
|
+
# @param request Input URL request
|
136
136
|
# @param [Hash] opts the optional parameters
|
137
137
|
# @return [ValidateUrlResponseFull]
|
138
138
|
def domain_url_full(request, opts = {})
|
@@ -142,7 +142,7 @@ module CloudmersiveValidateApiClient
|
|
142
142
|
|
143
143
|
# Validate a URL fully
|
144
144
|
# 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.
|
145
|
-
# @param request
|
145
|
+
# @param request Input URL request
|
146
146
|
# @param [Hash] opts the optional parameters
|
147
147
|
# @return [Array<(ValidateUrlResponseFull, Fixnum, Hash)>] ValidateUrlResponseFull data, response status code and response headers
|
148
148
|
def domain_url_full_with_http_info(request, opts = {})
|
@@ -164,7 +164,7 @@ module CloudmersiveValidateApiClient
|
|
164
164
|
# HTTP header 'Accept' (if needed)
|
165
165
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
166
166
|
# HTTP header 'Content-Type'
|
167
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'
|
167
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
|
168
168
|
|
169
169
|
# form parameters
|
170
170
|
form_params = {}
|
@@ -187,7 +187,7 @@ module CloudmersiveValidateApiClient
|
|
187
187
|
|
188
188
|
# Validate a URL syntactically
|
189
189
|
# Validate whether a URL is syntactically valid (does not check endpoint for validity). Accepts various types of input and produces a well-formed URL as output.
|
190
|
-
# @param request
|
190
|
+
# @param request Input URL information
|
191
191
|
# @param [Hash] opts the optional parameters
|
192
192
|
# @return [ValidateUrlResponseSyntaxOnly]
|
193
193
|
def domain_url_syntax_only(request, opts = {})
|
@@ -197,7 +197,7 @@ module CloudmersiveValidateApiClient
|
|
197
197
|
|
198
198
|
# Validate a URL syntactically
|
199
199
|
# 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.
|
200
|
-
# @param request
|
200
|
+
# @param request Input URL information
|
201
201
|
# @param [Hash] opts the optional parameters
|
202
202
|
# @return [Array<(ValidateUrlResponseSyntaxOnly, Fixnum, Hash)>] ValidateUrlResponseSyntaxOnly data, response status code and response headers
|
203
203
|
def domain_url_syntax_only_with_http_info(request, opts = {})
|
@@ -219,7 +219,7 @@ module CloudmersiveValidateApiClient
|
|
219
219
|
# HTTP header 'Accept' (if needed)
|
220
220
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
221
221
|
# HTTP header 'Content-Type'
|
222
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'
|
222
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
|
223
223
|
|
224
224
|
# form parameters
|
225
225
|
form_params = {}
|
@@ -54,7 +54,7 @@ module CloudmersiveValidateApiClient
|
|
54
54
|
# HTTP header 'Accept' (if needed)
|
55
55
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
56
56
|
# HTTP header 'Content-Type'
|
57
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
|
58
58
|
|
59
59
|
# form parameters
|
60
60
|
form_params = {}
|
@@ -109,7 +109,7 @@ module CloudmersiveValidateApiClient
|
|
109
109
|
# HTTP header 'Accept' (if needed)
|
110
110
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
111
111
|
# HTTP header 'Content-Type'
|
112
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
112
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
|
113
113
|
|
114
114
|
# form parameters
|
115
115
|
form_params = {}
|
@@ -164,7 +164,7 @@ module CloudmersiveValidateApiClient
|
|
164
164
|
# HTTP header 'Accept' (if needed)
|
165
165
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
166
166
|
# HTTP header 'Content-Type'
|
167
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
167
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
|
168
168
|
|
169
169
|
# form parameters
|
170
170
|
form_params = {}
|
@@ -54,7 +54,7 @@ module CloudmersiveValidateApiClient
|
|
54
54
|
# HTTP header 'Accept' (if needed)
|
55
55
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
56
56
|
# HTTP header 'Content-Type'
|
57
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
|
58
58
|
|
59
59
|
# form parameters
|
60
60
|
form_params = {}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
=begin
|
2
|
+
#validateapi
|
3
|
+
|
4
|
+
#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.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require "uri"
|
14
|
+
|
15
|
+
module CloudmersiveValidateApiClient
|
16
|
+
class LeadEnrichmentApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Enrich an input lead with additional fields of data
|
24
|
+
#
|
25
|
+
# @param request Input lead with known fields set, and unknown fields left blank (null)
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [LeadEnrichmentResponse]
|
28
|
+
def lead_enrichment_enrich_lead(request, opts = {})
|
29
|
+
data, _status_code, _headers = lead_enrichment_enrich_lead_with_http_info(request, opts)
|
30
|
+
return data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Enrich an input lead with additional fields of data
|
34
|
+
#
|
35
|
+
# @param request Input lead with known fields set, and unknown fields left blank (null)
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(LeadEnrichmentResponse, Fixnum, Hash)>] LeadEnrichmentResponse data, response status code and response headers
|
38
|
+
def lead_enrichment_enrich_lead_with_http_info(request, opts = {})
|
39
|
+
if @api_client.config.debugging
|
40
|
+
@api_client.config.logger.debug "Calling API: LeadEnrichmentApi.lead_enrichment_enrich_lead ..."
|
41
|
+
end
|
42
|
+
# verify the required parameter 'request' is set
|
43
|
+
if @api_client.config.client_side_validation && request.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling LeadEnrichmentApi.lead_enrichment_enrich_lead"
|
45
|
+
end
|
46
|
+
# resource path
|
47
|
+
local_var_path = "/validate/lead-enrichment/lead/enrich"
|
48
|
+
|
49
|
+
# query parameters
|
50
|
+
query_params = {}
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = {}
|
54
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
56
|
+
# HTTP header 'Content-Type'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = @api_client.object_to_http_body(request)
|
64
|
+
auth_names = ['Apikey']
|
65
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
66
|
+
:header_params => header_params,
|
67
|
+
:query_params => query_params,
|
68
|
+
:form_params => form_params,
|
69
|
+
:body => post_body,
|
70
|
+
:auth_names => auth_names,
|
71
|
+
:return_type => 'LeadEnrichmentResponse')
|
72
|
+
if @api_client.config.debugging
|
73
|
+
@api_client.config.logger.debug "API called: LeadEnrichmentApi#lead_enrichment_enrich_lead\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
74
|
+
end
|
75
|
+
return data, status_code, headers
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -54,7 +54,7 @@ module CloudmersiveValidateApiClient
|
|
54
54
|
# HTTP header 'Accept' (if needed)
|
55
55
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
56
56
|
# HTTP header 'Content-Type'
|
57
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
|
58
58
|
|
59
59
|
# form parameters
|
60
60
|
form_params = {}
|
@@ -109,7 +109,7 @@ module CloudmersiveValidateApiClient
|
|
109
109
|
# HTTP header 'Accept' (if needed)
|
110
110
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
111
111
|
# HTTP header 'Content-Type'
|
112
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'
|
112
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
|
113
113
|
|
114
114
|
# form parameters
|
115
115
|
form_params = {}
|
@@ -164,7 +164,7 @@ module CloudmersiveValidateApiClient
|
|
164
164
|
# HTTP header 'Accept' (if needed)
|
165
165
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
166
166
|
# HTTP header 'Content-Type'
|
167
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'
|
167
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
|
168
168
|
|
169
169
|
# form parameters
|
170
170
|
form_params = {}
|
@@ -219,7 +219,7 @@ module CloudmersiveValidateApiClient
|
|
219
219
|
# HTTP header 'Accept' (if needed)
|
220
220
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
221
221
|
# HTTP header 'Content-Type'
|
222
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'
|
222
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
|
223
223
|
|
224
224
|
# form parameters
|
225
225
|
form_params = {}
|
@@ -274,7 +274,7 @@ module CloudmersiveValidateApiClient
|
|
274
274
|
# HTTP header 'Accept' (if needed)
|
275
275
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
276
276
|
# HTTP header 'Content-Type'
|
277
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'
|
277
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
|
278
278
|
|
279
279
|
# form parameters
|
280
280
|
form_params = {}
|
@@ -54,7 +54,7 @@ module CloudmersiveValidateApiClient
|
|
54
54
|
# HTTP header 'Accept' (if needed)
|
55
55
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
56
56
|
# HTTP header 'Content-Type'
|
57
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
|
58
58
|
|
59
59
|
# form parameters
|
60
60
|
form_params = {}
|
@@ -54,7 +54,7 @@ module CloudmersiveValidateApiClient
|
|
54
54
|
# HTTP header 'Accept' (if needed)
|
55
55
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
56
56
|
# HTTP header 'Content-Type'
|
57
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
|
58
58
|
|
59
59
|
# form parameters
|
60
60
|
form_params = {}
|
@@ -54,7 +54,7 @@ module CloudmersiveValidateApiClient
|
|
54
54
|
# HTTP header 'Accept' (if needed)
|
55
55
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
56
56
|
# HTTP header 'Content-Type'
|
57
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
|
58
58
|
|
59
59
|
# form parameters
|
60
60
|
form_params = {}
|