require 'openssl'
require 'bundler'
require 'aspose_cells_cloud'

@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'],'v3.0',ENV['CellsCloudApiBaseUrl'])

remote_folder = 'TestData/In'

local_name = 'Book1.xlsx'
remote_name = 'Book1.xlsx'

    
mapFiles = { }               
mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")  
 
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
@instance.upload_file(uploadrequest)
dto = AsposeCellsCloud::Shape.new(:LowerRightColumn=>10 );
request =   AsposeCellsCloud::PostWorksheetShapeRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:shapeindex=>0,:dto=>dto,:folder=>remote_folder,:storageName=>'');
@instance.post_worksheet_shape(request);