aspose_cells_cloud 22.9 → 22.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/aspose_cells_cloud/api/cells_api.rb +390 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/spec/api/cells_convert_spec.rb +31 -0
- 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: 654156e1376d6e60a5d36de06c41a82c2f828962534002735cf11d8f4981ac29
|
4
|
+
data.tar.gz: 00c0f978a2b828c76d50a1b6a59480058cc84a8165b45faeb3fea40735c4b58a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c9a8eb23e8abb4d6f649459ac7df239cc2d972091da4d907dda62aa52a6e5dce832327d78bfe5b7c231cc6679816c6f537511d0a860c33ac63c8cb31bbe85cf
|
7
|
+
data.tar.gz: 50f6471eaa77fbb2bfb6d0e8e79d22afc075a4e77c1a38649c7ef4835e79520a1a8fe6168cd66df5a636558a5f0d16737a26736495bbf6a6596d8dbc1a5798ff
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Gem](https://img.shields.io/gem/v/aspose_cells_cloud) ![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/22.
|
1
|
+
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Gem](https://img.shields.io/gem/v/aspose_cells_cloud) ![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/22.11)
|
2
2
|
|
3
3
|
|
4
4
|
# Ruby SDK for Spreadsheet Processing in the Cloud
|
@@ -22,11 +22,11 @@ Ruby Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate Mic
|
|
22
22
|
- [Convert Excel files to popular formats](https://docs.aspose.cloud/cells/convert-excel-workbook-to-different-file-formats/).
|
23
23
|
|
24
24
|
|
25
|
-
## Feature & Enhancements in Version 22.
|
25
|
+
## Feature & Enhancements in Version 22.11
|
26
26
|
|
27
|
-
- Add api for converting workbook to
|
28
|
-
- Add api for converting workbook to
|
29
|
-
- Add api for converting workbook to
|
27
|
+
- Add api for converting workbook to json.
|
28
|
+
- Add api for converting workbook to sql.
|
29
|
+
- Add api for converting workbook to csv.
|
30
30
|
|
31
31
|
## Read & Write Spreadsheet Formats
|
32
32
|
|
@@ -20939,6 +20939,396 @@ module AsposeCellsCloud
|
|
20939
20939
|
return data, status_code, headers
|
20940
20940
|
end
|
20941
20941
|
|
20942
|
+
#
|
20943
|
+
#
|
20944
|
+
# @param file File to upload
|
20945
|
+
# @param [Hash] opts the optional parameters
|
20946
|
+
# @option opts [String] :password
|
20947
|
+
# @option opts [BOOLEAN] :check_excel_restriction (default to true)
|
20948
|
+
# @return [FileInfo]
|
20949
|
+
def post_convert_workbook_to_pptx(file, opts = {})
|
20950
|
+
data, _status_code, _headers = post_convert_workbook_to_pptx_with_http_info(file, opts)
|
20951
|
+
return data
|
20952
|
+
end
|
20953
|
+
|
20954
|
+
#
|
20955
|
+
#
|
20956
|
+
# @param file File to upload
|
20957
|
+
# @param [Hash] opts the optional parameters
|
20958
|
+
# @option opts [String] :password
|
20959
|
+
# @option opts [BOOLEAN] :check_excel_restriction
|
20960
|
+
# @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
|
20961
|
+
def post_convert_workbook_to_pptx_with_http_info(file, opts = {})
|
20962
|
+
if @api_client.config.debugging
|
20963
|
+
@api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_pptx ..."
|
20964
|
+
end
|
20965
|
+
@api_client.request_token_if_needed
|
20966
|
+
# verify the required parameter 'file' is set
|
20967
|
+
if @api_client.config.client_side_validation && file.nil?
|
20968
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_pptx"
|
20969
|
+
end
|
20970
|
+
# resource path
|
20971
|
+
local_var_path = "/cells/convert/pptx"
|
20972
|
+
|
20973
|
+
# query parameters
|
20974
|
+
query_params = {}
|
20975
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
20976
|
+
query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
|
20977
|
+
|
20978
|
+
# header parameters
|
20979
|
+
header_params = {}
|
20980
|
+
# HTTP header 'Accept' (if needed)
|
20981
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
20982
|
+
# HTTP header 'Content-Type'
|
20983
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
20984
|
+
|
20985
|
+
# form parameters
|
20986
|
+
form_params = {}
|
20987
|
+
|
20988
|
+
# http body (model)
|
20989
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
20990
|
+
post_body =''
|
20991
|
+
form_params['file'] = file
|
20992
|
+
#auth_names = []
|
20993
|
+
auth_names = ['JWT']
|
20994
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
20995
|
+
:header_params => header_params,
|
20996
|
+
:query_params => query_params,
|
20997
|
+
:form_params => form_params,
|
20998
|
+
:body => post_body,
|
20999
|
+
:auth_names => auth_names,
|
21000
|
+
:return_type => 'FileInfo')
|
21001
|
+
if @api_client.config.debugging
|
21002
|
+
@api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_pptx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
21003
|
+
end
|
21004
|
+
return data, status_code, headers
|
21005
|
+
end
|
21006
|
+
|
21007
|
+
#
|
21008
|
+
#
|
21009
|
+
# @param file File to upload
|
21010
|
+
# @param [Hash] opts the optional parameters
|
21011
|
+
# @option opts [String] :password
|
21012
|
+
# @option opts [BOOLEAN] :check_excel_restriction (default to true)
|
21013
|
+
# @return [FileInfo]
|
21014
|
+
def post_convert_workbook_to_html(file, opts = {})
|
21015
|
+
data, _status_code, _headers = post_convert_workbook_to_html_with_http_info(file, opts)
|
21016
|
+
return data
|
21017
|
+
end
|
21018
|
+
|
21019
|
+
#
|
21020
|
+
#
|
21021
|
+
# @param file File to upload
|
21022
|
+
# @param [Hash] opts the optional parameters
|
21023
|
+
# @option opts [String] :password
|
21024
|
+
# @option opts [BOOLEAN] :check_excel_restriction
|
21025
|
+
# @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
|
21026
|
+
def post_convert_workbook_to_html_with_http_info(file, opts = {})
|
21027
|
+
if @api_client.config.debugging
|
21028
|
+
@api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_html ..."
|
21029
|
+
end
|
21030
|
+
@api_client.request_token_if_needed
|
21031
|
+
# verify the required parameter 'file' is set
|
21032
|
+
if @api_client.config.client_side_validation && file.nil?
|
21033
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_html"
|
21034
|
+
end
|
21035
|
+
# resource path
|
21036
|
+
local_var_path = "/cells/convert/html"
|
21037
|
+
|
21038
|
+
# query parameters
|
21039
|
+
query_params = {}
|
21040
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
21041
|
+
query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
|
21042
|
+
|
21043
|
+
# header parameters
|
21044
|
+
header_params = {}
|
21045
|
+
# HTTP header 'Accept' (if needed)
|
21046
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
21047
|
+
# HTTP header 'Content-Type'
|
21048
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
21049
|
+
|
21050
|
+
# form parameters
|
21051
|
+
form_params = {}
|
21052
|
+
|
21053
|
+
# http body (model)
|
21054
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
21055
|
+
post_body =''
|
21056
|
+
form_params['file'] = file
|
21057
|
+
#auth_names = []
|
21058
|
+
auth_names = ['JWT']
|
21059
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
21060
|
+
:header_params => header_params,
|
21061
|
+
:query_params => query_params,
|
21062
|
+
:form_params => form_params,
|
21063
|
+
:body => post_body,
|
21064
|
+
:auth_names => auth_names,
|
21065
|
+
:return_type => 'FileInfo')
|
21066
|
+
if @api_client.config.debugging
|
21067
|
+
@api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
21068
|
+
end
|
21069
|
+
return data, status_code, headers
|
21070
|
+
end
|
21071
|
+
|
21072
|
+
#
|
21073
|
+
#
|
21074
|
+
# @param file File to upload
|
21075
|
+
# @param [Hash] opts the optional parameters
|
21076
|
+
# @option opts [String] :password
|
21077
|
+
# @option opts [BOOLEAN] :check_excel_restriction (default to true)
|
21078
|
+
# @return [FileInfo]
|
21079
|
+
def post_convert_workbook_to_markdown(file, opts = {})
|
21080
|
+
data, _status_code, _headers = post_convert_workbook_to_markdown_with_http_info(file, opts)
|
21081
|
+
return data
|
21082
|
+
end
|
21083
|
+
|
21084
|
+
#
|
21085
|
+
#
|
21086
|
+
# @param file File to upload
|
21087
|
+
# @param [Hash] opts the optional parameters
|
21088
|
+
# @option opts [String] :password
|
21089
|
+
# @option opts [BOOLEAN] :check_excel_restriction
|
21090
|
+
# @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
|
21091
|
+
def post_convert_workbook_to_markdown_with_http_info(file, opts = {})
|
21092
|
+
if @api_client.config.debugging
|
21093
|
+
@api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_markdown ..."
|
21094
|
+
end
|
21095
|
+
@api_client.request_token_if_needed
|
21096
|
+
# verify the required parameter 'file' is set
|
21097
|
+
if @api_client.config.client_side_validation && file.nil?
|
21098
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_markdown"
|
21099
|
+
end
|
21100
|
+
# resource path
|
21101
|
+
local_var_path = "/cells/convert/markdown"
|
21102
|
+
|
21103
|
+
# query parameters
|
21104
|
+
query_params = {}
|
21105
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
21106
|
+
query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
|
21107
|
+
|
21108
|
+
# header parameters
|
21109
|
+
header_params = {}
|
21110
|
+
# HTTP header 'Accept' (if needed)
|
21111
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
21112
|
+
# HTTP header 'Content-Type'
|
21113
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
21114
|
+
|
21115
|
+
# form parameters
|
21116
|
+
form_params = {}
|
21117
|
+
|
21118
|
+
# http body (model)
|
21119
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
21120
|
+
post_body =''
|
21121
|
+
form_params['file'] = file
|
21122
|
+
#auth_names = []
|
21123
|
+
auth_names = ['JWT']
|
21124
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
21125
|
+
:header_params => header_params,
|
21126
|
+
:query_params => query_params,
|
21127
|
+
:form_params => form_params,
|
21128
|
+
:body => post_body,
|
21129
|
+
:auth_names => auth_names,
|
21130
|
+
:return_type => 'FileInfo')
|
21131
|
+
if @api_client.config.debugging
|
21132
|
+
@api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_markdown\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
21133
|
+
end
|
21134
|
+
return data, status_code, headers
|
21135
|
+
end
|
21136
|
+
|
21137
|
+
|
21138
|
+
#
|
21139
|
+
#
|
21140
|
+
# @param file File to upload
|
21141
|
+
# @param [Hash] opts the optional parameters
|
21142
|
+
# @option opts [String] :password
|
21143
|
+
# @option opts [BOOLEAN] :check_excel_restriction (default to true)
|
21144
|
+
# @return [FileInfo]
|
21145
|
+
def post_convert_workbook_to_json(file, opts = {})
|
21146
|
+
data, _status_code, _headers = post_convert_workbook_to_json_with_http_info(file, opts)
|
21147
|
+
return data
|
21148
|
+
end
|
21149
|
+
|
21150
|
+
#
|
21151
|
+
#
|
21152
|
+
# @param file File to upload
|
21153
|
+
# @param [Hash] opts the optional parameters
|
21154
|
+
# @option opts [String] :password
|
21155
|
+
# @option opts [BOOLEAN] :check_excel_restriction
|
21156
|
+
# @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
|
21157
|
+
def post_convert_workbook_to_json_with_http_info(file, opts = {})
|
21158
|
+
if @api_client.config.debugging
|
21159
|
+
@api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_json ..."
|
21160
|
+
end
|
21161
|
+
@api_client.request_token_if_needed
|
21162
|
+
# verify the required parameter 'file' is set
|
21163
|
+
if @api_client.config.client_side_validation && file.nil?
|
21164
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_json"
|
21165
|
+
end
|
21166
|
+
# resource path
|
21167
|
+
local_var_path = "/cells/convert/json"
|
21168
|
+
|
21169
|
+
# query parameters
|
21170
|
+
query_params = {}
|
21171
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
21172
|
+
query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
|
21173
|
+
|
21174
|
+
# header parameters
|
21175
|
+
header_params = {}
|
21176
|
+
# HTTP header 'Accept' (if needed)
|
21177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
21178
|
+
# HTTP header 'Content-Type'
|
21179
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
21180
|
+
|
21181
|
+
# form parameters
|
21182
|
+
form_params = {}
|
21183
|
+
|
21184
|
+
# http body (model)
|
21185
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
21186
|
+
post_body =''
|
21187
|
+
form_params['file'] = file
|
21188
|
+
#auth_names = []
|
21189
|
+
auth_names = ['JWT']
|
21190
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
21191
|
+
:header_params => header_params,
|
21192
|
+
:query_params => query_params,
|
21193
|
+
:form_params => form_params,
|
21194
|
+
:body => post_body,
|
21195
|
+
:auth_names => auth_names,
|
21196
|
+
:return_type => 'FileInfo')
|
21197
|
+
if @api_client.config.debugging
|
21198
|
+
@api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
21199
|
+
end
|
21200
|
+
return data, status_code, headers
|
21201
|
+
end
|
21202
|
+
#
|
21203
|
+
#
|
21204
|
+
# @param file File to upload
|
21205
|
+
# @param [Hash] opts the optional parameters
|
21206
|
+
# @option opts [String] :password
|
21207
|
+
# @option opts [BOOLEAN] :check_excel_restriction (default to true)
|
21208
|
+
# @return [FileInfo]
|
21209
|
+
def post_convert_workbook_to_sql(file, opts = {})
|
21210
|
+
data, _status_code, _headers = post_convert_workbook_to_sql_with_http_info(file, opts)
|
21211
|
+
return data
|
21212
|
+
end
|
21213
|
+
|
21214
|
+
#
|
21215
|
+
#
|
21216
|
+
# @param file File to upload
|
21217
|
+
# @param [Hash] opts the optional parameters
|
21218
|
+
# @option opts [String] :password
|
21219
|
+
# @option opts [BOOLEAN] :check_excel_restriction
|
21220
|
+
# @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
|
21221
|
+
def post_convert_workbook_to_sql_with_http_info(file, opts = {})
|
21222
|
+
if @api_client.config.debugging
|
21223
|
+
@api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_sql ..."
|
21224
|
+
end
|
21225
|
+
@api_client.request_token_if_needed
|
21226
|
+
# verify the required parameter 'file' is set
|
21227
|
+
if @api_client.config.client_side_validation && file.nil?
|
21228
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_sql"
|
21229
|
+
end
|
21230
|
+
# resource path
|
21231
|
+
local_var_path = "/cells/convert/sql"
|
21232
|
+
|
21233
|
+
# query parameters
|
21234
|
+
query_params = {}
|
21235
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
21236
|
+
query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
|
21237
|
+
|
21238
|
+
# header parameters
|
21239
|
+
header_params = {}
|
21240
|
+
# HTTP header 'Accept' (if needed)
|
21241
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
21242
|
+
# HTTP header 'Content-Type'
|
21243
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
21244
|
+
|
21245
|
+
# form parameters
|
21246
|
+
form_params = {}
|
21247
|
+
|
21248
|
+
# http body (model)
|
21249
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
21250
|
+
post_body =''
|
21251
|
+
form_params['file'] = file
|
21252
|
+
#auth_names = []
|
21253
|
+
auth_names = ['JWT']
|
21254
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
21255
|
+
:header_params => header_params,
|
21256
|
+
:query_params => query_params,
|
21257
|
+
:form_params => form_params,
|
21258
|
+
:body => post_body,
|
21259
|
+
:auth_names => auth_names,
|
21260
|
+
:return_type => 'FileInfo')
|
21261
|
+
if @api_client.config.debugging
|
21262
|
+
@api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_sql\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
21263
|
+
end
|
21264
|
+
return data, status_code, headers
|
21265
|
+
end
|
21266
|
+
|
21267
|
+
#
|
21268
|
+
#
|
21269
|
+
# @param file File to upload
|
21270
|
+
# @param [Hash] opts the optional parameters
|
21271
|
+
# @option opts [String] :password
|
21272
|
+
# @option opts [BOOLEAN] :check_excel_restriction (default to true)
|
21273
|
+
# @return [FileInfo]
|
21274
|
+
def post_convert_workbook_to_csv(file, opts = {})
|
21275
|
+
data, _status_code, _headers = post_convert_workbook_to_csv_with_http_info(file, opts)
|
21276
|
+
return data
|
21277
|
+
end
|
21278
|
+
|
21279
|
+
#
|
21280
|
+
#
|
21281
|
+
# @param file File to upload
|
21282
|
+
# @param [Hash] opts the optional parameters
|
21283
|
+
# @option opts [String] :password
|
21284
|
+
# @option opts [BOOLEAN] :check_excel_restriction
|
21285
|
+
# @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
|
21286
|
+
def post_convert_workbook_to_csv_with_http_info(file, opts = {})
|
21287
|
+
if @api_client.config.debugging
|
21288
|
+
@api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_csv ..."
|
21289
|
+
end
|
21290
|
+
@api_client.request_token_if_needed
|
21291
|
+
# verify the required parameter 'file' is set
|
21292
|
+
if @api_client.config.client_side_validation && file.nil?
|
21293
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_csv"
|
21294
|
+
end
|
21295
|
+
# resource path
|
21296
|
+
local_var_path = "/cells/convert/csv"
|
21297
|
+
|
21298
|
+
# query parameters
|
21299
|
+
query_params = {}
|
21300
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
21301
|
+
query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
|
21302
|
+
|
21303
|
+
# header parameters
|
21304
|
+
header_params = {}
|
21305
|
+
# HTTP header 'Accept' (if needed)
|
21306
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
21307
|
+
# HTTP header 'Content-Type'
|
21308
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
21309
|
+
|
21310
|
+
# form parameters
|
21311
|
+
form_params = {}
|
21312
|
+
|
21313
|
+
# http body (model)
|
21314
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
21315
|
+
post_body =''
|
21316
|
+
form_params['file'] = file
|
21317
|
+
#auth_names = []
|
21318
|
+
auth_names = ['JWT']
|
21319
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
21320
|
+
:header_params => header_params,
|
21321
|
+
:query_params => query_params,
|
21322
|
+
:form_params => form_params,
|
21323
|
+
:body => post_body,
|
21324
|
+
:auth_names => auth_names,
|
21325
|
+
:return_type => 'FileInfo')
|
21326
|
+
if @api_client.config.debugging
|
21327
|
+
@api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_csv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
21328
|
+
end
|
21329
|
+
return data, status_code, headers
|
21330
|
+
end
|
21331
|
+
|
20942
21332
|
# Check if storage exists
|
20943
21333
|
#
|
20944
21334
|
# @param storage_name Storage name
|
@@ -41,5 +41,36 @@ describe 'CellsConvertApi' do
|
|
41
41
|
result = @instance.post_convert_workbook_to_pdf(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
|
42
42
|
end
|
43
43
|
end
|
44
|
+
|
45
|
+
describe 'cells_unit test' do
|
46
|
+
it "should work" do
|
47
|
+
result = @instance.post_convert_workbook_to_pptx(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
|
48
|
+
end
|
49
|
+
end
|
50
|
+
describe 'cells_unit test' do
|
51
|
+
it "should work" do
|
52
|
+
result = @instance.post_convert_workbook_to_html(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
|
53
|
+
end
|
54
|
+
end
|
55
|
+
describe 'cells_unit test' do
|
56
|
+
it "should work" do
|
57
|
+
result = @instance.post_convert_workbook_to_markdown(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
|
58
|
+
end
|
59
|
+
end
|
60
|
+
describe 'cells_unit test' do
|
61
|
+
it "should work" do
|
62
|
+
result = @instance.post_convert_workbook_to_json(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
|
63
|
+
end
|
64
|
+
end
|
65
|
+
describe 'cells_unit test' do
|
66
|
+
it "should work" do
|
67
|
+
result = @instance.post_convert_workbook_to_sql(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
|
68
|
+
end
|
69
|
+
end
|
70
|
+
describe 'cells_unit test' do
|
71
|
+
it "should work" do
|
72
|
+
result = @instance.post_convert_workbook_to_csv(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
|
73
|
+
end
|
74
|
+
end
|
44
75
|
end
|
45
76
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_cells_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '22.
|
4
|
+
version: '22.11'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aspose Cells Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|