aspose_cells_cloud 22.8 → 22.10
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 -3
- data/lib/aspose_cells_cloud/api/cells_api.rb +389 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +4 -0
- data/spec/api/cells_convert_spec.rb +62 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9edd2d5a5e47130c19f38e16c859df9c56e402bb9babd195b039e184d6545407
|
4
|
+
data.tar.gz: 80040fdb490504d22dba119eba6807a517e04a23fa5af40b5f51af87e002bb18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf7ddc4ebb57d393a7a134f8f76cf2e74d9228dc2d7a6640bb93a37d4abf0be770feb034f875858260a9dd54e2363883f5795cb4abe8cfb67990e47bbb3d00e7
|
7
|
+
data.tar.gz: 73b3fcca099899b865c1b287e0ab4396023175dcb2ac974a52b92c7c84525601ef23aa06d1fb848bfa1c690b7e6cbeea7b90bc0bdbe7ede2cb7bb061747da00d
|
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.10)
|
2
2
|
|
3
3
|
|
4
4
|
# Ruby SDK for Spreadsheet Processing in the Cloud
|
@@ -22,9 +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.10
|
26
26
|
|
27
|
-
-
|
27
|
+
- Add api for converting workbook to pptx.
|
28
|
+
- Add api for converting workbook to html.
|
29
|
+
- Add api for converting workbook to markdown.
|
28
30
|
|
29
31
|
## Read & Write Spreadsheet Formats
|
30
32
|
|
@@ -20744,6 +20744,395 @@ module AsposeCellsCloud
|
|
20744
20744
|
end
|
20745
20745
|
return data, status_code, headers
|
20746
20746
|
end
|
20747
|
+
#
|
20748
|
+
#
|
20749
|
+
# @param file File to upload
|
20750
|
+
# @param [Hash] opts the optional parameters
|
20751
|
+
# @option opts [String] :password
|
20752
|
+
# @option opts [BOOLEAN] :check_excel_restriction (default to true)
|
20753
|
+
# @return [FileInfo]
|
20754
|
+
def post_convert_workbook_to_docx(file, opts = {})
|
20755
|
+
data, _status_code, _headers = post_convert_workbook_to_docx_with_http_info(file, opts)
|
20756
|
+
return data
|
20757
|
+
end
|
20758
|
+
|
20759
|
+
#
|
20760
|
+
#
|
20761
|
+
# @param file File to upload
|
20762
|
+
# @param [Hash] opts the optional parameters
|
20763
|
+
# @option opts [String] :password
|
20764
|
+
# @option opts [BOOLEAN] :check_excel_restriction
|
20765
|
+
# @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
|
20766
|
+
def post_convert_workbook_to_docx_with_http_info(file, opts = {})
|
20767
|
+
if @api_client.config.debugging
|
20768
|
+
@api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_docx ..."
|
20769
|
+
end
|
20770
|
+
@api_client.request_token_if_needed
|
20771
|
+
# verify the required parameter 'file' is set
|
20772
|
+
if @api_client.config.client_side_validation && file.nil?
|
20773
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_docx"
|
20774
|
+
end
|
20775
|
+
# resource path
|
20776
|
+
local_var_path = "/cells/convert/docx"
|
20777
|
+
|
20778
|
+
# query parameters
|
20779
|
+
query_params = {}
|
20780
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
20781
|
+
query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
|
20782
|
+
|
20783
|
+
# header parameters
|
20784
|
+
header_params = {}
|
20785
|
+
# HTTP header 'Accept' (if needed)
|
20786
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
20787
|
+
# HTTP header 'Content-Type'
|
20788
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
20789
|
+
|
20790
|
+
# form parameters
|
20791
|
+
form_params = {}
|
20792
|
+
|
20793
|
+
# http body (model)
|
20794
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
20795
|
+
post_body =''
|
20796
|
+
form_params['file'] = file
|
20797
|
+
#auth_names = []
|
20798
|
+
auth_names = ['JWT']
|
20799
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
20800
|
+
:header_params => header_params,
|
20801
|
+
:query_params => query_params,
|
20802
|
+
:form_params => form_params,
|
20803
|
+
:body => post_body,
|
20804
|
+
:auth_names => auth_names,
|
20805
|
+
:return_type => 'FileInfo')
|
20806
|
+
if @api_client.config.debugging
|
20807
|
+
@api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_docx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
20808
|
+
end
|
20809
|
+
return data, status_code, headers
|
20810
|
+
end
|
20811
|
+
|
20812
|
+
#
|
20813
|
+
#
|
20814
|
+
# @param file File to upload
|
20815
|
+
# @param [Hash] opts the optional parameters
|
20816
|
+
# @option opts [String] :password
|
20817
|
+
# @option opts [BOOLEAN] :check_excel_restriction (default to true)
|
20818
|
+
# @return [FileInfo]
|
20819
|
+
def post_convert_workbook_to_pdf(file, opts = {})
|
20820
|
+
data, _status_code, _headers = post_convert_workbook_to_pdf_with_http_info(file, opts)
|
20821
|
+
return data
|
20822
|
+
end
|
20823
|
+
|
20824
|
+
#
|
20825
|
+
#
|
20826
|
+
# @param file File to upload
|
20827
|
+
# @param [Hash] opts the optional parameters
|
20828
|
+
# @option opts [String] :password
|
20829
|
+
# @option opts [BOOLEAN] :check_excel_restriction
|
20830
|
+
# @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
|
20831
|
+
def post_convert_workbook_to_pdf_with_http_info(file, opts = {})
|
20832
|
+
if @api_client.config.debugging
|
20833
|
+
@api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_pdf ..."
|
20834
|
+
end
|
20835
|
+
@api_client.request_token_if_needed
|
20836
|
+
# verify the required parameter 'file' is set
|
20837
|
+
if @api_client.config.client_side_validation && file.nil?
|
20838
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_pdf"
|
20839
|
+
end
|
20840
|
+
# resource path
|
20841
|
+
local_var_path = "/cells/convert/pdf"
|
20842
|
+
|
20843
|
+
# query parameters
|
20844
|
+
query_params = {}
|
20845
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
20846
|
+
query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
|
20847
|
+
|
20848
|
+
# header parameters
|
20849
|
+
header_params = {}
|
20850
|
+
# HTTP header 'Accept' (if needed)
|
20851
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
20852
|
+
# HTTP header 'Content-Type'
|
20853
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
20854
|
+
|
20855
|
+
# form parameters
|
20856
|
+
form_params = {}
|
20857
|
+
|
20858
|
+
# http body (model)
|
20859
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
20860
|
+
post_body =''
|
20861
|
+
form_params['file'] = file
|
20862
|
+
#auth_names = []
|
20863
|
+
auth_names = ['JWT']
|
20864
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
20865
|
+
:header_params => header_params,
|
20866
|
+
:query_params => query_params,
|
20867
|
+
:form_params => form_params,
|
20868
|
+
:body => post_body,
|
20869
|
+
:auth_names => auth_names,
|
20870
|
+
:return_type => 'FileInfo')
|
20871
|
+
if @api_client.config.debugging
|
20872
|
+
@api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
20873
|
+
end
|
20874
|
+
return data, status_code, headers
|
20875
|
+
end
|
20876
|
+
|
20877
|
+
#
|
20878
|
+
#
|
20879
|
+
# @param file File to upload
|
20880
|
+
# @param [Hash] opts the optional parameters
|
20881
|
+
# @option opts [String] :password
|
20882
|
+
# @option opts [BOOLEAN] :check_excel_restriction (default to true)
|
20883
|
+
# @return [FileInfo]
|
20884
|
+
def post_convert_workbook_to_png(file, opts = {})
|
20885
|
+
data, _status_code, _headers = post_convert_workbook_to_png_with_http_info(file, opts)
|
20886
|
+
return data
|
20887
|
+
end
|
20888
|
+
|
20889
|
+
#
|
20890
|
+
#
|
20891
|
+
# @param file File to upload
|
20892
|
+
# @param [Hash] opts the optional parameters
|
20893
|
+
# @option opts [String] :password
|
20894
|
+
# @option opts [BOOLEAN] :check_excel_restriction
|
20895
|
+
# @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
|
20896
|
+
def post_convert_workbook_to_png_with_http_info(file, opts = {})
|
20897
|
+
if @api_client.config.debugging
|
20898
|
+
@api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_png ..."
|
20899
|
+
end
|
20900
|
+
@api_client.request_token_if_needed
|
20901
|
+
# verify the required parameter 'file' is set
|
20902
|
+
if @api_client.config.client_side_validation && file.nil?
|
20903
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_png"
|
20904
|
+
end
|
20905
|
+
# resource path
|
20906
|
+
local_var_path = "/cells/convert/png"
|
20907
|
+
|
20908
|
+
# query parameters
|
20909
|
+
query_params = {}
|
20910
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
20911
|
+
query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
|
20912
|
+
|
20913
|
+
# header parameters
|
20914
|
+
header_params = {}
|
20915
|
+
# HTTP header 'Accept' (if needed)
|
20916
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
20917
|
+
# HTTP header 'Content-Type'
|
20918
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
20919
|
+
|
20920
|
+
# form parameters
|
20921
|
+
form_params = {}
|
20922
|
+
|
20923
|
+
# http body (model)
|
20924
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
20925
|
+
post_body =''
|
20926
|
+
form_params['file'] = file
|
20927
|
+
#auth_names = []
|
20928
|
+
auth_names = ['JWT']
|
20929
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
20930
|
+
:header_params => header_params,
|
20931
|
+
:query_params => query_params,
|
20932
|
+
:form_params => form_params,
|
20933
|
+
:body => post_body,
|
20934
|
+
:auth_names => auth_names,
|
20935
|
+
:return_type => 'FileInfo')
|
20936
|
+
if @api_client.config.debugging
|
20937
|
+
@api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
20938
|
+
end
|
20939
|
+
return data, status_code, headers
|
20940
|
+
end
|
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
|
20747
21136
|
|
20748
21137
|
# Check if storage exists
|
20749
21138
|
#
|
data/lib/aspose_cells_cloud.rb
CHANGED
@@ -168,6 +168,7 @@ require 'aspose_cells_cloud/models/conditional_formattings_response'
|
|
168
168
|
require 'aspose_cells_cloud/models/convert_task_parameter'
|
169
169
|
require 'aspose_cells_cloud/models/convert_worksheet_task_parameter'
|
170
170
|
require 'aspose_cells_cloud/models/dif_save_options'
|
171
|
+
require 'aspose_cells_cloud/models/docx_save_options'
|
171
172
|
require 'aspose_cells_cloud/models/file_version'
|
172
173
|
require 'aspose_cells_cloud/models/fill_format_response'
|
173
174
|
require 'aspose_cells_cloud/models/format_condition'
|
@@ -187,6 +188,7 @@ require 'aspose_cells_cloud/models/import_double_array_option'
|
|
187
188
|
require 'aspose_cells_cloud/models/import_int_array_option'
|
188
189
|
require 'aspose_cells_cloud/models/import_picture_option'
|
189
190
|
require 'aspose_cells_cloud/models/import_string_array_option'
|
191
|
+
require 'aspose_cells_cloud/models/json_save_options'
|
190
192
|
require 'aspose_cells_cloud/models/legend_response'
|
191
193
|
require 'aspose_cells_cloud/models/line_format'
|
192
194
|
require 'aspose_cells_cloud/models/line_response'
|
@@ -227,6 +229,7 @@ require 'aspose_cells_cloud/models/pivot_table_operate_parameter'
|
|
227
229
|
require 'aspose_cells_cloud/models/pivot_table_response'
|
228
230
|
require 'aspose_cells_cloud/models/pivot_tables'
|
229
231
|
require 'aspose_cells_cloud/models/pivot_tables_response'
|
232
|
+
require 'aspose_cells_cloud/models/pptx_save_options'
|
230
233
|
require 'aspose_cells_cloud/models/range_value_response'
|
231
234
|
require 'aspose_cells_cloud/models/ranges_response'
|
232
235
|
require 'aspose_cells_cloud/models/row'
|
@@ -248,6 +251,7 @@ require 'aspose_cells_cloud/models/split_result_document'
|
|
248
251
|
require 'aspose_cells_cloud/models/split_result_response'
|
249
252
|
require 'aspose_cells_cloud/models/split_workbook_task_parameter'
|
250
253
|
require 'aspose_cells_cloud/models/spreadsheet_ml2003_save_options'
|
254
|
+
require 'aspose_cells_cloud/models/sql_script_save_options'
|
251
255
|
require 'aspose_cells_cloud/models/style'
|
252
256
|
require 'aspose_cells_cloud/models/style_response'
|
253
257
|
require 'aspose_cells_cloud/models/svg_save_options'
|
@@ -0,0 +1,62 @@
|
|
1
|
+
=begin
|
2
|
+
#Web API Swagger specification
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for AsposeCellsCloud::CellsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'CellsConvertApi' do
|
20
|
+
before do
|
21
|
+
@instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
|
22
|
+
$VERBOSE = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'cells_unit test' do
|
30
|
+
it "should work" do
|
31
|
+
result = @instance.post_convert_workbook_to_docx(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
|
32
|
+
end
|
33
|
+
end
|
34
|
+
describe 'cells_unit test' do
|
35
|
+
it "should work" do
|
36
|
+
result = @instance.post_convert_workbook_to_png(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
|
37
|
+
end
|
38
|
+
end
|
39
|
+
describe 'cells_unit test' do
|
40
|
+
it "should work" do
|
41
|
+
result = @instance.post_convert_workbook_to_pdf(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
|
42
|
+
end
|
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
|
+
|
61
|
+
end
|
62
|
+
|
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.10'
|
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-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -507,6 +507,7 @@ files:
|
|
507
507
|
- spec/api/cells_clear_objects_spec.rb
|
508
508
|
- spec/api/cells_compress_spec.rb
|
509
509
|
- spec/api/cells_conditional_formattings_api_spec.rb
|
510
|
+
- spec/api/cells_convert_spec.rb
|
510
511
|
- spec/api/cells_export_spec.rb
|
511
512
|
- spec/api/cells_hypelinks_api_spec.rb
|
512
513
|
- spec/api/cells_import_spec.rb
|