aspose_cells_cloud 21.1 → 21.8
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/lib/aspose_cells_cloud/api/cells_api.rb +102 -28
- data/lib/aspose_cells_cloud/api/lite_cells_api.rb +957 -0
- data/lib/aspose_cells_cloud/api_client.rb +2 -1
- data/lib/aspose_cells_cloud/models/access_token_response.rb +13 -13
- data/lib/aspose_cells_cloud/models/cells_document_property.rb +46 -13
- data/lib/aspose_cells_cloud/models/chart_operate_parameter.rb +7 -7
- data/lib/aspose_cells_cloud/models/conditional_formatting_value.rb +1 -1
- data/lib/aspose_cells_cloud/models/custom_filter.rb +1 -1
- data/lib/aspose_cells_cloud/models/dynamic_filter.rb +2 -2
- data/lib/aspose_cells_cloud/models/file_info.rb +221 -0
- data/lib/aspose_cells_cloud/models/files_result.rb +200 -0
- data/lib/aspose_cells_cloud/models/import_picture_option.rb +285 -0
- data/lib/aspose_cells_cloud/models/pivot_item.rb +1 -1
- data/lib/aspose_cells_cloud/models/worksheet_operate_parameter.rb +234 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +5 -0
- data/spec/api/cells_assembly_spec.rb +44 -0
- data/spec/api/cells_clear_objects_spec.rb +43 -0
- data/spec/api/cells_export_spec.rb +220 -0
- data/spec/api/cells_import_spec.rb +43 -0
- data/spec/api/cells_merge_spec.rb +43 -0
- data/spec/api/cells_metadata_spec.rb +72 -0
- data/spec/api/cells_properties_api_spec.rb +1 -1
- data/spec/api/cells_protect_spec.rb +43 -0
- data/spec/api/cells_search_spec.rb +43 -0
- data/spec/api/cells_split_spec.rb +44 -0
- data/spec/api/cells_unlock_spec.rb +43 -0
- data/spec/api/cells_watermark_spec.rb +42 -0
- data/spec/api/cells_workbook_api_spec.rb +26 -0
- data/spec/spec_helper.rb +5 -1
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz: '
|
3
|
+
metadata.gz: 5630e3450007702ca173e69e0a76f3aba9fe7d96656819215cd260444aa9879e
|
4
|
+
data.tar.gz: '058156ff060954d722d6637f1b50831fcb7d717abcf09936ff8bf3e1e3c21dea'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88ccf6cdcadd9d25486fb2a48d8d9684348f2ddd5645605980d9a9a97966a145685d39f42a07289654427b14912f96c97218967b1438b303933be0a70309a4c2
|
7
|
+
data.tar.gz: d7273fd71845753efe8b6f4fb00c13f77baa359189d97580d1b943103ba559868590c2f56256ace08eaebaaf21e409f4c1d13961a9a5a2d1a381eb0da5cc85e0
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
   [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE)    [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) 
|
2
2
|
|
3
3
|
|
4
4
|
# Ruby SDK for Spreadsheet Processing in the Cloud
|
@@ -21,10 +21,11 @@ Ruby Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate Mic
|
|
21
21
|
- Convert worksheets to PDF, XPS & SVG formats.
|
22
22
|
- [Convert Excel files to popular formats](https://docs.aspose.cloud/cells/convert-excel-workbook-to-different-file-formats/).
|
23
23
|
|
24
|
-
## Feature & Enhancements in Version 21.
|
24
|
+
## Feature & Enhancements in Version 21.8
|
25
|
+
|
26
|
+
- Improvement for getting list object Api.
|
27
|
+
- Add import Api.
|
25
28
|
|
26
|
-
- Support to convert worksheet on task API.
|
27
|
-
- Support to add and delete cell or range in worksheet.
|
28
29
|
|
29
30
|
## Read & Write Spreadsheet Formats
|
30
31
|
|
@@ -3455,7 +3455,7 @@ module AsposeCellsCloud
|
|
3455
3455
|
# @param [Hash] opts the optional parameters
|
3456
3456
|
# @option opts [String] :folder The workbook folder.
|
3457
3457
|
# @option opts [String] :storage_name storage name.
|
3458
|
-
# @return [
|
3458
|
+
# @return [CellsCloudResponse]
|
3459
3459
|
def cells_delete_worksheet_columns(name, sheet_name, column_index, columns, update_reference, opts = {})
|
3460
3460
|
data, _status_code, _headers = cells_delete_worksheet_columns_with_http_info(name, sheet_name, column_index, columns, update_reference, opts)
|
3461
3461
|
return data
|
@@ -3471,7 +3471,7 @@ module AsposeCellsCloud
|
|
3471
3471
|
# @param [Hash] opts the optional parameters
|
3472
3472
|
# @option opts [String] :folder The workbook folder.
|
3473
3473
|
# @option opts [String] :storage_name storage name.
|
3474
|
-
# @return [Array<(
|
3474
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
3475
3475
|
def cells_delete_worksheet_columns_with_http_info(name, sheet_name, column_index, columns, update_reference, opts = {})
|
3476
3476
|
if @api_client.config.debugging
|
3477
3477
|
@api_client.config.logger.debug "Calling API: CellsApi.cells_delete_worksheet_columns ..."
|
@@ -3527,7 +3527,7 @@ module AsposeCellsCloud
|
|
3527
3527
|
:form_params => form_params,
|
3528
3528
|
:body => post_body,
|
3529
3529
|
:auth_names => auth_names,
|
3530
|
-
:return_type => '
|
3530
|
+
:return_type => 'CellsCloudResponse')
|
3531
3531
|
if @api_client.config.debugging
|
3532
3532
|
@api_client.config.logger.debug "API called: CellsApi#cells_delete_worksheet_columns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3533
3533
|
end
|
@@ -4898,9 +4898,10 @@ module AsposeCellsCloud
|
|
4898
4898
|
# @param sheet_name The worksheet name.
|
4899
4899
|
# @param listobjectindex list object index.
|
4900
4900
|
# @param [Hash] opts the optional parameters
|
4901
|
+
# @option opts [String] :format export format.
|
4901
4902
|
# @option opts [String] :folder Document's folder.
|
4902
4903
|
# @option opts [String] :storage_name storage name.
|
4903
|
-
# @return [
|
4904
|
+
# @return [File]
|
4904
4905
|
def cells_list_objects_get_worksheet_list_object(name, sheet_name, listobjectindex, opts = {})
|
4905
4906
|
data, _status_code, _headers = cells_list_objects_get_worksheet_list_object_with_http_info(name, sheet_name, listobjectindex, opts)
|
4906
4907
|
return data
|
@@ -4912,9 +4913,10 @@ module AsposeCellsCloud
|
|
4912
4913
|
# @param sheet_name The worksheet name.
|
4913
4914
|
# @param listobjectindex list object index.
|
4914
4915
|
# @param [Hash] opts the optional parameters
|
4916
|
+
# @option opts [String] :format export format.
|
4915
4917
|
# @option opts [String] :folder Document's folder.
|
4916
4918
|
# @option opts [String] :storage_name storage name.
|
4917
|
-
# @return [Array<(
|
4919
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
4918
4920
|
def cells_list_objects_get_worksheet_list_object_with_http_info(name, sheet_name, listobjectindex, opts = {})
|
4919
4921
|
if @api_client.config.debugging
|
4920
4922
|
@api_client.config.logger.debug "Calling API: CellsApi.cells_list_objects_get_worksheet_list_object ..."
|
@@ -4937,6 +4939,7 @@ module AsposeCellsCloud
|
|
4937
4939
|
|
4938
4940
|
# query parameters
|
4939
4941
|
query_params = {}
|
4942
|
+
query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
|
4940
4943
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
4941
4944
|
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
4942
4945
|
|
@@ -4960,7 +4963,7 @@ module AsposeCellsCloud
|
|
4960
4963
|
:form_params => form_params,
|
4961
4964
|
:body => post_body,
|
4962
4965
|
:auth_names => auth_names,
|
4963
|
-
:return_type => '
|
4966
|
+
:return_type => 'File')
|
4964
4967
|
if @api_client.config.debugging
|
4965
4968
|
@api_client.config.logger.debug "API called: CellsApi#cells_list_objects_get_worksheet_list_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4966
4969
|
end
|
@@ -10656,7 +10659,7 @@ module AsposeCellsCloud
|
|
10656
10659
|
# @param [Hash] opts the optional parameters
|
10657
10660
|
# @option opts [String] :folder The workbook folder.
|
10658
10661
|
# @option opts [String] :storage_name storage name.
|
10659
|
-
# @return [
|
10662
|
+
# @return [CellsCloudResponse]
|
10660
10663
|
def cells_post_set_worksheet_column_width(name, sheet_name, column_index, width, opts = {})
|
10661
10664
|
data, _status_code, _headers = cells_post_set_worksheet_column_width_with_http_info(name, sheet_name, column_index, width, opts)
|
10662
10665
|
return data
|
@@ -10671,7 +10674,7 @@ module AsposeCellsCloud
|
|
10671
10674
|
# @param [Hash] opts the optional parameters
|
10672
10675
|
# @option opts [String] :folder The workbook folder.
|
10673
10676
|
# @option opts [String] :storage_name storage name.
|
10674
|
-
# @return [Array<(
|
10677
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
10675
10678
|
def cells_post_set_worksheet_column_width_with_http_info(name, sheet_name, column_index, width, opts = {})
|
10676
10679
|
if @api_client.config.debugging
|
10677
10680
|
@api_client.config.logger.debug "Calling API: CellsApi.cells_post_set_worksheet_column_width ..."
|
@@ -10722,7 +10725,7 @@ module AsposeCellsCloud
|
|
10722
10725
|
:form_params => form_params,
|
10723
10726
|
:body => post_body,
|
10724
10727
|
:auth_names => auth_names,
|
10725
|
-
:return_type => '
|
10728
|
+
:return_type => 'CellsCloudResponse')
|
10726
10729
|
if @api_client.config.debugging
|
10727
10730
|
@api_client.config.logger.debug "API called: CellsApi#cells_post_set_worksheet_column_width\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
10728
10731
|
end
|
@@ -11234,7 +11237,7 @@ module AsposeCellsCloud
|
|
11234
11237
|
# @option opts [Float] :height The new row height. (default to 0.0)
|
11235
11238
|
# @option opts [String] :folder The document folder.
|
11236
11239
|
# @option opts [String] :storage_name storage name.
|
11237
|
-
# @return [
|
11240
|
+
# @return [CellsCloudResponse]
|
11238
11241
|
def cells_post_update_worksheet_row(name, sheet_name, row_index, opts = {})
|
11239
11242
|
data, _status_code, _headers = cells_post_update_worksheet_row_with_http_info(name, sheet_name, row_index, opts)
|
11240
11243
|
return data
|
@@ -11249,7 +11252,7 @@ module AsposeCellsCloud
|
|
11249
11252
|
# @option opts [Float] :height The new row height.
|
11250
11253
|
# @option opts [String] :folder The document folder.
|
11251
11254
|
# @option opts [String] :storage_name storage name.
|
11252
|
-
# @return [Array<(
|
11255
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
11253
11256
|
def cells_post_update_worksheet_row_with_http_info(name, sheet_name, row_index, opts = {})
|
11254
11257
|
if @api_client.config.debugging
|
11255
11258
|
@api_client.config.logger.debug "Calling API: CellsApi.cells_post_update_worksheet_row ..."
|
@@ -11296,7 +11299,7 @@ module AsposeCellsCloud
|
|
11296
11299
|
:form_params => form_params,
|
11297
11300
|
:body => post_body,
|
11298
11301
|
:auth_names => auth_names,
|
11299
|
-
:return_type => '
|
11302
|
+
:return_type => 'CellsCloudResponse')
|
11300
11303
|
if @api_client.config.debugging
|
11301
11304
|
@api_client.config.logger.debug "API called: CellsApi#cells_post_update_worksheet_row\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
11302
11305
|
end
|
@@ -11926,7 +11929,7 @@ module AsposeCellsCloud
|
|
11926
11929
|
# @option opts [BOOLEAN] :update_reference The update reference. (default to true)
|
11927
11930
|
# @option opts [String] :folder The workbook folder.
|
11928
11931
|
# @option opts [String] :storage_name storage name.
|
11929
|
-
# @return [
|
11932
|
+
# @return [CellsCloudResponse]
|
11930
11933
|
def cells_put_insert_worksheet_columns(name, sheet_name, column_index, columns, opts = {})
|
11931
11934
|
data, _status_code, _headers = cells_put_insert_worksheet_columns_with_http_info(name, sheet_name, column_index, columns, opts)
|
11932
11935
|
return data
|
@@ -11942,7 +11945,7 @@ module AsposeCellsCloud
|
|
11942
11945
|
# @option opts [BOOLEAN] :update_reference The update reference.
|
11943
11946
|
# @option opts [String] :folder The workbook folder.
|
11944
11947
|
# @option opts [String] :storage_name storage name.
|
11945
|
-
# @return [Array<(
|
11948
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
11946
11949
|
def cells_put_insert_worksheet_columns_with_http_info(name, sheet_name, column_index, columns, opts = {})
|
11947
11950
|
if @api_client.config.debugging
|
11948
11951
|
@api_client.config.logger.debug "Calling API: CellsApi.cells_put_insert_worksheet_columns ..."
|
@@ -11994,7 +11997,7 @@ module AsposeCellsCloud
|
|
11994
11997
|
:form_params => form_params,
|
11995
11998
|
:body => post_body,
|
11996
11999
|
:auth_names => auth_names,
|
11997
|
-
:return_type => '
|
12000
|
+
:return_type => 'CellsCloudResponse')
|
11998
12001
|
if @api_client.config.debugging
|
11999
12002
|
@api_client.config.logger.debug "API called: CellsApi#cells_put_insert_worksheet_columns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12000
12003
|
end
|
@@ -12009,7 +12012,7 @@ module AsposeCellsCloud
|
|
12009
12012
|
# @param [Hash] opts the optional parameters
|
12010
12013
|
# @option opts [String] :folder The document folder.
|
12011
12014
|
# @option opts [String] :storage_name storage name.
|
12012
|
-
# @return [
|
12015
|
+
# @return [CellsCloudResponse]
|
12013
12016
|
def cells_put_insert_worksheet_row(name, sheet_name, row_index, opts = {})
|
12014
12017
|
data, _status_code, _headers = cells_put_insert_worksheet_row_with_http_info(name, sheet_name, row_index, opts)
|
12015
12018
|
return data
|
@@ -12023,7 +12026,7 @@ module AsposeCellsCloud
|
|
12023
12026
|
# @param [Hash] opts the optional parameters
|
12024
12027
|
# @option opts [String] :folder The document folder.
|
12025
12028
|
# @option opts [String] :storage_name storage name.
|
12026
|
-
# @return [Array<(
|
12029
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
12027
12030
|
def cells_put_insert_worksheet_row_with_http_info(name, sheet_name, row_index, opts = {})
|
12028
12031
|
if @api_client.config.debugging
|
12029
12032
|
@api_client.config.logger.debug "Calling API: CellsApi.cells_put_insert_worksheet_row ..."
|
@@ -12069,7 +12072,7 @@ module AsposeCellsCloud
|
|
12069
12072
|
:form_params => form_params,
|
12070
12073
|
:body => post_body,
|
12071
12074
|
:auth_names => auth_names,
|
12072
|
-
:return_type => '
|
12075
|
+
:return_type => 'CellsCloudResponse')
|
12073
12076
|
if @api_client.config.debugging
|
12074
12077
|
@api_client.config.logger.debug "API called: CellsApi#cells_put_insert_worksheet_row\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12075
12078
|
end
|
@@ -14998,6 +15001,77 @@ module AsposeCellsCloud
|
|
14998
15001
|
return data, status_code, headers
|
14999
15002
|
end
|
15000
15003
|
|
15004
|
+
# Autofit workbook columns.
|
15005
|
+
#
|
15006
|
+
# @param name Document name.
|
15007
|
+
# @param [Hash] opts the optional parameters
|
15008
|
+
# @option opts [AutoFitterOptions] :auto_fitter_options Auto Fitter Options.
|
15009
|
+
# @option opts [Integer] :start_column Start column.
|
15010
|
+
# @option opts [Integer] :end_column End column.
|
15011
|
+
# @option opts [String] :folder Document's folder.
|
15012
|
+
# @option opts [String] :storage_name storage name.
|
15013
|
+
# @return [CellsCloudResponse]
|
15014
|
+
def cells_workbook_post_autofit_workbook_columns(name, opts = {})
|
15015
|
+
data, _status_code, _headers = cells_workbook_post_autofit_workbook_columns_with_http_info(name, opts)
|
15016
|
+
return data
|
15017
|
+
end
|
15018
|
+
|
15019
|
+
# Autofit workbook columns.
|
15020
|
+
#
|
15021
|
+
# @param name Document name.
|
15022
|
+
# @param [Hash] opts the optional parameters
|
15023
|
+
# @option opts [AutoFitterOptions] :auto_fitter_options Auto Fitter Options.
|
15024
|
+
# @option opts [Integer] :start_column Start column.
|
15025
|
+
# @option opts [Integer] :end_column End column.
|
15026
|
+
# @option opts [String] :folder Document's folder.
|
15027
|
+
# @option opts [String] :storage_name storage name.
|
15028
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
15029
|
+
def cells_workbook_post_autofit_workbook_columns_with_http_info(name, opts = {})
|
15030
|
+
if @api_client.config.debugging
|
15031
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_workbook_post_autofit_workbook_columns ..."
|
15032
|
+
end
|
15033
|
+
@api_client.request_token_if_needed
|
15034
|
+
# verify the required parameter 'name' is set
|
15035
|
+
if @api_client.config.client_side_validation && name.nil?
|
15036
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_workbook_post_autofit_workbook_columns"
|
15037
|
+
end
|
15038
|
+
# resource path
|
15039
|
+
local_var_path = "/cells/{name}/autofitcolumns".sub('{' + 'name' + '}', name.to_s)
|
15040
|
+
|
15041
|
+
# query parameters
|
15042
|
+
query_params = {}
|
15043
|
+
query_params[:'startColumn'] = opts[:'start_column'] if !opts[:'start_column'].nil?
|
15044
|
+
query_params[:'endColumn'] = opts[:'end_column'] if !opts[:'end_column'].nil?
|
15045
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
15046
|
+
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
15047
|
+
|
15048
|
+
# header parameters
|
15049
|
+
header_params = {}
|
15050
|
+
# HTTP header 'Accept' (if needed)
|
15051
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
15052
|
+
# HTTP header 'Content-Type'
|
15053
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
15054
|
+
|
15055
|
+
# form parameters
|
15056
|
+
form_params = {}
|
15057
|
+
|
15058
|
+
# http body (model)
|
15059
|
+
post_body = @api_client.object_to_http_body(opts[:'auto_fitter_options'])
|
15060
|
+
#auth_names = []
|
15061
|
+
auth_names = ['JWT']
|
15062
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
15063
|
+
:header_params => header_params,
|
15064
|
+
:query_params => query_params,
|
15065
|
+
:form_params => form_params,
|
15066
|
+
:body => post_body,
|
15067
|
+
:auth_names => auth_names,
|
15068
|
+
:return_type => 'CellsCloudResponse')
|
15069
|
+
if @api_client.config.debugging
|
15070
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_workbook_post_autofit_workbook_columns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
15071
|
+
end
|
15072
|
+
return data, status_code, headers
|
15073
|
+
end
|
15074
|
+
|
15001
15075
|
# Autofit workbook rows.
|
15002
15076
|
#
|
15003
15077
|
# @param name Document name.
|
@@ -15773,33 +15847,33 @@ module AsposeCellsCloud
|
|
15773
15847
|
|
15774
15848
|
# Convert workbook from request content to some format.
|
15775
15849
|
#
|
15776
|
-
# @param
|
15850
|
+
# @param file
|
15777
15851
|
# @param [Hash] opts the optional parameters
|
15778
15852
|
# @option opts [String] :format The format to convert.
|
15779
15853
|
# @option opts [String] :password The workbook password.
|
15780
15854
|
# @option opts [String] :out_path Path to save result
|
15781
15855
|
# @return [File]
|
15782
|
-
def cells_workbook_put_convert_workbook(
|
15783
|
-
data, _status_code, _headers = cells_workbook_put_convert_workbook_with_http_info(
|
15856
|
+
def cells_workbook_put_convert_workbook(file, opts = {})
|
15857
|
+
data, _status_code, _headers = cells_workbook_put_convert_workbook_with_http_info(file, opts)
|
15784
15858
|
return data
|
15785
15859
|
end
|
15786
15860
|
|
15787
15861
|
# Convert workbook from request content to some format.
|
15788
15862
|
#
|
15789
|
-
# @param
|
15863
|
+
# @param file
|
15790
15864
|
# @param [Hash] opts the optional parameters
|
15791
15865
|
# @option opts [String] :format The format to convert.
|
15792
15866
|
# @option opts [String] :password The workbook password.
|
15793
15867
|
# @option opts [String] :out_path Path to save result
|
15794
15868
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
15795
|
-
def cells_workbook_put_convert_workbook_with_http_info(
|
15869
|
+
def cells_workbook_put_convert_workbook_with_http_info(file, opts = {})
|
15796
15870
|
if @api_client.config.debugging
|
15797
15871
|
@api_client.config.logger.debug "Calling API: CellsApi.cells_workbook_put_convert_workbook ..."
|
15798
15872
|
end
|
15799
15873
|
@api_client.request_token_if_needed
|
15800
|
-
# verify the required parameter '
|
15801
|
-
if @api_client.config.client_side_validation &&
|
15802
|
-
fail ArgumentError, "Missing the required parameter '
|
15874
|
+
# verify the required parameter 'file' is set
|
15875
|
+
if @api_client.config.client_side_validation && file.nil?
|
15876
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.cells_workbook_put_convert_workbook"
|
15803
15877
|
end
|
15804
15878
|
# resource path
|
15805
15879
|
local_var_path = "/cells/convert"
|
@@ -15815,14 +15889,14 @@ module AsposeCellsCloud
|
|
15815
15889
|
# HTTP header 'Accept' (if needed)
|
15816
15890
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
15817
15891
|
# HTTP header 'Content-Type'
|
15818
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
15892
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
15819
15893
|
|
15820
15894
|
# form parameters
|
15821
15895
|
form_params = {}
|
15822
15896
|
|
15823
15897
|
# http body (model)
|
15824
15898
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
15825
|
-
post_body =
|
15899
|
+
post_body =file
|
15826
15900
|
#auth_names = []
|
15827
15901
|
auth_names = ['JWT']
|
15828
15902
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
@@ -0,0 +1,957 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
Copyright (c) 2021 Aspose.Cells Cloud
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
SOFTWARE.
|
19
|
+
--------------------------------------------------------------------------------------------------------------------
|
20
|
+
|
21
|
+
=end
|
22
|
+
|
23
|
+
require "uri"
|
24
|
+
|
25
|
+
module AsposeCellsCloud
|
26
|
+
class LiteCellsApi
|
27
|
+
attr_accessor :api_client
|
28
|
+
|
29
|
+
def initialize(client_id,client_secret, app_version = 'v3.0', app_host = 'api.aspose.cloud', api_client = ApiClient.default)
|
30
|
+
@api_client = api_client
|
31
|
+
@api_client.config.client_secret = client_secret
|
32
|
+
@api_client.config.client_id = client_id
|
33
|
+
@api_client.config.api_version = app_version
|
34
|
+
@api_client.config.host = app_host
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
#
|
39
|
+
# @param file File to upload
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [String] :type (default to all)
|
42
|
+
# @return [FilesResult]
|
43
|
+
def delete_metadata(file, opts = {})
|
44
|
+
data, _status_code, _headers = delete_metadata_with_http_info(file, opts)
|
45
|
+
return data
|
46
|
+
end
|
47
|
+
|
48
|
+
#
|
49
|
+
#
|
50
|
+
# @param file File to upload
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @option opts [String] :type
|
53
|
+
# @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
|
54
|
+
def delete_metadata_with_http_info(file, opts = {})
|
55
|
+
if @api_client.config.debugging
|
56
|
+
@api_client.config.logger.debug "Calling API: LiteCellsApi.delete_metadata ..."
|
57
|
+
end
|
58
|
+
@api_client.request_token_if_needed
|
59
|
+
# verify the required parameter 'file' is set
|
60
|
+
if @api_client.config.client_side_validation && file.nil?
|
61
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.delete_metadata"
|
62
|
+
end
|
63
|
+
# resource path
|
64
|
+
local_var_path = "/cells/metadata/delete"
|
65
|
+
|
66
|
+
# query parameters
|
67
|
+
query_params = {}
|
68
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
69
|
+
|
70
|
+
# header parameters
|
71
|
+
header_params = {}
|
72
|
+
# HTTP header 'Accept' (if needed)
|
73
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
74
|
+
# HTTP header 'Content-Type'
|
75
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
76
|
+
|
77
|
+
# form parameters
|
78
|
+
form_params = {}
|
79
|
+
file.each do |filename , context|
|
80
|
+
form_params[filename] = context
|
81
|
+
end
|
82
|
+
|
83
|
+
# http body (model)
|
84
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
85
|
+
post_body = ""
|
86
|
+
#auth_names = []
|
87
|
+
auth_names = ['JWT']
|
88
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
89
|
+
:header_params => header_params,
|
90
|
+
:query_params => query_params,
|
91
|
+
:form_params => form_params,
|
92
|
+
:body => post_body,
|
93
|
+
:auth_names => auth_names,
|
94
|
+
:return_type => 'FilesResult')
|
95
|
+
if @api_client.config.debugging
|
96
|
+
@api_client.config.logger.debug "API called: LiteCellsApi#delete_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
97
|
+
end
|
98
|
+
return data, status_code, headers
|
99
|
+
end
|
100
|
+
|
101
|
+
#
|
102
|
+
#
|
103
|
+
# @param file File to upload
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @option opts [String] :type (default to all)
|
106
|
+
# @return [Array<CellsDocumentProperty>]
|
107
|
+
def get_metadata(file, opts = {})
|
108
|
+
data, _status_code, _headers = get_metadata_with_http_info(file, opts)
|
109
|
+
return data
|
110
|
+
end
|
111
|
+
|
112
|
+
#
|
113
|
+
#
|
114
|
+
# @param file File to upload
|
115
|
+
# @param [Hash] opts the optional parameters
|
116
|
+
# @option opts [String] :type
|
117
|
+
# @return [Array<(Array<CellsDocumentProperty>, Fixnum, Hash)>] Array<CellsDocumentProperty> data, response status code and response headers
|
118
|
+
def get_metadata_with_http_info(file, opts = {})
|
119
|
+
if @api_client.config.debugging
|
120
|
+
@api_client.config.logger.debug "Calling API: LiteCellsApi.get_metadata ..."
|
121
|
+
end
|
122
|
+
@api_client.request_token_if_needed
|
123
|
+
# verify the required parameter 'file' is set
|
124
|
+
if @api_client.config.client_side_validation && file.nil?
|
125
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.get_metadata"
|
126
|
+
end
|
127
|
+
# resource path
|
128
|
+
local_var_path = "/cells/metadata/get"
|
129
|
+
|
130
|
+
# query parameters
|
131
|
+
query_params = {}
|
132
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
133
|
+
|
134
|
+
# header parameters
|
135
|
+
header_params = {}
|
136
|
+
# HTTP header 'Accept' (if needed)
|
137
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
138
|
+
# HTTP header 'Content-Type'
|
139
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
140
|
+
|
141
|
+
# form parameters
|
142
|
+
form_params = {}
|
143
|
+
file.each do |filename , context|
|
144
|
+
form_params[filename] = context
|
145
|
+
end
|
146
|
+
|
147
|
+
# http body (model)
|
148
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
149
|
+
post_body = ""
|
150
|
+
#auth_names = []
|
151
|
+
auth_names = ['JWT']
|
152
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
153
|
+
:header_params => header_params,
|
154
|
+
:query_params => query_params,
|
155
|
+
:form_params => form_params,
|
156
|
+
:body => post_body,
|
157
|
+
:auth_names => auth_names,
|
158
|
+
:return_type => 'Array<CellsDocumentProperty>')
|
159
|
+
if @api_client.config.debugging
|
160
|
+
@api_client.config.logger.debug "API called: LiteCellsApi#get_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
161
|
+
end
|
162
|
+
return data, status_code, headers
|
163
|
+
end
|
164
|
+
|
165
|
+
#
|
166
|
+
#
|
167
|
+
# @param file File to upload
|
168
|
+
# @param datasource
|
169
|
+
# @param [Hash] opts the optional parameters
|
170
|
+
# @option opts [String] :format (default to Xlsx)
|
171
|
+
# @return [FilesResult]
|
172
|
+
def post_assemble(file, datasource, opts = {})
|
173
|
+
data, _status_code, _headers = post_assemble_with_http_info(file, datasource, opts)
|
174
|
+
return data
|
175
|
+
end
|
176
|
+
|
177
|
+
#
|
178
|
+
#
|
179
|
+
# @param file File to upload
|
180
|
+
# @param datasource
|
181
|
+
# @param [Hash] opts the optional parameters
|
182
|
+
# @option opts [String] :format
|
183
|
+
# @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
|
184
|
+
def post_assemble_with_http_info(file, datasource, opts = {})
|
185
|
+
if @api_client.config.debugging
|
186
|
+
@api_client.config.logger.debug "Calling API: LiteCellsApi.post_assemble ..."
|
187
|
+
end
|
188
|
+
@api_client.request_token_if_needed
|
189
|
+
# verify the required parameter 'file' is set
|
190
|
+
if @api_client.config.client_side_validation && file.nil?
|
191
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_assemble"
|
192
|
+
end
|
193
|
+
# verify the required parameter 'datasource' is set
|
194
|
+
if @api_client.config.client_side_validation && datasource.nil?
|
195
|
+
fail ArgumentError, "Missing the required parameter 'datasource' when calling LiteCellsApi.post_assemble"
|
196
|
+
end
|
197
|
+
# resource path
|
198
|
+
local_var_path = "/cells/assemble"
|
199
|
+
|
200
|
+
# query parameters
|
201
|
+
query_params = {}
|
202
|
+
query_params[:'datasource'] = datasource
|
203
|
+
query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
|
204
|
+
|
205
|
+
# header parameters
|
206
|
+
header_params = {}
|
207
|
+
# HTTP header 'Accept' (if needed)
|
208
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
209
|
+
# HTTP header 'Content-Type'
|
210
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
211
|
+
# header_params['Content-Type'] == 'multipart/form-data'
|
212
|
+
# form parameters
|
213
|
+
form_params = {}
|
214
|
+
file.each do |filename , context|
|
215
|
+
form_params[filename] = context
|
216
|
+
end
|
217
|
+
|
218
|
+
# http body (model)
|
219
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
220
|
+
post_body = ""
|
221
|
+
#auth_names = []
|
222
|
+
auth_names = ['JWT']
|
223
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
224
|
+
:header_params => header_params,
|
225
|
+
:query_params => query_params,
|
226
|
+
:form_params => form_params,
|
227
|
+
:body => post_body,
|
228
|
+
:auth_names => auth_names,
|
229
|
+
:return_type => 'FilesResult')
|
230
|
+
if @api_client.config.debugging
|
231
|
+
@api_client.config.logger.debug "API called: LiteCellsApi#post_assemble\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
232
|
+
end
|
233
|
+
return data, status_code, headers
|
234
|
+
end
|
235
|
+
|
236
|
+
#
|
237
|
+
#
|
238
|
+
# @param file File to upload
|
239
|
+
# @param objecttype
|
240
|
+
# @param [Hash] opts the optional parameters
|
241
|
+
# @return [FilesResult]
|
242
|
+
def post_clear_objects(file, objecttype, opts = {})
|
243
|
+
data, _status_code, _headers = post_clear_objects_with_http_info(file, objecttype, opts)
|
244
|
+
return data
|
245
|
+
end
|
246
|
+
|
247
|
+
#
|
248
|
+
#
|
249
|
+
# @param file File to upload
|
250
|
+
# @param objecttype
|
251
|
+
# @param [Hash] opts the optional parameters
|
252
|
+
# @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
|
253
|
+
def post_clear_objects_with_http_info(file, objecttype, opts = {})
|
254
|
+
if @api_client.config.debugging
|
255
|
+
@api_client.config.logger.debug "Calling API: LiteCellsApi.post_clear_objects ..."
|
256
|
+
end
|
257
|
+
@api_client.request_token_if_needed
|
258
|
+
# verify the required parameter 'file' is set
|
259
|
+
if @api_client.config.client_side_validation && file.nil?
|
260
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_clear_objects"
|
261
|
+
end
|
262
|
+
# verify the required parameter 'objecttype' is set
|
263
|
+
if @api_client.config.client_side_validation && objecttype.nil?
|
264
|
+
fail ArgumentError, "Missing the required parameter 'objecttype' when calling LiteCellsApi.post_clear_objects"
|
265
|
+
end
|
266
|
+
# resource path
|
267
|
+
local_var_path = "/cells/clearobjects"
|
268
|
+
|
269
|
+
# query parameters
|
270
|
+
query_params = {}
|
271
|
+
query_params[:'objecttype'] = objecttype
|
272
|
+
|
273
|
+
# header parameters
|
274
|
+
header_params = {}
|
275
|
+
# HTTP header 'Accept' (if needed)
|
276
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
277
|
+
# HTTP header 'Content-Type'
|
278
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
279
|
+
|
280
|
+
# form parameters
|
281
|
+
form_params = {}
|
282
|
+
file.each do |filename , context|
|
283
|
+
form_params[filename] = context
|
284
|
+
end
|
285
|
+
|
286
|
+
# http body (model)
|
287
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
288
|
+
post_body = ""
|
289
|
+
#auth_names = []
|
290
|
+
auth_names = ['JWT']
|
291
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
292
|
+
:header_params => header_params,
|
293
|
+
:query_params => query_params,
|
294
|
+
:form_params => form_params,
|
295
|
+
:body => post_body,
|
296
|
+
:auth_names => auth_names,
|
297
|
+
:return_type => 'FilesResult')
|
298
|
+
if @api_client.config.debugging
|
299
|
+
@api_client.config.logger.debug "API called: LiteCellsApi#post_clear_objects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
300
|
+
end
|
301
|
+
return data, status_code, headers
|
302
|
+
end
|
303
|
+
|
304
|
+
#
|
305
|
+
#
|
306
|
+
# @param file File to upload
|
307
|
+
# @param object_type
|
308
|
+
# @param format
|
309
|
+
# @param [Hash] opts the optional parameters
|
310
|
+
# @return [FilesResult]
|
311
|
+
def post_export(file, object_type, format, opts = {})
|
312
|
+
data, _status_code, _headers = post_export_with_http_info(file, object_type, format, opts)
|
313
|
+
return data
|
314
|
+
end
|
315
|
+
|
316
|
+
#
|
317
|
+
#
|
318
|
+
# @param file File to upload
|
319
|
+
# @param object_type
|
320
|
+
# @param format
|
321
|
+
# @param [Hash] opts the optional parameters
|
322
|
+
# @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
|
323
|
+
def post_export_with_http_info(file, object_type, format, opts = {})
|
324
|
+
if @api_client.config.debugging
|
325
|
+
@api_client.config.logger.debug "Calling API: LiteCellsApi.post_export ..."
|
326
|
+
end
|
327
|
+
@api_client.request_token_if_needed
|
328
|
+
# verify the required parameter 'file' is set
|
329
|
+
if @api_client.config.client_side_validation && file.nil?
|
330
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_export"
|
331
|
+
end
|
332
|
+
# verify the required parameter 'object_type' is set
|
333
|
+
if @api_client.config.client_side_validation && object_type.nil?
|
334
|
+
fail ArgumentError, "Missing the required parameter 'object_type' when calling LiteCellsApi.post_export"
|
335
|
+
end
|
336
|
+
# verify the required parameter 'format' is set
|
337
|
+
if @api_client.config.client_side_validation && format.nil?
|
338
|
+
fail ArgumentError, "Missing the required parameter 'format' when calling LiteCellsApi.post_export"
|
339
|
+
end
|
340
|
+
# resource path
|
341
|
+
local_var_path = "/cells/export"
|
342
|
+
|
343
|
+
# query parameters
|
344
|
+
query_params = {}
|
345
|
+
query_params[:'objectType'] = object_type
|
346
|
+
query_params[:'format'] = format
|
347
|
+
|
348
|
+
# header parameters
|
349
|
+
header_params = {}
|
350
|
+
# HTTP header 'Accept' (if needed)
|
351
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
352
|
+
# HTTP header 'Content-Type'
|
353
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
354
|
+
|
355
|
+
# form parameters
|
356
|
+
form_params = {}
|
357
|
+
file.each do |filename , context|
|
358
|
+
form_params[filename] = context
|
359
|
+
end
|
360
|
+
|
361
|
+
# http body (model)
|
362
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
363
|
+
post_body = ""
|
364
|
+
#auth_names = []
|
365
|
+
auth_names = ['JWT']
|
366
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
367
|
+
:header_params => header_params,
|
368
|
+
:query_params => query_params,
|
369
|
+
:form_params => form_params,
|
370
|
+
:body => post_body,
|
371
|
+
:auth_names => auth_names,
|
372
|
+
:return_type => 'FilesResult')
|
373
|
+
if @api_client.config.debugging
|
374
|
+
@api_client.config.logger.debug "API called: LiteCellsApi#post_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
375
|
+
end
|
376
|
+
return data, status_code, headers
|
377
|
+
end
|
378
|
+
|
379
|
+
#
|
380
|
+
#
|
381
|
+
# @param file File to upload
|
382
|
+
# @param import_data
|
383
|
+
# @param [Hash] opts the optional parameters
|
384
|
+
# @return [FilesResult]
|
385
|
+
def post_import(file, import_data, opts = {})
|
386
|
+
data, _status_code, _headers = post_import_with_http_info(file, import_data, opts)
|
387
|
+
return data
|
388
|
+
end
|
389
|
+
|
390
|
+
#
|
391
|
+
#
|
392
|
+
# @param file File to upload
|
393
|
+
# @param import_data
|
394
|
+
# @param [Hash] opts the optional parameters
|
395
|
+
# @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
|
396
|
+
def post_import_with_http_info(file, import_data, opts = {})
|
397
|
+
if @api_client.config.debugging
|
398
|
+
@api_client.config.logger.debug "Calling API: LiteCellsApi.post_import ..."
|
399
|
+
end
|
400
|
+
@api_client.request_token_if_needed
|
401
|
+
# verify the required parameter 'file' is set
|
402
|
+
if @api_client.config.client_side_validation && file.nil?
|
403
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_import"
|
404
|
+
end
|
405
|
+
# verify the required parameter 'import_data' is set
|
406
|
+
if @api_client.config.client_side_validation && import_data.nil?
|
407
|
+
fail ArgumentError, "Missing the required parameter 'import_data' when calling LiteCellsApi.post_import"
|
408
|
+
end
|
409
|
+
# resource path
|
410
|
+
local_var_path = "/cells/import"
|
411
|
+
|
412
|
+
# query parameters
|
413
|
+
query_params = {}
|
414
|
+
|
415
|
+
# header parameters
|
416
|
+
header_params = {}
|
417
|
+
# HTTP header 'Accept' (if needed)
|
418
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
419
|
+
# HTTP header 'Content-Type'
|
420
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
421
|
+
|
422
|
+
# form parameters
|
423
|
+
form_params = {}
|
424
|
+
file.each do |filename , context|
|
425
|
+
form_params[filename] = context
|
426
|
+
end
|
427
|
+
|
428
|
+
# http body (model)
|
429
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
430
|
+
post_body = ""
|
431
|
+
|
432
|
+
# http body (model)
|
433
|
+
post_body = @api_client.object_to_http_body(import_data)
|
434
|
+
if post_body
|
435
|
+
form_params['documentproperties'] = post_body.to_json
|
436
|
+
end
|
437
|
+
|
438
|
+
#auth_names = []
|
439
|
+
auth_names = ['JWT']
|
440
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
441
|
+
:header_params => header_params,
|
442
|
+
:query_params => query_params,
|
443
|
+
:form_params => form_params,
|
444
|
+
:body => post_body,
|
445
|
+
:auth_names => auth_names,
|
446
|
+
:return_type => 'FilesResult')
|
447
|
+
if @api_client.config.debugging
|
448
|
+
@api_client.config.logger.debug "API called: LiteCellsApi#post_import\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
449
|
+
end
|
450
|
+
return data, status_code, headers
|
451
|
+
end
|
452
|
+
|
453
|
+
#
|
454
|
+
#
|
455
|
+
# @param file File to upload
|
456
|
+
# @param [Hash] opts the optional parameters
|
457
|
+
# @option opts [String] :format (default to xlsx)
|
458
|
+
# @option opts [BOOLEAN] :merge_to_one_sheet (default to false)
|
459
|
+
# @return [FileInfo]
|
460
|
+
def post_merge(file, opts = {})
|
461
|
+
data, _status_code, _headers = post_merge_with_http_info(file, opts)
|
462
|
+
return data
|
463
|
+
end
|
464
|
+
|
465
|
+
#
|
466
|
+
#
|
467
|
+
# @param file File to upload
|
468
|
+
# @param [Hash] opts the optional parameters
|
469
|
+
# @option opts [String] :format
|
470
|
+
# @option opts [BOOLEAN] :merge_to_one_sheet
|
471
|
+
# @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
|
472
|
+
def post_merge_with_http_info(file, opts = {})
|
473
|
+
if @api_client.config.debugging
|
474
|
+
@api_client.config.logger.debug "Calling API: LiteCellsApi.post_merge ..."
|
475
|
+
end
|
476
|
+
@api_client.request_token_if_needed
|
477
|
+
# verify the required parameter 'file' is set
|
478
|
+
if @api_client.config.client_side_validation && file.nil?
|
479
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_merge"
|
480
|
+
end
|
481
|
+
# resource path
|
482
|
+
local_var_path = "/cells/merge"
|
483
|
+
|
484
|
+
# query parameters
|
485
|
+
query_params = {}
|
486
|
+
query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
|
487
|
+
query_params[:'mergeToOneSheet'] = opts[:'merge_to_one_sheet'] if !opts[:'merge_to_one_sheet'].nil?
|
488
|
+
|
489
|
+
# header parameters
|
490
|
+
header_params = {}
|
491
|
+
# HTTP header 'Accept' (if needed)
|
492
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
493
|
+
# HTTP header 'Content-Type'
|
494
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
495
|
+
|
496
|
+
# form parameters
|
497
|
+
form_params = {}
|
498
|
+
file.each do |filename , context|
|
499
|
+
form_params[filename] = context
|
500
|
+
end
|
501
|
+
|
502
|
+
# http body (model)
|
503
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
504
|
+
post_body = ""
|
505
|
+
#auth_names = []
|
506
|
+
auth_names = ['JWT']
|
507
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
508
|
+
:header_params => header_params,
|
509
|
+
:query_params => query_params,
|
510
|
+
:form_params => form_params,
|
511
|
+
:body => post_body,
|
512
|
+
:auth_names => auth_names,
|
513
|
+
:return_type => 'FileInfo')
|
514
|
+
if @api_client.config.debugging
|
515
|
+
@api_client.config.logger.debug "API called: LiteCellsApi#post_merge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
516
|
+
end
|
517
|
+
return data, status_code, headers
|
518
|
+
end
|
519
|
+
|
520
|
+
#
|
521
|
+
#
|
522
|
+
# @param file File to upload
|
523
|
+
# @param document_properties Cells document property.
|
524
|
+
# @param [Hash] opts the optional parameters
|
525
|
+
# @return [FilesResult]
|
526
|
+
def post_metadata(file, document_properties, opts = {})
|
527
|
+
data, _status_code, _headers = post_metadata_with_http_info(file, document_properties, opts)
|
528
|
+
return data
|
529
|
+
end
|
530
|
+
|
531
|
+
#
|
532
|
+
#
|
533
|
+
# @param file File to upload
|
534
|
+
# @param document_properties Cells document property.
|
535
|
+
# @param [Hash] opts the optional parameters
|
536
|
+
# @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
|
537
|
+
def post_metadata_with_http_info(file, document_properties, opts = {})
|
538
|
+
if @api_client.config.debugging
|
539
|
+
@api_client.config.logger.debug "Calling API: LiteCellsApi.post_metadata ..."
|
540
|
+
end
|
541
|
+
@api_client.request_token_if_needed
|
542
|
+
# verify the required parameter 'file' is set
|
543
|
+
if @api_client.config.client_side_validation && file.nil?
|
544
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_metadata"
|
545
|
+
end
|
546
|
+
# verify the required parameter 'document_properties' is set
|
547
|
+
if @api_client.config.client_side_validation && document_properties.nil?
|
548
|
+
fail ArgumentError, "Missing the required parameter 'document_properties' when calling LiteCellsApi.post_metadata"
|
549
|
+
end
|
550
|
+
# resource path
|
551
|
+
local_var_path = "/cells/metadata/update"
|
552
|
+
|
553
|
+
# query parameters
|
554
|
+
query_params = {}
|
555
|
+
|
556
|
+
# header parameters
|
557
|
+
header_params = {}
|
558
|
+
# HTTP header 'Accept' (if needed)
|
559
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
560
|
+
# HTTP header 'Content-Type'
|
561
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
562
|
+
|
563
|
+
# form parameters
|
564
|
+
form_params = {}
|
565
|
+
file.each do |filename , context|
|
566
|
+
form_params[filename] = context
|
567
|
+
end
|
568
|
+
|
569
|
+
# http body (model)
|
570
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
571
|
+
post_body = ""
|
572
|
+
|
573
|
+
# http body (model)
|
574
|
+
post_body = @api_client.object_to_http_body(document_properties)
|
575
|
+
if post_body
|
576
|
+
form_params['documentproperties'] = post_body.to_json
|
577
|
+
end
|
578
|
+
#auth_names = []
|
579
|
+
auth_names = ['JWT']
|
580
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
581
|
+
:header_params => header_params,
|
582
|
+
:query_params => query_params,
|
583
|
+
:form_params => form_params,
|
584
|
+
:body => post_body,
|
585
|
+
:auth_names => auth_names,
|
586
|
+
:return_type => 'FilesResult')
|
587
|
+
if @api_client.config.debugging
|
588
|
+
@api_client.config.logger.debug "API called: LiteCellsApi#post_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
589
|
+
end
|
590
|
+
return data, status_code, headers
|
591
|
+
end
|
592
|
+
|
593
|
+
#
|
594
|
+
#
|
595
|
+
# @param file File to upload
|
596
|
+
# @param password
|
597
|
+
# @param [Hash] opts the optional parameters
|
598
|
+
# @return [FilesResult]
|
599
|
+
def post_protect(file, password, opts = {})
|
600
|
+
data, _status_code, _headers = post_protect_with_http_info(file, password, opts)
|
601
|
+
return data
|
602
|
+
end
|
603
|
+
|
604
|
+
#
|
605
|
+
#
|
606
|
+
# @param file File to upload
|
607
|
+
# @param password
|
608
|
+
# @param [Hash] opts the optional parameters
|
609
|
+
# @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
|
610
|
+
def post_protect_with_http_info(file, password, opts = {})
|
611
|
+
if @api_client.config.debugging
|
612
|
+
@api_client.config.logger.debug "Calling API: LiteCellsApi.post_protect ..."
|
613
|
+
end
|
614
|
+
@api_client.request_token_if_needed
|
615
|
+
# verify the required parameter 'file' is set
|
616
|
+
if @api_client.config.client_side_validation && file.nil?
|
617
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_protect"
|
618
|
+
end
|
619
|
+
# verify the required parameter 'password' is set
|
620
|
+
if @api_client.config.client_side_validation && password.nil?
|
621
|
+
fail ArgumentError, "Missing the required parameter 'password' when calling LiteCellsApi.post_protect"
|
622
|
+
end
|
623
|
+
# resource path
|
624
|
+
local_var_path = "/cells/protect"
|
625
|
+
|
626
|
+
# query parameters
|
627
|
+
query_params = {}
|
628
|
+
query_params[:'password'] = password
|
629
|
+
|
630
|
+
# header parameters
|
631
|
+
header_params = {}
|
632
|
+
# HTTP header 'Accept' (if needed)
|
633
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
634
|
+
# HTTP header 'Content-Type'
|
635
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
636
|
+
|
637
|
+
# form parameters
|
638
|
+
form_params = {}
|
639
|
+
file.each do |filename , context|
|
640
|
+
form_params[filename] = context
|
641
|
+
end
|
642
|
+
|
643
|
+
# http body (model)
|
644
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
645
|
+
post_body = ""
|
646
|
+
#auth_names = []
|
647
|
+
auth_names = ['JWT']
|
648
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
649
|
+
:header_params => header_params,
|
650
|
+
:query_params => query_params,
|
651
|
+
:form_params => form_params,
|
652
|
+
:body => post_body,
|
653
|
+
:auth_names => auth_names,
|
654
|
+
:return_type => 'FilesResult')
|
655
|
+
if @api_client.config.debugging
|
656
|
+
@api_client.config.logger.debug "API called: LiteCellsApi#post_protect\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
657
|
+
end
|
658
|
+
return data, status_code, headers
|
659
|
+
end
|
660
|
+
|
661
|
+
#
|
662
|
+
#
|
663
|
+
# @param file File to upload
|
664
|
+
# @param text
|
665
|
+
# @param [Hash] opts the optional parameters
|
666
|
+
# @option opts [String] :password
|
667
|
+
# @option opts [String] :sheetname
|
668
|
+
# @return [Array<TextItem>]
|
669
|
+
def post_search(file, text, opts = {})
|
670
|
+
data, _status_code, _headers = post_search_with_http_info(file, text, opts)
|
671
|
+
return data
|
672
|
+
end
|
673
|
+
|
674
|
+
#
|
675
|
+
#
|
676
|
+
# @param file File to upload
|
677
|
+
# @param text
|
678
|
+
# @param [Hash] opts the optional parameters
|
679
|
+
# @option opts [String] :password
|
680
|
+
# @option opts [String] :sheetname
|
681
|
+
# @return [Array<(Array<TextItem>, Fixnum, Hash)>] Array<TextItem> data, response status code and response headers
|
682
|
+
def post_search_with_http_info(file, text, opts = {})
|
683
|
+
if @api_client.config.debugging
|
684
|
+
@api_client.config.logger.debug "Calling API: LiteCellsApi.post_search ..."
|
685
|
+
end
|
686
|
+
@api_client.request_token_if_needed
|
687
|
+
# verify the required parameter 'file' is set
|
688
|
+
if @api_client.config.client_side_validation && file.nil?
|
689
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_search"
|
690
|
+
end
|
691
|
+
# verify the required parameter 'text' is set
|
692
|
+
if @api_client.config.client_side_validation && text.nil?
|
693
|
+
fail ArgumentError, "Missing the required parameter 'text' when calling LiteCellsApi.post_search"
|
694
|
+
end
|
695
|
+
# resource path
|
696
|
+
local_var_path = "/cells/search"
|
697
|
+
|
698
|
+
# query parameters
|
699
|
+
query_params = {}
|
700
|
+
query_params[:'text'] = text
|
701
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
702
|
+
query_params[:'sheetname'] = opts[:'sheetname'] if !opts[:'sheetname'].nil?
|
703
|
+
|
704
|
+
# header parameters
|
705
|
+
header_params = {}
|
706
|
+
# HTTP header 'Accept' (if needed)
|
707
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
708
|
+
# HTTP header 'Content-Type'
|
709
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
710
|
+
|
711
|
+
# form parameters
|
712
|
+
form_params = {}
|
713
|
+
file.each do |filename , context|
|
714
|
+
form_params[filename] = context
|
715
|
+
end
|
716
|
+
|
717
|
+
# http body (model)
|
718
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
719
|
+
post_body = ""
|
720
|
+
#auth_names = []
|
721
|
+
auth_names = ['JWT']
|
722
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
723
|
+
:header_params => header_params,
|
724
|
+
:query_params => query_params,
|
725
|
+
:form_params => form_params,
|
726
|
+
:body => post_body,
|
727
|
+
:auth_names => auth_names,
|
728
|
+
:return_type => 'Array<TextItem>')
|
729
|
+
if @api_client.config.debugging
|
730
|
+
@api_client.config.logger.debug "API called: LiteCellsApi#post_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
731
|
+
end
|
732
|
+
return data, status_code, headers
|
733
|
+
end
|
734
|
+
|
735
|
+
#
|
736
|
+
#
|
737
|
+
# @param file File to upload
|
738
|
+
# @param format
|
739
|
+
# @param [Hash] opts the optional parameters
|
740
|
+
# @option opts [String] :password
|
741
|
+
# @option opts [Integer] :from
|
742
|
+
# @option opts [Integer] :to
|
743
|
+
# @return [FilesResult]
|
744
|
+
def post_split(file, format, opts = {})
|
745
|
+
data, _status_code, _headers = post_split_with_http_info(file, format, opts)
|
746
|
+
return data
|
747
|
+
end
|
748
|
+
|
749
|
+
#
|
750
|
+
#
|
751
|
+
# @param file File to upload
|
752
|
+
# @param format
|
753
|
+
# @param [Hash] opts the optional parameters
|
754
|
+
# @option opts [String] :password
|
755
|
+
# @option opts [Integer] :from
|
756
|
+
# @option opts [Integer] :to
|
757
|
+
# @option opts [String] :path
|
758
|
+
# @option opts [String] :storage_name
|
759
|
+
# @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
|
760
|
+
def post_split_with_http_info(file, format, opts = {})
|
761
|
+
if @api_client.config.debugging
|
762
|
+
@api_client.config.logger.debug "Calling API: LiteCellsApi.post_split ..."
|
763
|
+
end
|
764
|
+
@api_client.request_token_if_needed
|
765
|
+
# verify the required parameter 'file' is set
|
766
|
+
if @api_client.config.client_side_validation && file.nil?
|
767
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_split"
|
768
|
+
end
|
769
|
+
# verify the required parameter 'format' is set
|
770
|
+
if @api_client.config.client_side_validation && format.nil?
|
771
|
+
fail ArgumentError, "Missing the required parameter 'format' when calling LiteCellsApi.post_split"
|
772
|
+
end
|
773
|
+
# resource path
|
774
|
+
local_var_path = "/cells/split"
|
775
|
+
|
776
|
+
# query parameters
|
777
|
+
query_params = {}
|
778
|
+
query_params[:'format'] = format
|
779
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
780
|
+
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
781
|
+
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
782
|
+
|
783
|
+
# header parameters
|
784
|
+
header_params = {}
|
785
|
+
# HTTP header 'Accept' (if needed)
|
786
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
787
|
+
# HTTP header 'Content-Type'
|
788
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
789
|
+
|
790
|
+
# form parameters
|
791
|
+
form_params = {}
|
792
|
+
file.each do |filename , context|
|
793
|
+
form_params[filename] = context
|
794
|
+
end
|
795
|
+
|
796
|
+
# http body (model)
|
797
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
798
|
+
post_body = ""
|
799
|
+
#auth_names = []
|
800
|
+
auth_names = ['JWT']
|
801
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
802
|
+
:header_params => header_params,
|
803
|
+
:query_params => query_params,
|
804
|
+
:form_params => form_params,
|
805
|
+
:body => post_body,
|
806
|
+
:auth_names => auth_names,
|
807
|
+
:return_type => 'FilesResult')
|
808
|
+
if @api_client.config.debugging
|
809
|
+
@api_client.config.logger.debug "API called: LiteCellsApi#post_split\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
810
|
+
end
|
811
|
+
return data, status_code, headers
|
812
|
+
end
|
813
|
+
|
814
|
+
#
|
815
|
+
#
|
816
|
+
# @param file File to upload
|
817
|
+
# @param password
|
818
|
+
# @param [Hash] opts the optional parameters
|
819
|
+
# @return [FilesResult]
|
820
|
+
def post_unlock(file, password, opts = {})
|
821
|
+
data, _status_code, _headers = post_unlock_with_http_info(file, password, opts)
|
822
|
+
return data
|
823
|
+
end
|
824
|
+
|
825
|
+
#
|
826
|
+
#
|
827
|
+
# @param file File to upload
|
828
|
+
# @param password
|
829
|
+
# @param [Hash] opts the optional parameters
|
830
|
+
# @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
|
831
|
+
def post_unlock_with_http_info(file, password, opts = {})
|
832
|
+
if @api_client.config.debugging
|
833
|
+
@api_client.config.logger.debug "Calling API: LiteCellsApi.post_unlock ..."
|
834
|
+
end
|
835
|
+
@api_client.request_token_if_needed
|
836
|
+
# verify the required parameter 'file' is set
|
837
|
+
if @api_client.config.client_side_validation && file.nil?
|
838
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_unlock"
|
839
|
+
end
|
840
|
+
# verify the required parameter 'password' is set
|
841
|
+
if @api_client.config.client_side_validation && password.nil?
|
842
|
+
fail ArgumentError, "Missing the required parameter 'password' when calling LiteCellsApi.post_unlock"
|
843
|
+
end
|
844
|
+
# resource path
|
845
|
+
local_var_path = "/cells/unlock"
|
846
|
+
|
847
|
+
# query parameters
|
848
|
+
query_params = {}
|
849
|
+
query_params[:'password'] = password
|
850
|
+
|
851
|
+
# header parameters
|
852
|
+
header_params = {}
|
853
|
+
# HTTP header 'Accept' (if needed)
|
854
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
855
|
+
# HTTP header 'Content-Type'
|
856
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
857
|
+
|
858
|
+
# form parameters
|
859
|
+
form_params = {}
|
860
|
+
file.each do |filename , context|
|
861
|
+
form_params[filename] = context
|
862
|
+
end
|
863
|
+
|
864
|
+
# http body (model)
|
865
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
866
|
+
post_body = ""
|
867
|
+
#auth_names = []
|
868
|
+
auth_names = ['JWT']
|
869
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
870
|
+
:header_params => header_params,
|
871
|
+
:query_params => query_params,
|
872
|
+
:form_params => form_params,
|
873
|
+
:body => post_body,
|
874
|
+
:auth_names => auth_names,
|
875
|
+
:return_type => 'FilesResult')
|
876
|
+
if @api_client.config.debugging
|
877
|
+
@api_client.config.logger.debug "API called: LiteCellsApi#post_unlock\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
878
|
+
end
|
879
|
+
return data, status_code, headers
|
880
|
+
end
|
881
|
+
|
882
|
+
#
|
883
|
+
#
|
884
|
+
# @param file File to upload
|
885
|
+
# @param text
|
886
|
+
# @param color
|
887
|
+
# @param [Hash] opts the optional parameters
|
888
|
+
# @return [FilesResult]
|
889
|
+
def post_watermark(file, text, color, opts = {})
|
890
|
+
data, _status_code, _headers = post_watermark_with_http_info(file, text, color, opts)
|
891
|
+
return data
|
892
|
+
end
|
893
|
+
|
894
|
+
#
|
895
|
+
#
|
896
|
+
# @param file File to upload
|
897
|
+
# @param text
|
898
|
+
# @param color
|
899
|
+
# @param [Hash] opts the optional parameters
|
900
|
+
# @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
|
901
|
+
def post_watermark_with_http_info(file, text, color, opts = {})
|
902
|
+
if @api_client.config.debugging
|
903
|
+
@api_client.config.logger.debug "Calling API: LiteCellsApi.post_watermark ..."
|
904
|
+
end
|
905
|
+
@api_client.request_token_if_needed
|
906
|
+
# verify the required parameter 'file' is set
|
907
|
+
if @api_client.config.client_side_validation && file.nil?
|
908
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_watermark"
|
909
|
+
end
|
910
|
+
# verify the required parameter 'text' is set
|
911
|
+
if @api_client.config.client_side_validation && text.nil?
|
912
|
+
fail ArgumentError, "Missing the required parameter 'text' when calling LiteCellsApi.post_watermark"
|
913
|
+
end
|
914
|
+
# verify the required parameter 'color' is set
|
915
|
+
if @api_client.config.client_side_validation && color.nil?
|
916
|
+
fail ArgumentError, "Missing the required parameter 'color' when calling LiteCellsApi.post_watermark"
|
917
|
+
end
|
918
|
+
# resource path
|
919
|
+
local_var_path = "/cells/watermark"
|
920
|
+
|
921
|
+
# query parameters
|
922
|
+
query_params = {}
|
923
|
+
query_params[:'text'] = text
|
924
|
+
query_params[:'color'] = color
|
925
|
+
|
926
|
+
# header parameters
|
927
|
+
header_params = {}
|
928
|
+
# HTTP header 'Accept' (if needed)
|
929
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
930
|
+
# HTTP header 'Content-Type'
|
931
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
932
|
+
|
933
|
+
# form parameters
|
934
|
+
form_params = {}
|
935
|
+
file.each do |filename , context|
|
936
|
+
form_params[filename] = context
|
937
|
+
end
|
938
|
+
|
939
|
+
# http body (model)
|
940
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
941
|
+
post_body = ""
|
942
|
+
#auth_names = []
|
943
|
+
auth_names = ['JWT']
|
944
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
945
|
+
:header_params => header_params,
|
946
|
+
:query_params => query_params,
|
947
|
+
:form_params => form_params,
|
948
|
+
:body => post_body,
|
949
|
+
:auth_names => auth_names,
|
950
|
+
:return_type => 'FilesResult')
|
951
|
+
if @api_client.config.debugging
|
952
|
+
@api_client.config.logger.debug "API called: LiteCellsApi#post_watermark\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
953
|
+
end
|
954
|
+
return data, status_code, headers
|
955
|
+
end
|
956
|
+
end
|
957
|
+
end
|