namespace Aspose.Cells.Cloud.SDK.Tests.Api.Example { using Microsoft.VisualStudio.TestTools.UnitTesting; using Aspose.Cells.Cloud.SDK.Request; using System.Collections.Generic; using Aspose.Cells.Cloud.SDK.Api; using Aspose.Cells.Cloud.SDK.Model; using System; using System.IO; [TestClass] public class CellsApiExample { CellsApi cellsApi = new CellsApi(Environment.GetEnvironmentVariable("CellsCloudTestClientId"), Environment.GetEnvironmentVariable("CellsCloudTestClientSecret")); string localName = "Book1.xlsx"; string localPath = "D:/TestData/CellsCloud"; [TestCategory("Cells")] [TestMethod] public void Example() { IDictionary<string, Stream> mapFiles = new Dictionary<string, Stream>(); mapFiles.Add(localName, File.OpenRead(localPath +"/"+ localName)); PostClearObjectsRequest request = new PostClearObjectsRequest { File = mapFiles, objecttype = "picture", outFormat ="pdf" }; cellsApi.PostClearObjects(request); } } }