cloudmersive-convert-api-client 1.6.7 → 1.6.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -6
  3. data/docs/ConvertDataApi.md +2 -2
  4. data/docs/ConvertWebApi.md +50 -50
  5. data/docs/CreateZipArchiveRequest.md +9 -0
  6. data/docs/EditTextApi.md +232 -12
  7. data/docs/FindRegexMatch.md +12 -0
  8. data/docs/FindStringMatch.md +10 -0
  9. data/docs/FindStringRegexRequest.md +10 -0
  10. data/docs/FindStringRegexResponse.md +10 -0
  11. data/docs/FindStringSimpleRequest.md +9 -0
  12. data/docs/FindStringSimpleResponse.md +10 -0
  13. data/docs/ReplaceStringRegexRequest.md +10 -0
  14. data/docs/ReplaceStringRegexResponse.md +9 -0
  15. data/docs/ReplaceStringSimpleRequest.md +10 -0
  16. data/docs/ReplaceStringSimpleResponse.md +9 -0
  17. data/docs/ZipArchiveApi.md +167 -0
  18. data/docs/ZipDirectory.md +10 -0
  19. data/docs/ZipExtractResponse.md +10 -0
  20. data/docs/ZipFile.md +9 -0
  21. data/lib/cloudmersive-convert-api-client.rb +15 -0
  22. data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +2 -2
  23. data/lib/cloudmersive-convert-api-client/api/convert_web_api.rb +61 -61
  24. data/lib/cloudmersive-convert-api-client/api/edit_text_api.rb +232 -12
  25. data/lib/cloudmersive-convert-api-client/api/zip_archive_api.rb +181 -0
  26. data/lib/cloudmersive-convert-api-client/models/create_zip_archive_request.rb +203 -0
  27. data/lib/cloudmersive-convert-api-client/models/find_regex_match.rb +231 -0
  28. data/lib/cloudmersive-convert-api-client/models/find_string_match.rb +209 -0
  29. data/lib/cloudmersive-convert-api-client/models/find_string_regex_request.rb +209 -0
  30. data/lib/cloudmersive-convert-api-client/models/find_string_regex_response.rb +211 -0
  31. data/lib/cloudmersive-convert-api-client/models/find_string_simple_request.rb +199 -0
  32. data/lib/cloudmersive-convert-api-client/models/find_string_simple_response.rb +211 -0
  33. data/lib/cloudmersive-convert-api-client/models/replace_string_regex_request.rb +209 -0
  34. data/lib/cloudmersive-convert-api-client/models/replace_string_regex_response.rb +199 -0
  35. data/lib/cloudmersive-convert-api-client/models/replace_string_simple_request.rb +209 -0
  36. data/lib/cloudmersive-convert-api-client/models/replace_string_simple_response.rb +199 -0
  37. data/lib/cloudmersive-convert-api-client/models/zip_directory.rb +213 -0
  38. data/lib/cloudmersive-convert-api-client/models/zip_extract_response.rb +213 -0
  39. data/lib/cloudmersive-convert-api-client/models/zip_file.rb +215 -0
  40. data/lib/cloudmersive-convert-api-client/version.rb +1 -1
  41. data/spec/api/convert_data_api_spec.rb +1 -1
  42. data/spec/api/convert_web_api_spec.rb +13 -13
  43. data/spec/api/edit_text_api_spec.rb +54 -6
  44. data/spec/api/zip_archive_api_spec.rb +70 -0
  45. data/spec/models/create_zip_archive_request_spec.rb +48 -0
  46. data/spec/models/find_regex_match_spec.rb +66 -0
  47. data/spec/models/find_string_match_spec.rb +54 -0
  48. data/spec/models/find_string_regex_request_spec.rb +54 -0
  49. data/spec/models/find_string_regex_response_spec.rb +54 -0
  50. data/spec/models/find_string_simple_request_spec.rb +48 -0
  51. data/spec/models/find_string_simple_response_spec.rb +54 -0
  52. data/spec/models/replace_string_regex_request_spec.rb +54 -0
  53. data/spec/models/replace_string_regex_response_spec.rb +48 -0
  54. data/spec/models/replace_string_simple_request_spec.rb +54 -0
  55. data/spec/models/replace_string_simple_response_spec.rb +48 -0
  56. data/spec/models/zip_directory_spec.rb +54 -0
  57. data/spec/models/zip_extract_response_spec.rb +54 -0
  58. data/spec/models/zip_file_spec.rb +48 -0
  59. metadata +47 -2
@@ -0,0 +1,12 @@
1
+ # CloudmersiveConvertApiClient::FindRegexMatch
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **character_offset_start** | **Integer** | 0-based index of the start of the match | [optional]
7
+ **character_offset_end** | **Integer** | 0-based index of the end of the match | [optional]
8
+ **containing_line** | **String** | Text content of the line containing the match | [optional]
9
+ **match_value** | **String** | The match value | [optional]
10
+ **match_groups** | **Array<String>** | Regular expression regex match groups; these correspond to the match values | [optional]
11
+
12
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveConvertApiClient::FindStringMatch
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **character_offset_start** | **Integer** | 0-based index of the start of the match | [optional]
7
+ **character_offset_end** | **Integer** | 0-based index of the end of the match | [optional]
8
+ **containing_line** | **String** | Text content of the line containing the match | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveConvertApiClient::FindStringRegexRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **text_content** | **String** | Input text content | [optional]
7
+ **target_regex** | **String** | Target input regular expression (regex) to find | [optional]
8
+ **match_case** | **BOOLEAN** | Set to True to match case, False to ignore case | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveConvertApiClient::FindStringRegexResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
+ **matches** | [**Array<FindRegexMatch>**](FindRegexMatch.md) | Regular expression matches | [optional]
8
+ **match_count** | **Integer** | The number of matches | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveConvertApiClient::FindStringSimpleRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **text_content** | **String** | Input text content | [optional]
7
+ **target_string** | **String** | Target input string to find | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveConvertApiClient::FindStringSimpleResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
+ **matches** | [**Array<FindStringMatch>**](FindStringMatch.md) | Found matches | [optional]
8
+ **match_count** | **Integer** | The number of matches | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveConvertApiClient::ReplaceStringRegexRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **text_content** | **String** | Input text content | [optional]
7
+ **regular_expression_string** | **String** | Target input regular expression (regex) string to match and be replaced; supports all regular expression values | [optional]
8
+ **replace_with_string** | **String** | Replacement for target string; supports referencing indexed regex matched values from RegularExpressionString, such as $1, $2, and so on | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveConvertApiClient::ReplaceStringRegexResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
+ **text_content_result** | **String** | Result of performing a base 64 decode operation, binary file content | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveConvertApiClient::ReplaceStringSimpleRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **text_content** | **String** | Input text content | [optional]
7
+ **target_string** | **String** | Target input string to match and be replaced | [optional]
8
+ **replace_with_string** | **String** | Replacement for target string | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveConvertApiClient::ReplaceStringSimpleResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
+ **text_content_result** | **String** | Result of performing a replace string operation | [optional]
8
+
9
+
@@ -0,0 +1,167 @@
1
+ # CloudmersiveConvertApiClient::ZipArchiveApi
2
+
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**zip_archive_zip_create**](ZipArchiveApi.md#zip_archive_zip_create) | **POST** /convert/archive/zip/create | Compress files to create a new zip archive
8
+ [**zip_archive_zip_create_advanced**](ZipArchiveApi.md#zip_archive_zip_create_advanced) | **POST** /convert/archive/zip/create/advanced | Compress files and folders to create a new zip archive with advanced options
9
+ [**zip_archive_zip_extract**](ZipArchiveApi.md#zip_archive_zip_extract) | **POST** /convert/archive/zip/extract | Extract, decompress files and folders from a zip archive
10
+
11
+
12
+ # **zip_archive_zip_create**
13
+ > Object zip_archive_zip_create
14
+
15
+ Compress files to create a new zip archive
16
+
17
+ Create a new zip archive by compressing input files.
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'cloudmersive-convert-api-client'
23
+ # setup authorization
24
+ CloudmersiveConvertApiClient.configure do |config|
25
+ # Configure API key authorization: Apikey
26
+ config.api_key['Apikey'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ #config.api_key_prefix['Apikey'] = 'Bearer'
29
+ end
30
+
31
+ api_instance = CloudmersiveConvertApiClient::ZipArchiveApi.new
32
+
33
+ begin
34
+ #Compress files to create a new zip archive
35
+ result = api_instance.zip_archive_zip_create
36
+ p result
37
+ rescue CloudmersiveConvertApiClient::ApiError => e
38
+ puts "Exception when calling ZipArchiveApi->zip_archive_zip_create: #{e}"
39
+ end
40
+ ```
41
+
42
+ ### Parameters
43
+ This endpoint does not need any parameter.
44
+
45
+ ### Return type
46
+
47
+ **Object**
48
+
49
+ ### Authorization
50
+
51
+ [Apikey](../README.md#Apikey)
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: Not defined
56
+ - **Accept**: application/octet-stream
57
+
58
+
59
+
60
+ # **zip_archive_zip_create_advanced**
61
+ > Object zip_archive_zip_create_advanced(request)
62
+
63
+ Compress files and folders to create a new zip archive with advanced options
64
+
65
+ Create a new zip archive by compressing input files, folders and leverage advanced options to control the structure of the resulting zip archive.
66
+
67
+ ### Example
68
+ ```ruby
69
+ # load the gem
70
+ require 'cloudmersive-convert-api-client'
71
+ # setup authorization
72
+ CloudmersiveConvertApiClient.configure do |config|
73
+ # Configure API key authorization: Apikey
74
+ config.api_key['Apikey'] = 'YOUR API KEY'
75
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
76
+ #config.api_key_prefix['Apikey'] = 'Bearer'
77
+ end
78
+
79
+ api_instance = CloudmersiveConvertApiClient::ZipArchiveApi.new
80
+
81
+ request = CloudmersiveConvertApiClient::CreateZipArchiveRequest.new # CreateZipArchiveRequest | Input request
82
+
83
+
84
+ begin
85
+ #Compress files and folders to create a new zip archive with advanced options
86
+ result = api_instance.zip_archive_zip_create_advanced(request)
87
+ p result
88
+ rescue CloudmersiveConvertApiClient::ApiError => e
89
+ puts "Exception when calling ZipArchiveApi->zip_archive_zip_create_advanced: #{e}"
90
+ end
91
+ ```
92
+
93
+ ### Parameters
94
+
95
+ Name | Type | Description | Notes
96
+ ------------- | ------------- | ------------- | -------------
97
+ **request** | [**CreateZipArchiveRequest**](CreateZipArchiveRequest.md)| Input request |
98
+
99
+ ### Return type
100
+
101
+ **Object**
102
+
103
+ ### Authorization
104
+
105
+ [Apikey](../README.md#Apikey)
106
+
107
+ ### HTTP request headers
108
+
109
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
110
+ - **Accept**: application/octet-stream
111
+
112
+
113
+
114
+ # **zip_archive_zip_extract**
115
+ > ZipExtractResponse zip_archive_zip_extract(input_file)
116
+
117
+ Extract, decompress files and folders from a zip archive
118
+
119
+ Extracts a zip archive by decompressing files, and folders.
120
+
121
+ ### Example
122
+ ```ruby
123
+ # load the gem
124
+ require 'cloudmersive-convert-api-client'
125
+ # setup authorization
126
+ CloudmersiveConvertApiClient.configure do |config|
127
+ # Configure API key authorization: Apikey
128
+ config.api_key['Apikey'] = 'YOUR API KEY'
129
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
130
+ #config.api_key_prefix['Apikey'] = 'Bearer'
131
+ end
132
+
133
+ api_instance = CloudmersiveConvertApiClient::ZipArchiveApi.new
134
+
135
+ input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
136
+
137
+
138
+ begin
139
+ #Extract, decompress files and folders from a zip archive
140
+ result = api_instance.zip_archive_zip_extract(input_file)
141
+ p result
142
+ rescue CloudmersiveConvertApiClient::ApiError => e
143
+ puts "Exception when calling ZipArchiveApi->zip_archive_zip_extract: #{e}"
144
+ end
145
+ ```
146
+
147
+ ### Parameters
148
+
149
+ Name | Type | Description | Notes
150
+ ------------- | ------------- | ------------- | -------------
151
+ **input_file** | **File**| Input file to perform the operation on. |
152
+
153
+ ### Return type
154
+
155
+ [**ZipExtractResponse**](ZipExtractResponse.md)
156
+
157
+ ### Authorization
158
+
159
+ [Apikey](../README.md#Apikey)
160
+
161
+ ### HTTP request headers
162
+
163
+ - **Content-Type**: multipart/form-data
164
+ - **Accept**: application/json, text/json, application/xml, text/xml
165
+
166
+
167
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveConvertApiClient::ZipDirectory
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **directory_name** | **String** | Name of this directory | [optional]
7
+ **directories_in_directory** | [**Array<ZipDirectory>**](ZipDirectory.md) | Child directories contained directly in this directory | [optional]
8
+ **files_in_directory** | [**Array<ZipFile>**](ZipFile.md) | Child files contained directly in this directory | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveConvertApiClient::ZipExtractResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
7
+ **files_in_zip** | [**Array<ZipFile>**](ZipFile.md) | Top-level files in the root directory fo the zip file | [optional]
8
+ **directories_in_zip** | [**Array<ZipDirectory>**](ZipDirectory.md) | Top-level directories in the root directory of the zip; directories can contain sub-directories and files | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveConvertApiClient::ZipFile
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **file_name** | **String** | Name of this file | [optional]
7
+ **file_contents** | **String** | Contents of this file | [optional]
8
+
9
+
@@ -38,6 +38,7 @@ require 'cloudmersive-convert-api-client/models/create_blank_spreadsheet_request
38
38
  require 'cloudmersive-convert-api-client/models/create_blank_spreadsheet_response'
39
39
  require 'cloudmersive-convert-api-client/models/create_spreadsheet_from_data_request'
40
40
  require 'cloudmersive-convert-api-client/models/create_spreadsheet_from_data_response'
41
+ require 'cloudmersive-convert-api-client/models/create_zip_archive_request'
41
42
  require 'cloudmersive-convert-api-client/models/delete_docx_table_row_range_request'
42
43
  require 'cloudmersive-convert-api-client/models/delete_docx_table_row_range_response'
43
44
  require 'cloudmersive-convert-api-client/models/delete_docx_table_row_request'
@@ -74,6 +75,12 @@ require 'cloudmersive-convert-api-client/models/docx_template_operation'
74
75
  require 'cloudmersive-convert-api-client/models/docx_text'
75
76
  require 'cloudmersive-convert-api-client/models/docx_top_level_comment'
76
77
  require 'cloudmersive-convert-api-client/models/exif_value'
78
+ require 'cloudmersive-convert-api-client/models/find_regex_match'
79
+ require 'cloudmersive-convert-api-client/models/find_string_match'
80
+ require 'cloudmersive-convert-api-client/models/find_string_regex_request'
81
+ require 'cloudmersive-convert-api-client/models/find_string_regex_response'
82
+ require 'cloudmersive-convert-api-client/models/find_string_simple_request'
83
+ require 'cloudmersive-convert-api-client/models/find_string_simple_response'
77
84
  require 'cloudmersive-convert-api-client/models/finish_editing_request'
78
85
  require 'cloudmersive-convert-api-client/models/get_docx_body_request'
79
86
  require 'cloudmersive-convert-api-client/models/get_docx_body_response'
@@ -151,7 +158,11 @@ require 'cloudmersive-convert-api-client/models/remove_pptx_slides_request'
151
158
  require 'cloudmersive-convert-api-client/models/remove_whitespace_from_text_request'
152
159
  require 'cloudmersive-convert-api-client/models/remove_whitespace_from_text_response'
153
160
  require 'cloudmersive-convert-api-client/models/remove_xlsx_worksheet_request'
161
+ require 'cloudmersive-convert-api-client/models/replace_string_regex_request'
162
+ require 'cloudmersive-convert-api-client/models/replace_string_regex_response'
154
163
  require 'cloudmersive-convert-api-client/models/replace_string_request'
164
+ require 'cloudmersive-convert-api-client/models/replace_string_simple_request'
165
+ require 'cloudmersive-convert-api-client/models/replace_string_simple_response'
155
166
  require 'cloudmersive-convert-api-client/models/screenshot_request'
156
167
  require 'cloudmersive-convert-api-client/models/set_form_field_value'
157
168
  require 'cloudmersive-convert-api-client/models/set_pdf_form_fields_request'
@@ -193,6 +204,9 @@ require 'cloudmersive-convert-api-client/models/xml_remove_all_children_with_x_p
193
204
  require 'cloudmersive-convert-api-client/models/xml_remove_with_x_path_result'
194
205
  require 'cloudmersive-convert-api-client/models/xml_replace_with_x_path_result'
195
206
  require 'cloudmersive-convert-api-client/models/xml_set_value_with_x_path_result'
207
+ require 'cloudmersive-convert-api-client/models/zip_directory'
208
+ require 'cloudmersive-convert-api-client/models/zip_extract_response'
209
+ require 'cloudmersive-convert-api-client/models/zip_file'
196
210
 
197
211
  # APIs
198
212
  require 'cloudmersive-convert-api-client/api/compare_document_api'
@@ -208,6 +222,7 @@ require 'cloudmersive-convert-api-client/api/merge_document_api'
208
222
  require 'cloudmersive-convert-api-client/api/split_document_api'
209
223
  require 'cloudmersive-convert-api-client/api/validate_document_api'
210
224
  require 'cloudmersive-convert-api-client/api/viewer_tools_api'
225
+ require 'cloudmersive-convert-api-client/api/zip_archive_api'
211
226
 
212
227
  module CloudmersiveConvertApiClient
213
228
  class << self
@@ -78,7 +78,7 @@ module CloudmersiveConvertApiClient
78
78
 
79
79
  # Convert JSON to XML conversion
80
80
  # Convert a JSON object into XML
81
- # @param json_object
81
+ # @param json_object Input JSON to convert to XML
82
82
  # @param [Hash] opts the optional parameters
83
83
  # @return [String]
84
84
  def convert_data_json_to_xml(json_object, opts = {})
@@ -88,7 +88,7 @@ module CloudmersiveConvertApiClient
88
88
 
89
89
  # Convert JSON to XML conversion
90
90
  # Convert a JSON object into XML
91
- # @param json_object
91
+ # @param json_object Input JSON to convert to XML
92
92
  # @param [Hash] opts the optional parameters
93
93
  # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
94
94
  def convert_data_json_to_xml_with_http_info(json_object, opts = {})
@@ -185,68 +185,13 @@ module CloudmersiveConvertApiClient
185
185
  return data, status_code, headers
186
186
  end
187
187
 
188
- # Convert website URL page to text (txt)
189
- # Converts a website URL page into text (txt); extracts text from HTML
190
- # @param input HTML to Text request parameters
191
- # @param [Hash] opts the optional parameters
192
- # @return [UrlToTextResponse]
193
- def convert_web_html_to_txt(input, opts = {})
194
- data, _status_code, _headers = convert_web_html_to_txt_with_http_info(input, opts)
195
- return data
196
- end
197
-
198
- # Convert website URL page to text (txt)
199
- # Converts a website URL page into text (txt); extracts text from HTML
200
- # @param input HTML to Text request parameters
201
- # @param [Hash] opts the optional parameters
202
- # @return [Array<(UrlToTextResponse, Fixnum, Hash)>] UrlToTextResponse data, response status code and response headers
203
- def convert_web_html_to_txt_with_http_info(input, opts = {})
204
- if @api_client.config.debugging
205
- @api_client.config.logger.debug "Calling API: ConvertWebApi.convert_web_html_to_txt ..."
206
- end
207
- # verify the required parameter 'input' is set
208
- if @api_client.config.client_side_validation && input.nil?
209
- fail ArgumentError, "Missing the required parameter 'input' when calling ConvertWebApi.convert_web_html_to_txt"
210
- end
211
- # resource path
212
- local_var_path = "/convert/web/url/to/txt"
213
-
214
- # query parameters
215
- query_params = {}
216
-
217
- # header parameters
218
- header_params = {}
219
- # HTTP header 'Accept' (if needed)
220
- header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
221
- # HTTP header 'Content-Type'
222
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
223
-
224
- # form parameters
225
- form_params = {}
226
-
227
- # http body (model)
228
- post_body = @api_client.object_to_http_body(input)
229
- auth_names = ['Apikey']
230
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
231
- :header_params => header_params,
232
- :query_params => query_params,
233
- :form_params => form_params,
234
- :body => post_body,
235
- :auth_names => auth_names,
236
- :return_type => 'UrlToTextResponse')
237
- if @api_client.config.debugging
238
- @api_client.config.logger.debug "API called: ConvertWebApi#convert_web_html_to_txt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
239
- end
240
- return data, status_code, headers
241
- end
242
-
243
188
  # Convert HTML string to text (txt)
244
189
  # Converts an HTML string input into text (txt); extracts text from HTML
245
190
  # @param input HTML to Text request parameters
246
191
  # @param [Hash] opts the optional parameters
247
192
  # @return [HtmlToTextResponse]
248
- def convert_web_html_to_txt_0(input, opts = {})
249
- data, _status_code, _headers = convert_web_html_to_txt_0_with_http_info(input, opts)
193
+ def convert_web_html_to_txt(input, opts = {})
194
+ data, _status_code, _headers = convert_web_html_to_txt_with_http_info(input, opts)
250
195
  return data
251
196
  end
252
197
 
@@ -255,13 +200,13 @@ module CloudmersiveConvertApiClient
255
200
  # @param input HTML to Text request parameters
256
201
  # @param [Hash] opts the optional parameters
257
202
  # @return [Array<(HtmlToTextResponse, Fixnum, Hash)>] HtmlToTextResponse data, response status code and response headers
258
- def convert_web_html_to_txt_0_with_http_info(input, opts = {})
203
+ def convert_web_html_to_txt_with_http_info(input, opts = {})
259
204
  if @api_client.config.debugging
260
- @api_client.config.logger.debug "Calling API: ConvertWebApi.convert_web_html_to_txt_0 ..."
205
+ @api_client.config.logger.debug "Calling API: ConvertWebApi.convert_web_html_to_txt ..."
261
206
  end
262
207
  # verify the required parameter 'input' is set
263
208
  if @api_client.config.client_side_validation && input.nil?
264
- fail ArgumentError, "Missing the required parameter 'input' when calling ConvertWebApi.convert_web_html_to_txt_0"
209
+ fail ArgumentError, "Missing the required parameter 'input' when calling ConvertWebApi.convert_web_html_to_txt"
265
210
  end
266
211
  # resource path
267
212
  local_var_path = "/convert/web/html/to/txt"
@@ -290,7 +235,7 @@ module CloudmersiveConvertApiClient
290
235
  :auth_names => auth_names,
291
236
  :return_type => 'HtmlToTextResponse')
292
237
  if @api_client.config.debugging
293
- @api_client.config.logger.debug "API called: ConvertWebApi#convert_web_html_to_txt_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
238
+ @api_client.config.logger.debug "API called: ConvertWebApi#convert_web_html_to_txt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
294
239
  end
295
240
  return data, status_code, headers
296
241
  end
@@ -460,5 +405,60 @@ module CloudmersiveConvertApiClient
460
405
  end
461
406
  return data, status_code, headers
462
407
  end
408
+
409
+ # Convert website URL page to text (txt)
410
+ # Converts a website URL page into text (txt); extracts text from HTML
411
+ # @param input HTML to Text request parameters
412
+ # @param [Hash] opts the optional parameters
413
+ # @return [UrlToTextResponse]
414
+ def convert_web_url_to_txt(input, opts = {})
415
+ data, _status_code, _headers = convert_web_url_to_txt_with_http_info(input, opts)
416
+ return data
417
+ end
418
+
419
+ # Convert website URL page to text (txt)
420
+ # Converts a website URL page into text (txt); extracts text from HTML
421
+ # @param input HTML to Text request parameters
422
+ # @param [Hash] opts the optional parameters
423
+ # @return [Array<(UrlToTextResponse, Fixnum, Hash)>] UrlToTextResponse data, response status code and response headers
424
+ def convert_web_url_to_txt_with_http_info(input, opts = {})
425
+ if @api_client.config.debugging
426
+ @api_client.config.logger.debug "Calling API: ConvertWebApi.convert_web_url_to_txt ..."
427
+ end
428
+ # verify the required parameter 'input' is set
429
+ if @api_client.config.client_side_validation && input.nil?
430
+ fail ArgumentError, "Missing the required parameter 'input' when calling ConvertWebApi.convert_web_url_to_txt"
431
+ end
432
+ # resource path
433
+ local_var_path = "/convert/web/url/to/txt"
434
+
435
+ # query parameters
436
+ query_params = {}
437
+
438
+ # header parameters
439
+ header_params = {}
440
+ # HTTP header 'Accept' (if needed)
441
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
442
+ # HTTP header 'Content-Type'
443
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
444
+
445
+ # form parameters
446
+ form_params = {}
447
+
448
+ # http body (model)
449
+ post_body = @api_client.object_to_http_body(input)
450
+ auth_names = ['Apikey']
451
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
452
+ :header_params => header_params,
453
+ :query_params => query_params,
454
+ :form_params => form_params,
455
+ :body => post_body,
456
+ :auth_names => auth_names,
457
+ :return_type => 'UrlToTextResponse')
458
+ if @api_client.config.debugging
459
+ @api_client.config.logger.debug "API called: ConvertWebApi#convert_web_url_to_txt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
460
+ end
461
+ return data, status_code, headers
462
+ end
463
463
  end
464
464
  end