cloudmersive-validate-api-client 2.0.1 → 2.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -0
  3. data/README.md +175 -0
  4. data/Rakefile +8 -0
  5. data/cloudmersive-validate-api-client.gemspec +45 -0
  6. data/docs/AddressApi.md +497 -0
  7. data/docs/AddressGetServersResponse.md +9 -0
  8. data/docs/AddressVerifySyntaxOnlyResponse.md +11 -0
  9. data/docs/CheckResponse.md +8 -0
  10. data/docs/CountryDetails.md +11 -0
  11. data/docs/CountryListResult.md +9 -0
  12. data/docs/DomainApi.md +228 -0
  13. data/docs/EmailApi.md +173 -0
  14. data/docs/FirstNameValidationRequest.md +8 -0
  15. data/docs/FirstNameValidationResponse.md +9 -0
  16. data/docs/FullEmailValidationResponse.md +16 -0
  17. data/docs/FullNameValidationRequest.md +8 -0
  18. data/docs/FullNameValidationResponse.md +17 -0
  19. data/docs/GeolocateResponse.md +16 -0
  20. data/docs/GetGenderRequest.md +9 -0
  21. data/docs/GetGenderResponse.md +9 -0
  22. data/docs/GetTimezonesRequest.md +8 -0
  23. data/docs/GetTimezonesResponse.md +13 -0
  24. data/docs/IPAddressApi.md +173 -0
  25. data/docs/IPThreatResponse.md +9 -0
  26. data/docs/LastNameValidationRequest.md +8 -0
  27. data/docs/LastNameValidationResponse.md +9 -0
  28. data/docs/LeadEnrichmentApi.md +61 -0
  29. data/docs/LeadEnrichmentRequest.md +21 -0
  30. data/docs/LeadEnrichmentResponse.md +25 -0
  31. data/docs/NameApi.md +283 -0
  32. data/docs/ParseAddressRequest.md +9 -0
  33. data/docs/ParseAddressResponse.md +16 -0
  34. data/docs/PhoneNumberApi.md +63 -0
  35. data/docs/PhoneNumberValidateRequest.md +9 -0
  36. data/docs/PhoneNumberValidationResponse.md +15 -0
  37. data/docs/Timezone.md +10 -0
  38. data/docs/TorNodeResponse.md +8 -0
  39. data/docs/UserAgentApi.md +63 -0
  40. data/docs/UserAgentValidateRequest.md +8 -0
  41. data/docs/UserAgentValidateResponse.md +21 -0
  42. data/docs/ValidateAddressRequest.md +13 -0
  43. data/docs/ValidateAddressResponse.md +10 -0
  44. data/docs/ValidateCityRequest.md +11 -0
  45. data/docs/ValidateCityResponse.md +12 -0
  46. data/docs/ValidateCountryRequest.md +8 -0
  47. data/docs/ValidateCountryResponse.md +14 -0
  48. data/docs/ValidateIdentifierRequest.md +15 -0
  49. data/docs/ValidateIdentifierResponse.md +9 -0
  50. data/docs/ValidatePostalCodeRequest.md +10 -0
  51. data/docs/ValidatePostalCodeResponse.md +12 -0
  52. data/docs/ValidateStateRequest.md +10 -0
  53. data/docs/ValidateStateResponse.md +11 -0
  54. data/docs/ValidateUrlRequestFull.md +8 -0
  55. data/docs/ValidateUrlRequestSyntaxOnly.md +8 -0
  56. data/docs/ValidateUrlResponseFull.md +12 -0
  57. data/docs/ValidateUrlResponseSyntaxOnly.md +9 -0
  58. data/docs/VatApi.md +63 -0
  59. data/docs/VatLookupRequest.md +8 -0
  60. data/docs/VatLookupResponse.md +19 -0
  61. data/docs/WhoisResponse.md +22 -0
  62. data/git_push.sh +55 -0
  63. data/lib/cloudmersive-validate-api-client.rb +95 -0
  64. data/lib/cloudmersive-validate-api-client/api/address_api.rb +501 -0
  65. data/lib/cloudmersive-validate-api-client/api/domain_api.rb +239 -0
  66. data/lib/cloudmersive-validate-api-client/api/email_api.rb +185 -0
  67. data/lib/cloudmersive-validate-api-client/api/ip_address_api.rb +185 -0
  68. data/lib/cloudmersive-validate-api-client/api/lead_enrichment_api.rb +75 -0
  69. data/lib/cloudmersive-validate-api-client/api/name_api.rb +293 -0
  70. data/lib/cloudmersive-validate-api-client/api/phone_number_api.rb +77 -0
  71. data/lib/cloudmersive-validate-api-client/api/user_agent_api.rb +77 -0
  72. data/lib/cloudmersive-validate-api-client/api/vat_api.rb +77 -0
  73. data/lib/cloudmersive-validate-api-client/api_client.rb +391 -0
  74. data/lib/cloudmersive-validate-api-client/api_error.rb +38 -0
  75. data/lib/cloudmersive-validate-api-client/configuration.rb +209 -0
  76. data/lib/cloudmersive-validate-api-client/models/address_get_servers_response.rb +198 -0
  77. data/lib/cloudmersive-validate-api-client/models/address_verify_syntax_only_response.rb +216 -0
  78. data/lib/cloudmersive-validate-api-client/models/check_response.rb +186 -0
  79. data/lib/cloudmersive-validate-api-client/models/country_details.rb +216 -0
  80. data/lib/cloudmersive-validate-api-client/models/country_list_result.rb +198 -0
  81. data/lib/cloudmersive-validate-api-client/models/first_name_validation_request.rb +186 -0
  82. data/lib/cloudmersive-validate-api-client/models/first_name_validation_response.rb +196 -0
  83. data/lib/cloudmersive-validate-api-client/models/full_email_validation_response.rb +266 -0
  84. data/lib/cloudmersive-validate-api-client/models/full_name_validation_request.rb +186 -0
  85. data/lib/cloudmersive-validate-api-client/models/full_name_validation_response.rb +276 -0
  86. data/lib/cloudmersive-validate-api-client/models/geolocate_response.rb +266 -0
  87. data/lib/cloudmersive-validate-api-client/models/get_gender_request.rb +196 -0
  88. data/lib/cloudmersive-validate-api-client/models/get_gender_response.rb +196 -0
  89. data/lib/cloudmersive-validate-api-client/models/get_timezones_request.rb +186 -0
  90. data/lib/cloudmersive-validate-api-client/models/get_timezones_response.rb +238 -0
  91. data/lib/cloudmersive-validate-api-client/models/ip_threat_response.rb +196 -0
  92. data/lib/cloudmersive-validate-api-client/models/last_name_validation_request.rb +186 -0
  93. data/lib/cloudmersive-validate-api-client/models/last_name_validation_response.rb +196 -0
  94. data/lib/cloudmersive-validate-api-client/models/lead_enrichment_request.rb +316 -0
  95. data/lib/cloudmersive-validate-api-client/models/lead_enrichment_response.rb +356 -0
  96. data/lib/cloudmersive-validate-api-client/models/parse_address_request.rb +196 -0
  97. data/lib/cloudmersive-validate-api-client/models/parse_address_response.rb +266 -0
  98. data/lib/cloudmersive-validate-api-client/models/phone_number_validate_request.rb +196 -0
  99. data/lib/cloudmersive-validate-api-client/models/phone_number_validation_response.rb +256 -0
  100. data/lib/cloudmersive-validate-api-client/models/timezone.rb +206 -0
  101. data/lib/cloudmersive-validate-api-client/models/tor_node_response.rb +186 -0
  102. data/lib/cloudmersive-validate-api-client/models/user_agent_validate_request.rb +186 -0
  103. data/lib/cloudmersive-validate-api-client/models/user_agent_validate_response.rb +316 -0
  104. data/lib/cloudmersive-validate-api-client/models/validate_address_request.rb +236 -0
  105. data/lib/cloudmersive-validate-api-client/models/validate_address_response.rb +206 -0
  106. data/lib/cloudmersive-validate-api-client/models/validate_city_request.rb +216 -0
  107. data/lib/cloudmersive-validate-api-client/models/validate_city_response.rb +226 -0
  108. data/lib/cloudmersive-validate-api-client/models/validate_country_request.rb +186 -0
  109. data/lib/cloudmersive-validate-api-client/models/validate_country_response.rb +248 -0
  110. data/lib/cloudmersive-validate-api-client/models/validate_identifier_request.rb +256 -0
  111. data/lib/cloudmersive-validate-api-client/models/validate_identifier_response.rb +196 -0
  112. data/lib/cloudmersive-validate-api-client/models/validate_postal_code_request.rb +206 -0
  113. data/lib/cloudmersive-validate-api-client/models/validate_postal_code_response.rb +226 -0
  114. data/lib/cloudmersive-validate-api-client/models/validate_state_request.rb +206 -0
  115. data/lib/cloudmersive-validate-api-client/models/validate_state_response.rb +216 -0
  116. data/lib/cloudmersive-validate-api-client/models/validate_url_request_full.rb +186 -0
  117. data/lib/cloudmersive-validate-api-client/models/validate_url_request_syntax_only.rb +186 -0
  118. data/lib/cloudmersive-validate-api-client/models/validate_url_response_full.rb +226 -0
  119. data/lib/cloudmersive-validate-api-client/models/validate_url_response_syntax_only.rb +196 -0
  120. data/lib/cloudmersive-validate-api-client/models/vat_lookup_request.rb +186 -0
  121. data/lib/cloudmersive-validate-api-client/models/vat_lookup_response.rb +295 -0
  122. data/lib/cloudmersive-validate-api-client/models/whois_response.rb +326 -0
  123. data/lib/cloudmersive-validate-api-client/version.rb +15 -0
  124. data/spec/api/address_api_spec.rb +142 -0
  125. data/spec/api/domain_api_spec.rb +83 -0
  126. data/spec/api/email_api_spec.rb +71 -0
  127. data/spec/api/ip_address_api_spec.rb +71 -0
  128. data/spec/api/lead_enrichment_api_spec.rb +46 -0
  129. data/spec/api/name_api_spec.rb +95 -0
  130. data/spec/api/phone_number_api_spec.rb +47 -0
  131. data/spec/api/user_agent_api_spec.rb +47 -0
  132. data/spec/api/vat_api_spec.rb +47 -0
  133. data/spec/api_client_spec.rb +243 -0
  134. data/spec/configuration_spec.rb +42 -0
  135. data/spec/models/address_get_servers_response_spec.rb +47 -0
  136. data/spec/models/address_verify_syntax_only_response_spec.rb +59 -0
  137. data/spec/models/check_response_spec.rb +41 -0
  138. data/spec/models/country_details_spec.rb +59 -0
  139. data/spec/models/country_list_result_spec.rb +47 -0
  140. data/spec/models/first_name_validation_request_spec.rb +41 -0
  141. data/spec/models/first_name_validation_response_spec.rb +47 -0
  142. data/spec/models/full_email_validation_response_spec.rb +89 -0
  143. data/spec/models/full_name_validation_request_spec.rb +41 -0
  144. data/spec/models/full_name_validation_response_spec.rb +95 -0
  145. data/spec/models/geolocate_response_spec.rb +89 -0
  146. data/spec/models/get_gender_request_spec.rb +47 -0
  147. data/spec/models/get_gender_response_spec.rb +47 -0
  148. data/spec/models/get_timezones_request_spec.rb +41 -0
  149. data/spec/models/get_timezones_response_spec.rb +71 -0
  150. data/spec/models/ip_threat_response_spec.rb +47 -0
  151. data/spec/models/last_name_validation_request_spec.rb +41 -0
  152. data/spec/models/last_name_validation_response_spec.rb +47 -0
  153. data/spec/models/lead_enrichment_request_spec.rb +119 -0
  154. data/spec/models/lead_enrichment_response_spec.rb +143 -0
  155. data/spec/models/parse_address_request_spec.rb +47 -0
  156. data/spec/models/parse_address_response_spec.rb +89 -0
  157. data/spec/models/phone_number_validate_request_spec.rb +47 -0
  158. data/spec/models/phone_number_validation_response_spec.rb +83 -0
  159. data/spec/models/timezone_spec.rb +53 -0
  160. data/spec/models/tor_node_response_spec.rb +41 -0
  161. data/spec/models/user_agent_validate_request_spec.rb +41 -0
  162. data/spec/models/user_agent_validate_response_spec.rb +119 -0
  163. data/spec/models/validate_address_request_spec.rb +71 -0
  164. data/spec/models/validate_address_response_spec.rb +53 -0
  165. data/spec/models/validate_city_request_spec.rb +59 -0
  166. data/spec/models/validate_city_response_spec.rb +65 -0
  167. data/spec/models/validate_country_request_spec.rb +41 -0
  168. data/spec/models/validate_country_response_spec.rb +77 -0
  169. data/spec/models/validate_identifier_request_spec.rb +83 -0
  170. data/spec/models/validate_identifier_response_spec.rb +47 -0
  171. data/spec/models/validate_postal_code_request_spec.rb +53 -0
  172. data/spec/models/validate_postal_code_response_spec.rb +65 -0
  173. data/spec/models/validate_state_request_spec.rb +53 -0
  174. data/spec/models/validate_state_response_spec.rb +59 -0
  175. data/spec/models/validate_url_request_full_spec.rb +41 -0
  176. data/spec/models/validate_url_request_syntax_only_spec.rb +41 -0
  177. data/spec/models/validate_url_response_full_spec.rb +65 -0
  178. data/spec/models/validate_url_response_syntax_only_spec.rb +47 -0
  179. data/spec/models/vat_lookup_request_spec.rb +41 -0
  180. data/spec/models/vat_lookup_response_spec.rb +107 -0
  181. data/spec/models/whois_response_spec.rb +125 -0
  182. data/spec/spec_helper.rb +111 -0
  183. metadata +184 -3
@@ -0,0 +1,283 @@
1
+ # CloudmersiveValidateApiClient::NameApi
2
+
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
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
9
+ [**name_validate_first_name**](NameApi.md#name_validate_first_name) | **POST** /validate/name/first | Validate a first name
10
+ [**name_validate_full_name**](NameApi.md#name_validate_full_name) | **POST** /validate/name/full-name | Parse and validate a full name
11
+ [**name_validate_last_name**](NameApi.md#name_validate_last_name) | **POST** /validate/name/last | Validate a last name
12
+
13
+
14
+ # **name_get_gender**
15
+ > GetGenderResponse name_get_gender(input)
16
+
17
+ Get the gender of a first name
18
+
19
+ Determines the gender of a first name (given name)
20
+
21
+ ### Example
22
+ ```ruby
23
+ # load the gem
24
+ require 'cloudmersive-validate-api-client'
25
+ # setup authorization
26
+ CloudmersiveValidateApiClient.configure do |config|
27
+ # Configure API key authorization: Apikey
28
+ config.api_key['Apikey'] = 'YOUR API KEY'
29
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
30
+ #config.api_key_prefix['Apikey'] = 'Bearer'
31
+ end
32
+
33
+ api_instance = CloudmersiveValidateApiClient::NameApi.new
34
+
35
+ input = CloudmersiveValidateApiClient::GetGenderRequest.new # GetGenderRequest | Gender request information
36
+
37
+
38
+ begin
39
+ #Get the gender of a first name
40
+ result = api_instance.name_get_gender(input)
41
+ p result
42
+ rescue CloudmersiveValidateApiClient::ApiError => e
43
+ puts "Exception when calling NameApi->name_get_gender: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **input** | [**GetGenderRequest**](GetGenderRequest.md)| Gender request information |
52
+
53
+ ### Return type
54
+
55
+ [**GetGenderResponse**](GetGenderResponse.md)
56
+
57
+ ### Authorization
58
+
59
+ [Apikey](../README.md#Apikey)
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: application/json, text/json
64
+ - **Accept**: application/json, text/json, application/xml, text/xml
65
+
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
118
+ - **Accept**: application/json, text/json, application/xml, text/xml
119
+
120
+
121
+
122
+ # **name_validate_first_name**
123
+ > FirstNameValidationResponse name_validate_first_name(input)
124
+
125
+ Validate a first name
126
+
127
+ Determines if a string is a valid first name (given name)
128
+
129
+ ### Example
130
+ ```ruby
131
+ # load the gem
132
+ require 'cloudmersive-validate-api-client'
133
+ # setup authorization
134
+ CloudmersiveValidateApiClient.configure do |config|
135
+ # Configure API key authorization: Apikey
136
+ config.api_key['Apikey'] = 'YOUR API KEY'
137
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
138
+ #config.api_key_prefix['Apikey'] = 'Bearer'
139
+ end
140
+
141
+ api_instance = CloudmersiveValidateApiClient::NameApi.new
142
+
143
+ input = CloudmersiveValidateApiClient::FirstNameValidationRequest.new # FirstNameValidationRequest | Validation request information
144
+
145
+
146
+ begin
147
+ #Validate a first name
148
+ result = api_instance.name_validate_first_name(input)
149
+ p result
150
+ rescue CloudmersiveValidateApiClient::ApiError => e
151
+ puts "Exception when calling NameApi->name_validate_first_name: #{e}"
152
+ end
153
+ ```
154
+
155
+ ### Parameters
156
+
157
+ Name | Type | Description | Notes
158
+ ------------- | ------------- | ------------- | -------------
159
+ **input** | [**FirstNameValidationRequest**](FirstNameValidationRequest.md)| Validation request information |
160
+
161
+ ### Return type
162
+
163
+ [**FirstNameValidationResponse**](FirstNameValidationResponse.md)
164
+
165
+ ### Authorization
166
+
167
+ [Apikey](../README.md#Apikey)
168
+
169
+ ### HTTP request headers
170
+
171
+ - **Content-Type**: application/json, text/json
172
+ - **Accept**: application/json, text/json, application/xml, text/xml
173
+
174
+
175
+
176
+ # **name_validate_full_name**
177
+ > FullNameValidationResponse name_validate_full_name(input)
178
+
179
+ Parse and validate a full name
180
+
181
+ Parses a full name string (e.g. \"Mr. Jon van der Waal Jr.\") into its component parts (and returns these component parts), and then validates whether it is a valid name string or not
182
+
183
+ ### Example
184
+ ```ruby
185
+ # load the gem
186
+ require 'cloudmersive-validate-api-client'
187
+ # setup authorization
188
+ CloudmersiveValidateApiClient.configure do |config|
189
+ # Configure API key authorization: Apikey
190
+ config.api_key['Apikey'] = 'YOUR API KEY'
191
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
192
+ #config.api_key_prefix['Apikey'] = 'Bearer'
193
+ end
194
+
195
+ api_instance = CloudmersiveValidateApiClient::NameApi.new
196
+
197
+ input = CloudmersiveValidateApiClient::FullNameValidationRequest.new # FullNameValidationRequest | Validation request information
198
+
199
+
200
+ begin
201
+ #Parse and validate a full name
202
+ result = api_instance.name_validate_full_name(input)
203
+ p result
204
+ rescue CloudmersiveValidateApiClient::ApiError => e
205
+ puts "Exception when calling NameApi->name_validate_full_name: #{e}"
206
+ end
207
+ ```
208
+
209
+ ### Parameters
210
+
211
+ Name | Type | Description | Notes
212
+ ------------- | ------------- | ------------- | -------------
213
+ **input** | [**FullNameValidationRequest**](FullNameValidationRequest.md)| Validation request information |
214
+
215
+ ### Return type
216
+
217
+ [**FullNameValidationResponse**](FullNameValidationResponse.md)
218
+
219
+ ### Authorization
220
+
221
+ [Apikey](../README.md#Apikey)
222
+
223
+ ### HTTP request headers
224
+
225
+ - **Content-Type**: application/json, text/json
226
+ - **Accept**: application/json, text/json, application/xml, text/xml
227
+
228
+
229
+
230
+ # **name_validate_last_name**
231
+ > LastNameValidationResponse name_validate_last_name(input)
232
+
233
+ Validate a last name
234
+
235
+ Determines if a string is a valid last name (surname)
236
+
237
+ ### Example
238
+ ```ruby
239
+ # load the gem
240
+ require 'cloudmersive-validate-api-client'
241
+ # setup authorization
242
+ CloudmersiveValidateApiClient.configure do |config|
243
+ # Configure API key authorization: Apikey
244
+ config.api_key['Apikey'] = 'YOUR API KEY'
245
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
246
+ #config.api_key_prefix['Apikey'] = 'Bearer'
247
+ end
248
+
249
+ api_instance = CloudmersiveValidateApiClient::NameApi.new
250
+
251
+ input = CloudmersiveValidateApiClient::LastNameValidationRequest.new # LastNameValidationRequest | Validation request information
252
+
253
+
254
+ begin
255
+ #Validate a last name
256
+ result = api_instance.name_validate_last_name(input)
257
+ p result
258
+ rescue CloudmersiveValidateApiClient::ApiError => e
259
+ puts "Exception when calling NameApi->name_validate_last_name: #{e}"
260
+ end
261
+ ```
262
+
263
+ ### Parameters
264
+
265
+ Name | Type | Description | Notes
266
+ ------------- | ------------- | ------------- | -------------
267
+ **input** | [**LastNameValidationRequest**](LastNameValidationRequest.md)| Validation request information |
268
+
269
+ ### Return type
270
+
271
+ [**LastNameValidationResponse**](LastNameValidationResponse.md)
272
+
273
+ ### Authorization
274
+
275
+ [Apikey](../README.md#Apikey)
276
+
277
+ ### HTTP request headers
278
+
279
+ - **Content-Type**: application/json, text/json
280
+ - **Accept**: application/json, text/json, application/xml, text/xml
281
+
282
+
283
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveValidateApiClient::ParseAddressRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **address_string** | **String** | A mailing address or street address formatted as a single text string; this will be parsed into its components | [optional]
7
+ **capitalization_mode** | **String** | Optional; indicates how the parsed output should be capitalized; default is Title Case; possible values are: \"Uppercase\" will set the capitalization to UPPER CASE; \"Lowercase\" will set the capitalization to lower case; \"Titlecase\" will set the capitalization to Title Case; and \"Originalcase\" will preserve the original casing as much as possible | [optional]
8
+
9
+
@@ -0,0 +1,16 @@
1
+ # CloudmersiveValidateApiClient::ParseAddressResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the parsing operation was successful, false otherwise | [optional]
7
+ **building** | **String** | The name of the building, house or structure if applicable, such as \"Cloudmersive Building 2\". This will often by null. | [optional]
8
+ **street_number** | **String** | 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]
9
+ **street** | **String** | 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]
10
+ **city** | **String** | The city of the address. | [optional]
11
+ **state_or_province** | **String** | The state or province of the address. | [optional]
12
+ **postal_code** | **String** | The postal code or zip code of the address. | [optional]
13
+ **country_full_name** | **String** | Country of the address, if present in the address. If not included in the address it will be null. | [optional]
14
+ **iso_two_letter_code** | **String** | Two-letter ISO 3166-1 country code | [optional]
15
+
16
+
@@ -0,0 +1,63 @@
1
+ # CloudmersiveValidateApiClient::PhoneNumberApi
2
+
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**phone_number_syntax_only**](PhoneNumberApi.md#phone_number_syntax_only) | **POST** /validate/phonenumber/basic | Validate phone number (basic)
8
+
9
+
10
+ # **phone_number_syntax_only**
11
+ > PhoneNumberValidationResponse phone_number_syntax_only(value)
12
+
13
+ Validate phone number (basic)
14
+
15
+ Validate a phone number by analyzing the syntax
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'cloudmersive-validate-api-client'
21
+ # setup authorization
22
+ CloudmersiveValidateApiClient.configure do |config|
23
+ # Configure API key authorization: Apikey
24
+ config.api_key['Apikey'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ #config.api_key_prefix['Apikey'] = 'Bearer'
27
+ end
28
+
29
+ api_instance = CloudmersiveValidateApiClient::PhoneNumberApi.new
30
+
31
+ value = CloudmersiveValidateApiClient::PhoneNumberValidateRequest.new # PhoneNumberValidateRequest | Phone number to validate in a PhoneNumberValidateRequest object. Try a phone number such as \"1.800.463.3339\", and either leave DefaultCountryCode blank or use \"US\".
32
+
33
+
34
+ begin
35
+ #Validate phone number (basic)
36
+ result = api_instance.phone_number_syntax_only(value)
37
+ p result
38
+ rescue CloudmersiveValidateApiClient::ApiError => e
39
+ puts "Exception when calling PhoneNumberApi->phone_number_syntax_only: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **value** | [**PhoneNumberValidateRequest**](PhoneNumberValidateRequest.md)| Phone number to validate in a PhoneNumberValidateRequest object. Try a phone number such as \"1.800.463.3339\", and either leave DefaultCountryCode blank or use \"US\". |
48
+
49
+ ### Return type
50
+
51
+ [**PhoneNumberValidationResponse**](PhoneNumberValidationResponse.md)
52
+
53
+ ### Authorization
54
+
55
+ [Apikey](../README.md#Apikey)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: application/json, text/json
60
+ - **Accept**: application/json, text/json, application/xml, text/xml
61
+
62
+
63
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveValidateApiClient::PhoneNumberValidateRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **phone_number** | **String** | Raw phone number string to parse as input for validation | [optional]
7
+ **default_country_code** | **String** | Optional, default country code. If left blank, will default to \"US\". | [optional]
8
+
9
+
@@ -0,0 +1,15 @@
1
+ # CloudmersiveValidateApiClient::PhoneNumberValidationResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **is_valid** | **BOOLEAN** | True if the phone number is valid, false otherwise | [optional]
7
+ **successful** | **BOOLEAN** | True if the operation was successful, false if there was an error during validation. See IsValid for validation result. | [optional]
8
+ **phone_number_type** | **String** | Type of phone number; possible values are: FixedLine, Mobile, FixedLineOrMobile, TollFree, PremiumRate, SharedCost, Voip, PersonalNumber, Pager, Uan, Voicemail, Unknown | [optional]
9
+ **e164_format** | **String** | E.164 format of the phone number | [optional]
10
+ **international_format** | **String** | Internaltional format of the phone number | [optional]
11
+ **national_format** | **String** | National format of the phone number | [optional]
12
+ **country_code** | **String** | Two digit country code of the phone number | [optional]
13
+ **country_name** | **String** | User-friendly long name of the country for the phone number | [optional]
14
+
15
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveValidateApiClient::Timezone
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | Name of the Time Zone | [optional]
7
+ **base_utc_offset** | **String** | UTC offset for this time zone | [optional]
8
+ **now** | **DateTime** | The current time (Now) in this time zone | [optional]
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # CloudmersiveValidateApiClient::TorNodeResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **is_tor_node** | **BOOLEAN** | True if the input IP address is a Tor exit node, false otherwise | [optional]
7
+
8
+
@@ -0,0 +1,63 @@
1
+ # CloudmersiveValidateApiClient::UserAgentApi
2
+
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**user_agent_parse**](UserAgentApi.md#user_agent_parse) | **POST** /validate/useragent/parse | Parse an HTTP User-Agent string, identify robots
8
+
9
+
10
+ # **user_agent_parse**
11
+ > UserAgentValidateResponse user_agent_parse(request)
12
+
13
+ Parse an HTTP User-Agent string, identify robots
14
+
15
+ Uses a parsing system and database to parse the User-Agent into its structured component parts, such as Browser, Browser Version, Browser Engine, Operating System, and importantly, Robot identification.
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'cloudmersive-validate-api-client'
21
+ # setup authorization
22
+ CloudmersiveValidateApiClient.configure do |config|
23
+ # Configure API key authorization: Apikey
24
+ config.api_key['Apikey'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ #config.api_key_prefix['Apikey'] = 'Bearer'
27
+ end
28
+
29
+ api_instance = CloudmersiveValidateApiClient::UserAgentApi.new
30
+
31
+ request = CloudmersiveValidateApiClient::UserAgentValidateRequest.new # UserAgentValidateRequest | Input parse request
32
+
33
+
34
+ begin
35
+ #Parse an HTTP User-Agent string, identify robots
36
+ result = api_instance.user_agent_parse(request)
37
+ p result
38
+ rescue CloudmersiveValidateApiClient::ApiError => e
39
+ puts "Exception when calling UserAgentApi->user_agent_parse: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **request** | [**UserAgentValidateRequest**](UserAgentValidateRequest.md)| Input parse request |
48
+
49
+ ### Return type
50
+
51
+ [**UserAgentValidateResponse**](UserAgentValidateResponse.md)
52
+
53
+ ### Authorization
54
+
55
+ [Apikey](../README.md#Apikey)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: application/json, text/json
60
+ - **Accept**: application/json, text/json, application/xml, text/xml
61
+
62
+
63
+