POST
https://api.aspose.cloud/v3.0/cells/protect
Choose files
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("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
string filePath = "test.txt";
PostProtectRequest request = new PostProtectRequest();
request.File = new Dictionary<string, Stream>();
Stream fileStream = File.OpenRead(filePath);
request.File.Add(filePath, fileStream);
request.protectWorkbookRequest = new Model.ProtectWorkbookRequest{};
request.password = "asposelock";
Aspose.Cells.Cloud.SDK.Model.FilesResult result = cellsApi.PostProtect(request);
fileStream.Close();