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

    public class CellsApiExample
    {
        string CellsCloudClientId ="....";//get from https://dashboard.aspose.cloud/#/applications
        string CellsCloudClientSecret="...";//get from https://dashboard.aspose.cloud/#/applications
        CellsApi cellsApi = new CellsApi(CellsCloudClientId, CellsCloudClientSecret);

        string localName = "Home construction budget.xlsx";
        string localPath = @"D:\TestData\CellsCloud";
        string outputFilePath = @"D:\Outpath\result.pdf";

        public void ExampleAvailableSDKs()
        {
            string inputPath = Path.Combine(localPath, localName);
            using (var inputFile = File.OpenRead(inputPath))
            using (var outputFile = File.Create(outputFilePath))
            {
                var mapFiles = new Dictionary<string, Stream> { [localName] = inputFile };
                var request = new PutConvertWorkbookRequest { File = mapFiles, format = "pdf" };
                var response = cellsApi.PutConvertWorkbook(request);
                response.CopyTo(outputFile);
            }
        }
    }
}