cloudmersive-convert-api-client 1.3.9 → 1.4.0
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 +5 -4
- data/docs/ConvertDocumentApi.md +59 -4
- data/docs/ConvertImageApi.md +2 -2
- data/docs/ConvertTemplateApi.md +1 -1
- data/docs/EditDocumentApi.md +19 -19
- data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +63 -7
- data/lib/cloudmersive-convert-api-client/api/convert_image_api.rb +2 -2
- data/lib/cloudmersive-convert-api-client/api/convert_template_api.rb +1 -1
- data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +19 -19
- data/lib/cloudmersive-convert-api-client/version.rb +1 -1
- data/spec/api/convert_document_api_spec.rb +15 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0072eb229cee67e4bad972046d4eb217b545a54f3aa9f05a2b7a12201d741414
|
4
|
+
data.tar.gz: 8b2a3bd950bbdc48e5ad2251da4d7ac9255e3f7cfde3619e4d4afb1a599465cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dbd9b1f6f1e638ddd733c3886e5c76998c93eade3574bc61e95de90792f3f7658d6f9bb1f41183a4953620689574bf56e351ed5a79ddf2a64a8c88918d27d8c
|
7
|
+
data.tar.gz: fc2f2956266f8a4f09b68fbe2eaac7f26bf3cffb76729cebb09ed8fb30c76cdc705e47da36d3e23665bf225774f0e96162400f2c40dd07ae7221bc95ca66dedd
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Convert API lets you effortlessly convert file formats and types.
|
|
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.
|
10
|
+
- Package version: 1.4.0
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build cloudmersive-convert-api-client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./cloudmersive-convert-api-client-1.
|
26
|
+
gem install ./cloudmersive-convert-api-client-1.4.0.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-convert-api-client-1.
|
28
|
+
(for development, run `gem install --dev ./cloudmersive-convert-api-client-1.4.0.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-convert-api-client', '~> 1.
|
34
|
+
gem 'cloudmersive-convert-api-client', '~> 1.4.0'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -109,6 +109,7 @@ Class | Method | HTTP request | Description
|
|
109
109
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_ppt_to_pptx**](docs/ConvertDocumentApi.md#convert_document_ppt_to_pptx) | **POST** /convert/ppt/to/pptx | PowerPoint PPT (97-03) to PPTX
|
110
110
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_pptx_to_pdf**](docs/ConvertDocumentApi.md#convert_document_pptx_to_pdf) | **POST** /convert/pptx/to/pdf | PowerPoint PPTX to PDF
|
111
111
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_pptx_to_txt**](docs/ConvertDocumentApi.md#convert_document_pptx_to_txt) | **POST** /convert/pptx/to/txt | PowerPoint PPTX to Text
|
112
|
+
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_xls_to_csv**](docs/ConvertDocumentApi.md#convert_document_xls_to_csv) | **POST** /convert/xls/to/csv | Excel XLS (97-03) to CSV
|
112
113
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_xls_to_pdf**](docs/ConvertDocumentApi.md#convert_document_xls_to_pdf) | **POST** /convert/xls/to/pdf | Excel XLS (97-03) to PDF
|
113
114
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_xls_to_xlsx**](docs/ConvertDocumentApi.md#convert_document_xls_to_xlsx) | **POST** /convert/xls/to/xlsx | Excel XLS (97-03) to XLSX
|
114
115
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_xlsx_to_csv**](docs/ConvertDocumentApi.md#convert_document_xlsx_to_csv) | **POST** /convert/xlsx/to/csv | Excel XLSX to CSV
|
data/docs/ConvertDocumentApi.md
CHANGED
@@ -23,6 +23,7 @@ Method | HTTP request | Description
|
|
23
23
|
[**convert_document_ppt_to_pptx**](ConvertDocumentApi.md#convert_document_ppt_to_pptx) | **POST** /convert/ppt/to/pptx | PowerPoint PPT (97-03) to PPTX
|
24
24
|
[**convert_document_pptx_to_pdf**](ConvertDocumentApi.md#convert_document_pptx_to_pdf) | **POST** /convert/pptx/to/pdf | PowerPoint PPTX to PDF
|
25
25
|
[**convert_document_pptx_to_txt**](ConvertDocumentApi.md#convert_document_pptx_to_txt) | **POST** /convert/pptx/to/txt | PowerPoint PPTX to Text
|
26
|
+
[**convert_document_xls_to_csv**](ConvertDocumentApi.md#convert_document_xls_to_csv) | **POST** /convert/xls/to/csv | Excel XLS (97-03) to CSV
|
26
27
|
[**convert_document_xls_to_pdf**](ConvertDocumentApi.md#convert_document_xls_to_pdf) | **POST** /convert/xls/to/pdf | Excel XLS (97-03) to PDF
|
27
28
|
[**convert_document_xls_to_xlsx**](ConvertDocumentApi.md#convert_document_xls_to_xlsx) | **POST** /convert/xls/to/xlsx | Excel XLS (97-03) to XLSX
|
28
29
|
[**convert_document_xlsx_to_csv**](ConvertDocumentApi.md#convert_document_xlsx_to_csv) | **POST** /convert/xlsx/to/csv | Excel XLSX to CSV
|
@@ -80,7 +81,7 @@ Name | Type | Description | Notes
|
|
80
81
|
### HTTP request headers
|
81
82
|
|
82
83
|
- **Content-Type**: multipart/form-data
|
83
|
-
- **Accept**: application/
|
84
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
84
85
|
|
85
86
|
|
86
87
|
|
@@ -1056,6 +1057,60 @@ Name | Type | Description | Notes
|
|
1056
1057
|
|
1057
1058
|
|
1058
1059
|
|
1060
|
+
# **convert_document_xls_to_csv**
|
1061
|
+
> String convert_document_xls_to_csv(input_file)
|
1062
|
+
|
1063
|
+
Excel XLS (97-03) to CSV
|
1064
|
+
|
1065
|
+
Convert/upgrade Office Excel (97-2003) Workbooks (xls) to standard CSV format.
|
1066
|
+
|
1067
|
+
### Example
|
1068
|
+
```ruby
|
1069
|
+
# load the gem
|
1070
|
+
require 'cloudmersive-convert-api-client'
|
1071
|
+
# setup authorization
|
1072
|
+
CloudmersiveConvertApiClient.configure do |config|
|
1073
|
+
# Configure API key authorization: Apikey
|
1074
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
1075
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1076
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
1077
|
+
end
|
1078
|
+
|
1079
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new
|
1080
|
+
|
1081
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
1082
|
+
|
1083
|
+
|
1084
|
+
begin
|
1085
|
+
#Excel XLS (97-03) to CSV
|
1086
|
+
result = api_instance.convert_document_xls_to_csv(input_file)
|
1087
|
+
p result
|
1088
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
1089
|
+
puts "Exception when calling ConvertDocumentApi->convert_document_xls_to_csv: #{e}"
|
1090
|
+
end
|
1091
|
+
```
|
1092
|
+
|
1093
|
+
### Parameters
|
1094
|
+
|
1095
|
+
Name | Type | Description | Notes
|
1096
|
+
------------- | ------------- | ------------- | -------------
|
1097
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
1098
|
+
|
1099
|
+
### Return type
|
1100
|
+
|
1101
|
+
**String**
|
1102
|
+
|
1103
|
+
### Authorization
|
1104
|
+
|
1105
|
+
[Apikey](../README.md#Apikey)
|
1106
|
+
|
1107
|
+
### HTTP request headers
|
1108
|
+
|
1109
|
+
- **Content-Type**: multipart/form-data
|
1110
|
+
- **Accept**: application/octet-stream
|
1111
|
+
|
1112
|
+
|
1113
|
+
|
1059
1114
|
# **convert_document_xls_to_pdf**
|
1060
1115
|
> String convert_document_xls_to_pdf(input_file)
|
1061
1116
|
|
@@ -1169,7 +1224,7 @@ Name | Type | Description | Notes
|
|
1169
1224
|
|
1170
1225
|
Excel XLSX to CSV
|
1171
1226
|
|
1172
|
-
Convert Office Excel Workbooks (
|
1227
|
+
Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format. Supports both XLSX and XLSB file Excel formats.
|
1173
1228
|
|
1174
1229
|
### Example
|
1175
1230
|
```ruby
|
@@ -1223,7 +1278,7 @@ Name | Type | Description | Notes
|
|
1223
1278
|
|
1224
1279
|
Excel XLSX to PDF
|
1225
1280
|
|
1226
|
-
Convert Office Excel Workbooks (
|
1281
|
+
Convert Office Excel Workbooks (XLSX) to standard PDF. Converts all worksheets in the workbook to PDF. Supports both XLSX and XLSB Excel file formats.
|
1227
1282
|
|
1228
1283
|
### Example
|
1229
1284
|
```ruby
|
@@ -1277,7 +1332,7 @@ Name | Type | Description | Notes
|
|
1277
1332
|
|
1278
1333
|
Excel XLSX to Text
|
1279
1334
|
|
1280
|
-
Convert Office Excel Workbooks (
|
1335
|
+
Convert Office Excel Workbooks (XLSX) to standard Text. Converts all worksheets in the workbook to Text. Supports both XLSX and XLSB file formats.
|
1281
1336
|
|
1282
1337
|
### Example
|
1283
1338
|
```ruby
|
data/docs/ConvertImageApi.md
CHANGED
@@ -120,7 +120,7 @@ Name | Type | Description | Notes
|
|
120
120
|
### HTTP request headers
|
121
121
|
|
122
122
|
- **Content-Type**: multipart/form-data
|
123
|
-
- **Accept**: application/
|
123
|
+
- **Accept**: application/octet-stream
|
124
124
|
|
125
125
|
|
126
126
|
|
@@ -177,7 +177,7 @@ Name | Type | Description | Notes
|
|
177
177
|
### HTTP request headers
|
178
178
|
|
179
179
|
- **Content-Type**: multipart/form-data
|
180
|
-
- **Accept**: application/
|
180
|
+
- **Accept**: application/octet-stream
|
181
181
|
|
182
182
|
|
183
183
|
|
data/docs/ConvertTemplateApi.md
CHANGED
data/docs/EditDocumentApi.md
CHANGED
@@ -79,7 +79,7 @@ Name | Type | Description | Notes
|
|
79
79
|
### HTTP request headers
|
80
80
|
|
81
81
|
- **Content-Type**: multipart/form-data
|
82
|
-
- **Accept**: application/
|
82
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
83
83
|
|
84
84
|
|
85
85
|
|
@@ -133,7 +133,7 @@ Name | Type | Description | Notes
|
|
133
133
|
### HTTP request headers
|
134
134
|
|
135
135
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
136
|
-
- **Accept**: application/
|
136
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
137
137
|
|
138
138
|
|
139
139
|
|
@@ -187,7 +187,7 @@ Name | Type | Description | Notes
|
|
187
187
|
### HTTP request headers
|
188
188
|
|
189
189
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
190
|
-
- **Accept**: application/
|
190
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
191
191
|
|
192
192
|
|
193
193
|
|
@@ -241,7 +241,7 @@ Name | Type | Description | Notes
|
|
241
241
|
### HTTP request headers
|
242
242
|
|
243
243
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
244
|
-
- **Accept**: application/
|
244
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
245
245
|
|
246
246
|
|
247
247
|
|
@@ -295,7 +295,7 @@ Name | Type | Description | Notes
|
|
295
295
|
### HTTP request headers
|
296
296
|
|
297
297
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
298
|
-
- **Accept**: application/
|
298
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
299
299
|
|
300
300
|
|
301
301
|
|
@@ -349,7 +349,7 @@ Name | Type | Description | Notes
|
|
349
349
|
### HTTP request headers
|
350
350
|
|
351
351
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
352
|
-
- **Accept**: application/
|
352
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
353
353
|
|
354
354
|
|
355
355
|
|
@@ -457,7 +457,7 @@ Name | Type | Description | Notes
|
|
457
457
|
### HTTP request headers
|
458
458
|
|
459
459
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
460
|
-
- **Accept**: application/
|
460
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
461
461
|
|
462
462
|
|
463
463
|
|
@@ -511,7 +511,7 @@ Name | Type | Description | Notes
|
|
511
511
|
### HTTP request headers
|
512
512
|
|
513
513
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
514
|
-
- **Accept**: application/
|
514
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
515
515
|
|
516
516
|
|
517
517
|
|
@@ -565,7 +565,7 @@ Name | Type | Description | Notes
|
|
565
565
|
### HTTP request headers
|
566
566
|
|
567
567
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
568
|
-
- **Accept**: application/
|
568
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
569
569
|
|
570
570
|
|
571
571
|
|
@@ -619,7 +619,7 @@ Name | Type | Description | Notes
|
|
619
619
|
### HTTP request headers
|
620
620
|
|
621
621
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
622
|
-
- **Accept**: application/
|
622
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
623
623
|
|
624
624
|
|
625
625
|
|
@@ -673,7 +673,7 @@ Name | Type | Description | Notes
|
|
673
673
|
### HTTP request headers
|
674
674
|
|
675
675
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
676
|
-
- **Accept**: application/
|
676
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
677
677
|
|
678
678
|
|
679
679
|
|
@@ -781,7 +781,7 @@ Name | Type | Description | Notes
|
|
781
781
|
### HTTP request headers
|
782
782
|
|
783
783
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
784
|
-
- **Accept**: application/
|
784
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
785
785
|
|
786
786
|
|
787
787
|
|
@@ -835,7 +835,7 @@ Name | Type | Description | Notes
|
|
835
835
|
### HTTP request headers
|
836
836
|
|
837
837
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
838
|
-
- **Accept**: application/
|
838
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
839
839
|
|
840
840
|
|
841
841
|
|
@@ -997,7 +997,7 @@ Name | Type | Description | Notes
|
|
997
997
|
### HTTP request headers
|
998
998
|
|
999
999
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
1000
|
-
- **Accept**: application/
|
1000
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
1001
1001
|
|
1002
1002
|
|
1003
1003
|
|
@@ -1051,7 +1051,7 @@ Name | Type | Description | Notes
|
|
1051
1051
|
### HTTP request headers
|
1052
1052
|
|
1053
1053
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
1054
|
-
- **Accept**: application/
|
1054
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
1055
1055
|
|
1056
1056
|
|
1057
1057
|
|
@@ -1105,7 +1105,7 @@ Name | Type | Description | Notes
|
|
1105
1105
|
### HTTP request headers
|
1106
1106
|
|
1107
1107
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
1108
|
-
- **Accept**: application/
|
1108
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
1109
1109
|
|
1110
1110
|
|
1111
1111
|
|
@@ -1159,7 +1159,7 @@ Name | Type | Description | Notes
|
|
1159
1159
|
### HTTP request headers
|
1160
1160
|
|
1161
1161
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
1162
|
-
- **Accept**: application/
|
1162
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
1163
1163
|
|
1164
1164
|
|
1165
1165
|
|
@@ -1213,7 +1213,7 @@ Name | Type | Description | Notes
|
|
1213
1213
|
### HTTP request headers
|
1214
1214
|
|
1215
1215
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
1216
|
-
- **Accept**: application/
|
1216
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
1217
1217
|
|
1218
1218
|
|
1219
1219
|
|
@@ -1267,7 +1267,7 @@ Name | Type | Description | Notes
|
|
1267
1267
|
### HTTP request headers
|
1268
1268
|
|
1269
1269
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
1270
|
-
- **Accept**: application/
|
1270
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
1271
1271
|
|
1272
1272
|
|
1273
1273
|
|
@@ -52,7 +52,7 @@ module CloudmersiveConvertApiClient
|
|
52
52
|
# header parameters
|
53
53
|
header_params = {}
|
54
54
|
# HTTP header 'Accept' (if needed)
|
55
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
56
56
|
# HTTP header 'Content-Type'
|
57
57
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
58
58
|
|
@@ -1084,6 +1084,62 @@ module CloudmersiveConvertApiClient
|
|
1084
1084
|
return data, status_code, headers
|
1085
1085
|
end
|
1086
1086
|
|
1087
|
+
# Excel XLS (97-03) to CSV
|
1088
|
+
# Convert/upgrade Office Excel (97-2003) Workbooks (xls) to standard CSV format.
|
1089
|
+
# @param input_file Input file to perform the operation on.
|
1090
|
+
# @param [Hash] opts the optional parameters
|
1091
|
+
# @return [String]
|
1092
|
+
def convert_document_xls_to_csv(input_file, opts = {})
|
1093
|
+
data, _status_code, _headers = convert_document_xls_to_csv_with_http_info(input_file, opts)
|
1094
|
+
return data
|
1095
|
+
end
|
1096
|
+
|
1097
|
+
# Excel XLS (97-03) to CSV
|
1098
|
+
# Convert/upgrade Office Excel (97-2003) Workbooks (xls) to standard CSV format.
|
1099
|
+
# @param input_file Input file to perform the operation on.
|
1100
|
+
# @param [Hash] opts the optional parameters
|
1101
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
1102
|
+
def convert_document_xls_to_csv_with_http_info(input_file, opts = {})
|
1103
|
+
if @api_client.config.debugging
|
1104
|
+
@api_client.config.logger.debug "Calling API: ConvertDocumentApi.convert_document_xls_to_csv ..."
|
1105
|
+
end
|
1106
|
+
# verify the required parameter 'input_file' is set
|
1107
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
1108
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_xls_to_csv"
|
1109
|
+
end
|
1110
|
+
# resource path
|
1111
|
+
local_var_path = "/convert/xls/to/csv"
|
1112
|
+
|
1113
|
+
# query parameters
|
1114
|
+
query_params = {}
|
1115
|
+
|
1116
|
+
# header parameters
|
1117
|
+
header_params = {}
|
1118
|
+
# HTTP header 'Accept' (if needed)
|
1119
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
1120
|
+
# HTTP header 'Content-Type'
|
1121
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
1122
|
+
|
1123
|
+
# form parameters
|
1124
|
+
form_params = {}
|
1125
|
+
form_params["inputFile"] = input_file
|
1126
|
+
|
1127
|
+
# http body (model)
|
1128
|
+
post_body = nil
|
1129
|
+
auth_names = ['Apikey']
|
1130
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1131
|
+
:header_params => header_params,
|
1132
|
+
:query_params => query_params,
|
1133
|
+
:form_params => form_params,
|
1134
|
+
:body => post_body,
|
1135
|
+
:auth_names => auth_names,
|
1136
|
+
:return_type => 'String')
|
1137
|
+
if @api_client.config.debugging
|
1138
|
+
@api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_xls_to_csv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1139
|
+
end
|
1140
|
+
return data, status_code, headers
|
1141
|
+
end
|
1142
|
+
|
1087
1143
|
# Excel XLS (97-03) to PDF
|
1088
1144
|
# Convert Office Excel (97-2003) Workbooks (xls) to standard PDF. Converts all worksheets in the workbook to PDF.
|
1089
1145
|
# @param input_file Input file to perform the operation on.
|
@@ -1197,7 +1253,7 @@ module CloudmersiveConvertApiClient
|
|
1197
1253
|
end
|
1198
1254
|
|
1199
1255
|
# Excel XLSX to CSV
|
1200
|
-
# Convert Office Excel Workbooks (
|
1256
|
+
# Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format. Supports both XLSX and XLSB file Excel formats.
|
1201
1257
|
# @param input_file Input file to perform the operation on.
|
1202
1258
|
# @param [Hash] opts the optional parameters
|
1203
1259
|
# @return [String]
|
@@ -1207,7 +1263,7 @@ module CloudmersiveConvertApiClient
|
|
1207
1263
|
end
|
1208
1264
|
|
1209
1265
|
# Excel XLSX to CSV
|
1210
|
-
# Convert Office Excel Workbooks (
|
1266
|
+
# Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format. Supports both XLSX and XLSB file Excel formats.
|
1211
1267
|
# @param input_file Input file to perform the operation on.
|
1212
1268
|
# @param [Hash] opts the optional parameters
|
1213
1269
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
@@ -1253,7 +1309,7 @@ module CloudmersiveConvertApiClient
|
|
1253
1309
|
end
|
1254
1310
|
|
1255
1311
|
# Excel XLSX to PDF
|
1256
|
-
# Convert Office Excel Workbooks (
|
1312
|
+
# Convert Office Excel Workbooks (XLSX) to standard PDF. Converts all worksheets in the workbook to PDF. Supports both XLSX and XLSB Excel file formats.
|
1257
1313
|
# @param input_file Input file to perform the operation on.
|
1258
1314
|
# @param [Hash] opts the optional parameters
|
1259
1315
|
# @return [String]
|
@@ -1263,7 +1319,7 @@ module CloudmersiveConvertApiClient
|
|
1263
1319
|
end
|
1264
1320
|
|
1265
1321
|
# Excel XLSX to PDF
|
1266
|
-
# Convert Office Excel Workbooks (
|
1322
|
+
# Convert Office Excel Workbooks (XLSX) to standard PDF. Converts all worksheets in the workbook to PDF. Supports both XLSX and XLSB Excel file formats.
|
1267
1323
|
# @param input_file Input file to perform the operation on.
|
1268
1324
|
# @param [Hash] opts the optional parameters
|
1269
1325
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
@@ -1309,7 +1365,7 @@ module CloudmersiveConvertApiClient
|
|
1309
1365
|
end
|
1310
1366
|
|
1311
1367
|
# Excel XLSX to Text
|
1312
|
-
# Convert Office Excel Workbooks (
|
1368
|
+
# Convert Office Excel Workbooks (XLSX) to standard Text. Converts all worksheets in the workbook to Text. Supports both XLSX and XLSB file formats.
|
1313
1369
|
# @param input_file Input file to perform the operation on.
|
1314
1370
|
# @param [Hash] opts the optional parameters
|
1315
1371
|
# @return [TextConversionResult]
|
@@ -1319,7 +1375,7 @@ module CloudmersiveConvertApiClient
|
|
1319
1375
|
end
|
1320
1376
|
|
1321
1377
|
# Excel XLSX to Text
|
1322
|
-
# Convert Office Excel Workbooks (
|
1378
|
+
# Convert Office Excel Workbooks (XLSX) to standard Text. Converts all worksheets in the workbook to Text. Supports both XLSX and XLSB file formats.
|
1323
1379
|
# @param input_file Input file to perform the operation on.
|
1324
1380
|
# @param [Hash] opts the optional parameters
|
1325
1381
|
# @return [Array<(TextConversionResult, Fixnum, Hash)>] TextConversionResult data, response status code and response headers
|
@@ -120,7 +120,7 @@ module CloudmersiveConvertApiClient
|
|
120
120
|
# header parameters
|
121
121
|
header_params = {}
|
122
122
|
# HTTP header 'Accept' (if needed)
|
123
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
123
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
124
124
|
# HTTP header 'Content-Type'
|
125
125
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
126
126
|
|
@@ -182,7 +182,7 @@ module CloudmersiveConvertApiClient
|
|
182
182
|
# header parameters
|
183
183
|
header_params = {}
|
184
184
|
# HTTP header 'Accept' (if needed)
|
185
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
186
186
|
# HTTP header 'Content-Type'
|
187
187
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
188
188
|
|
@@ -54,7 +54,7 @@ module CloudmersiveConvertApiClient
|
|
54
54
|
# header parameters
|
55
55
|
header_params = {}
|
56
56
|
# HTTP header 'Accept' (if needed)
|
57
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
57
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
58
58
|
# HTTP header 'Content-Type'
|
59
59
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
60
60
|
header_params[:'templateDefinition'] = opts[:'template_definition'] if !opts[:'template_definition'].nil?
|
@@ -52,7 +52,7 @@ module CloudmersiveConvertApiClient
|
|
52
52
|
# header parameters
|
53
53
|
header_params = {}
|
54
54
|
# HTTP header 'Accept' (if needed)
|
55
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
56
56
|
# HTTP header 'Content-Type'
|
57
57
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
58
58
|
|
@@ -108,7 +108,7 @@ module CloudmersiveConvertApiClient
|
|
108
108
|
# header parameters
|
109
109
|
header_params = {}
|
110
110
|
# HTTP header 'Accept' (if needed)
|
111
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
111
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
112
112
|
# HTTP header 'Content-Type'
|
113
113
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
114
114
|
|
@@ -163,7 +163,7 @@ module CloudmersiveConvertApiClient
|
|
163
163
|
# header parameters
|
164
164
|
header_params = {}
|
165
165
|
# HTTP header 'Accept' (if needed)
|
166
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
166
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
167
167
|
# HTTP header 'Content-Type'
|
168
168
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
169
169
|
|
@@ -218,7 +218,7 @@ module CloudmersiveConvertApiClient
|
|
218
218
|
# header parameters
|
219
219
|
header_params = {}
|
220
220
|
# HTTP header 'Accept' (if needed)
|
221
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
221
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
222
222
|
# HTTP header 'Content-Type'
|
223
223
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
224
224
|
|
@@ -273,7 +273,7 @@ module CloudmersiveConvertApiClient
|
|
273
273
|
# header parameters
|
274
274
|
header_params = {}
|
275
275
|
# HTTP header 'Accept' (if needed)
|
276
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
276
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
277
277
|
# HTTP header 'Content-Type'
|
278
278
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
279
279
|
|
@@ -328,7 +328,7 @@ module CloudmersiveConvertApiClient
|
|
328
328
|
# header parameters
|
329
329
|
header_params = {}
|
330
330
|
# HTTP header 'Accept' (if needed)
|
331
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
331
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
332
332
|
# HTTP header 'Content-Type'
|
333
333
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
334
334
|
|
@@ -438,7 +438,7 @@ module CloudmersiveConvertApiClient
|
|
438
438
|
# header parameters
|
439
439
|
header_params = {}
|
440
440
|
# HTTP header 'Accept' (if needed)
|
441
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
441
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
442
442
|
# HTTP header 'Content-Type'
|
443
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
444
|
|
@@ -493,7 +493,7 @@ module CloudmersiveConvertApiClient
|
|
493
493
|
# header parameters
|
494
494
|
header_params = {}
|
495
495
|
# HTTP header 'Accept' (if needed)
|
496
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
496
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
497
497
|
# HTTP header 'Content-Type'
|
498
498
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
499
499
|
|
@@ -548,7 +548,7 @@ module CloudmersiveConvertApiClient
|
|
548
548
|
# header parameters
|
549
549
|
header_params = {}
|
550
550
|
# HTTP header 'Accept' (if needed)
|
551
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
551
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
552
552
|
# HTTP header 'Content-Type'
|
553
553
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
554
554
|
|
@@ -603,7 +603,7 @@ module CloudmersiveConvertApiClient
|
|
603
603
|
# header parameters
|
604
604
|
header_params = {}
|
605
605
|
# HTTP header 'Accept' (if needed)
|
606
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
606
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
607
607
|
# HTTP header 'Content-Type'
|
608
608
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
609
609
|
|
@@ -658,7 +658,7 @@ module CloudmersiveConvertApiClient
|
|
658
658
|
# header parameters
|
659
659
|
header_params = {}
|
660
660
|
# HTTP header 'Accept' (if needed)
|
661
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
661
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
662
662
|
# HTTP header 'Content-Type'
|
663
663
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
664
664
|
|
@@ -768,7 +768,7 @@ module CloudmersiveConvertApiClient
|
|
768
768
|
# header parameters
|
769
769
|
header_params = {}
|
770
770
|
# HTTP header 'Accept' (if needed)
|
771
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
771
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
772
772
|
# HTTP header 'Content-Type'
|
773
773
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
774
774
|
|
@@ -823,7 +823,7 @@ module CloudmersiveConvertApiClient
|
|
823
823
|
# header parameters
|
824
824
|
header_params = {}
|
825
825
|
# HTTP header 'Accept' (if needed)
|
826
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
826
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
827
827
|
# HTTP header 'Content-Type'
|
828
828
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
829
829
|
|
@@ -988,7 +988,7 @@ module CloudmersiveConvertApiClient
|
|
988
988
|
# header parameters
|
989
989
|
header_params = {}
|
990
990
|
# HTTP header 'Accept' (if needed)
|
991
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
991
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
992
992
|
# HTTP header 'Content-Type'
|
993
993
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
994
994
|
|
@@ -1043,7 +1043,7 @@ module CloudmersiveConvertApiClient
|
|
1043
1043
|
# header parameters
|
1044
1044
|
header_params = {}
|
1045
1045
|
# HTTP header 'Accept' (if needed)
|
1046
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
1046
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
1047
1047
|
# HTTP header 'Content-Type'
|
1048
1048
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
1049
1049
|
|
@@ -1098,7 +1098,7 @@ module CloudmersiveConvertApiClient
|
|
1098
1098
|
# header parameters
|
1099
1099
|
header_params = {}
|
1100
1100
|
# HTTP header 'Accept' (if needed)
|
1101
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
1101
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
1102
1102
|
# HTTP header 'Content-Type'
|
1103
1103
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
1104
1104
|
|
@@ -1153,7 +1153,7 @@ module CloudmersiveConvertApiClient
|
|
1153
1153
|
# header parameters
|
1154
1154
|
header_params = {}
|
1155
1155
|
# HTTP header 'Accept' (if needed)
|
1156
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
1156
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
1157
1157
|
# HTTP header 'Content-Type'
|
1158
1158
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
1159
1159
|
|
@@ -1208,7 +1208,7 @@ module CloudmersiveConvertApiClient
|
|
1208
1208
|
# header parameters
|
1209
1209
|
header_params = {}
|
1210
1210
|
# HTTP header 'Accept' (if needed)
|
1211
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
1211
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
1212
1212
|
# HTTP header 'Content-Type'
|
1213
1213
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
1214
1214
|
|
@@ -1263,7 +1263,7 @@ module CloudmersiveConvertApiClient
|
|
1263
1263
|
# header parameters
|
1264
1264
|
header_params = {}
|
1265
1265
|
# HTTP header 'Accept' (if needed)
|
1266
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
1266
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
1267
1267
|
# HTTP header 'Content-Type'
|
1268
1268
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
1269
1269
|
|
@@ -260,6 +260,18 @@ describe 'ConvertDocumentApi' do
|
|
260
260
|
end
|
261
261
|
end
|
262
262
|
|
263
|
+
# unit tests for convert_document_xls_to_csv
|
264
|
+
# Excel XLS (97-03) to CSV
|
265
|
+
# Convert/upgrade Office Excel (97-2003) Workbooks (xls) to standard CSV format.
|
266
|
+
# @param input_file Input file to perform the operation on.
|
267
|
+
# @param [Hash] opts the optional parameters
|
268
|
+
# @return [String]
|
269
|
+
describe 'convert_document_xls_to_csv test' do
|
270
|
+
it "should work" do
|
271
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
263
275
|
# unit tests for convert_document_xls_to_pdf
|
264
276
|
# Excel XLS (97-03) to PDF
|
265
277
|
# Convert Office Excel (97-2003) Workbooks (xls) to standard PDF. Converts all worksheets in the workbook to PDF.
|
@@ -286,7 +298,7 @@ describe 'ConvertDocumentApi' do
|
|
286
298
|
|
287
299
|
# unit tests for convert_document_xlsx_to_csv
|
288
300
|
# Excel XLSX to CSV
|
289
|
-
# Convert Office Excel Workbooks (
|
301
|
+
# Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format. Supports both XLSX and XLSB file Excel formats.
|
290
302
|
# @param input_file Input file to perform the operation on.
|
291
303
|
# @param [Hash] opts the optional parameters
|
292
304
|
# @return [String]
|
@@ -298,7 +310,7 @@ describe 'ConvertDocumentApi' do
|
|
298
310
|
|
299
311
|
# unit tests for convert_document_xlsx_to_pdf
|
300
312
|
# Excel XLSX to PDF
|
301
|
-
# Convert Office Excel Workbooks (
|
313
|
+
# Convert Office Excel Workbooks (XLSX) to standard PDF. Converts all worksheets in the workbook to PDF. Supports both XLSX and XLSB Excel file formats.
|
302
314
|
# @param input_file Input file to perform the operation on.
|
303
315
|
# @param [Hash] opts the optional parameters
|
304
316
|
# @return [String]
|
@@ -310,7 +322,7 @@ describe 'ConvertDocumentApi' do
|
|
310
322
|
|
311
323
|
# unit tests for convert_document_xlsx_to_txt
|
312
324
|
# Excel XLSX to Text
|
313
|
-
# Convert Office Excel Workbooks (
|
325
|
+
# Convert Office Excel Workbooks (XLSX) to standard Text. Converts all worksheets in the workbook to Text. Supports both XLSX and XLSB file formats.
|
314
326
|
# @param input_file Input file to perform the operation on.
|
315
327
|
# @param [Hash] opts the optional parameters
|
316
328
|
# @return [TextConversionResult]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudmersive-convert-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloudmersive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|