require 'openssl' require 'bundler' require 'aspose_cells_cloud' CellsCloudClientId = "...." # get from https://dashboard.aspose.cloud/#/applications CellsCloudClientSecret = "...." # get from https://dashboard.aspose.cloud/#/applications @instance = AsposeCellsCloud::CellsApi.new(CellsCloudClientId, CellsCloudClientSecret) book1_xlsx = 'Book1.xlsx' format = "xlsx" mapFiles = { } mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r") request = AsposeCellsCloud::PostRepairRequest.new(:File=>mapFiles,:outFormat=>format); @instance.post_repair(request);