using Aspose.Cells.Cloud.SDK.Api;
using Aspose.Cells.Cloud.SDK.Model;
using Aspose.Cells.Cloud.SDK.Request;
using System;
using System.IO;
using System.Collections.Generic;

CellsApi cellsApi = new CellsApi(Environment.GetEnvironmentVariable("CellsCloudTestClientId"), Environment.GetEnvironmentVariable("CellsCloudTestClientSecret"));
string remoteFolder = "TestData/In";

string localName = "Book1.xlsx";
string myDocumentXLSX = "myDocument.xlsx";
string remoteName = "Book1.xlsx";


this.UploadFile( myDocumentXLSX, remoteFolder + "/myDocument.xlsx", "");

var request = new PostWorkbooksMergeRequest(
    name: remoteName,
    mergeWith: remoteFolder + "/myDocument.xlsx",
    folder: remoteFolder,
    storageName: "",
    mergedStorageName: ""
);
cellsApi.PostWorkbooksMerge(request);