Skip to content

Commit 7c817a4

Browse files
committed
20210803 update 1 : fix post search/split methods and update readme.
1 parent 88f9be7 commit 7c817a4

File tree

4 files changed

+26
-31
lines changed

4 files changed

+26
-31
lines changed

Aspose.Cells.Cloud.SDK.Test/LiteApi/SearchTests.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,20 @@ public void PostSearchApi_Test()
6868
Assert.IsInstanceOf<IList<Model.TextItem>>(filesResult, "response is FileInfo");
6969
}
7070

71-
71+
[Test]
72+
public void PostSearchApi_Sheet_Test()
73+
{
74+
if (IsDockerTest)
75+
{
76+
Assert.IsTrue(true);
77+
return;
78+
}
79+
IDictionary<string, Stream> files = new Dictionary<string, Stream>();
80+
files.Add(BOOK1, GetTestDataStream(BOOK1));
81+
files.Add(MYDOC, GetTestDataStream(MYDOC));
82+
var filesResult = instance.PostSearch(files, "1",null,"Sheet1");
83+
Assert.IsInstanceOf<IList<Model.TextItem>>(filesResult, "response is FileInfo");
84+
}
7285
}
7386

7487
}

Aspose.Cells.Cloud.SDK/Api/LiteCellsApi.cs

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,8 @@ public interface ILiteCellsApi
150150
/// <param name="file">File to upload</param>
151151
/// <param name="password"> (optional)</param>
152152
/// <param name="sheetname"> (optional)</param>
153-
/// <param name="path"> (optional)</param>
154-
/// <param name="storageName"> (optional)</param>
155153
/// <returns>System.IO.Stream</returns>
156-
IList<Model.TextItem> PostSearch(IDictionary<string, System.IO.Stream> files, string text, string password = null, string sheetname = null, string path = null, string storageName = null);
154+
IList<Model.TextItem> PostSearch(IDictionary<string, System.IO.Stream> files, string text, string password = null, string sheetname = null);
157155

158156

159157
/// <summary>
@@ -168,10 +166,8 @@ public interface ILiteCellsApi
168166
/// <param name="password"> (optional)</param>
169167
/// <param name="from"> (optional)</param>
170168
/// <param name="to"> (optional)</param>
171-
/// <param name="path"> (optional)</param>
172-
/// <param name="storageName"> (optional)</param>
173169
/// <returns>FilesResult</returns>
174-
FilesResult PostSplit( IDictionary<string, System.IO.Stream> files, string format, string password = null, int? from = null, int? to = null, string path = null, string storageName = null);
170+
FilesResult PostSplit( IDictionary<string, System.IO.Stream> files, string format, string password = null, int? from = null, int? to = null);
175171

176172

177173
/// <summary>
@@ -862,7 +858,7 @@ public FilesResult PostProtect( IDictionary<string, System.IO.Stream> files, str
862858
/// <param name="path"> (optional)</param>
863859
/// <param name="storageName"> (optional)</param>
864860
/// <returns>System.IO.Stream</returns>
865-
public IList<Model.TextItem> PostSearch(IDictionary<string, System.IO.Stream> files, string text, string password = null, string sheetname = null, string path = null, string storageName = null)
861+
public IList<Model.TextItem> PostSearch(IDictionary<string, System.IO.Stream> files, string text, string password = null, string sheetname = null)
866862
{
867863
checkAccessToken();
868864
// verify the required parameter 'text' is set
@@ -897,8 +893,6 @@ public FilesResult PostProtect( IDictionary<string, System.IO.Stream> files, str
897893
if (text != null) localVarQueryParams.Add("text", Configuration.ApiClient.ParameterToString(text)); // query parameter
898894
if (password != null) localVarQueryParams.Add("password", Configuration.ApiClient.ParameterToString(password)); // query parameter
899895
if (sheetname != null) localVarQueryParams.Add("sheetname", Configuration.ApiClient.ParameterToString(sheetname)); // query parameter
900-
if (path != null) localVarQueryParams.Add("path", Configuration.ApiClient.ParameterToString(path)); // query parameter
901-
if (storageName != null) localVarQueryParams.Add("storageName", Configuration.ApiClient.ParameterToString(storageName)); // query parameter
902896
foreach (KeyValuePair<string, System.IO.Stream> file in files)
903897
{
904898
localVarFileParams.Add(file.Key, Configuration.ApiClient.ParameterToFile(file.Key, file.Value));
@@ -934,10 +928,8 @@ public FilesResult PostProtect( IDictionary<string, System.IO.Stream> files, str
934928
/// <param name="password"> (optional)</param>
935929
/// <param name="from"> (optional)</param>
936930
/// <param name="to"> (optional)</param>
937-
/// <param name="path"> (optional)</param>
938-
/// <param name="storageName"> (optional)</param>
939931
/// <returns>FilesResult</returns>
940-
public FilesResult PostSplit( IDictionary<string, System.IO.Stream> files, string format, string password = null, int? from = null, int? to = null, string path = null, string storageName = null)
932+
public FilesResult PostSplit( IDictionary<string, System.IO.Stream> files, string format, string password = null, int? from = null, int? to = null)
941933
{
942934
checkAccessToken();
943935
// verify the required parameter 'format' is set
@@ -973,8 +965,6 @@ public FilesResult PostSplit( IDictionary<string, System.IO.Stream> files, strin
973965
if (password != null) localVarQueryParams.Add("password", Configuration.ApiClient.ParameterToString(password)); // query parameter
974966
if (from != null) localVarQueryParams.Add("from", Configuration.ApiClient.ParameterToString(from)); // query parameter
975967
if (to != null) localVarQueryParams.Add("to", Configuration.ApiClient.ParameterToString(to)); // query parameter
976-
if (path != null) localVarQueryParams.Add("path", Configuration.ApiClient.ParameterToString(path)); // query parameter
977-
if (storageName != null) localVarQueryParams.Add("storageName", Configuration.ApiClient.ParameterToString(storageName)); // query parameter
978968
foreach (KeyValuePair<string, System.IO.Stream> file in files)
979969
{
980970
localVarFileParams.Add(file.Key, Configuration.ApiClient.ParameterToFile(file.Key, file.Value));

Aspose.Cells.Cloud.SDK/Aspose.Cells.Cloud.SDK.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<Description>This SDK allows you to work with Aspose.Cells Cloud REST APIs in your .NET applications quickly and easily, with zero initial cost.</Description>
1212
<Copyright>MIT</Copyright>
1313
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
14-
<AssemblyVersion>21.6.1</AssemblyVersion>
15-
<FileVersion>21.6.1</FileVersion>
16-
<Version>21.6.1</Version>
14+
<AssemblyVersion>21.7</AssemblyVersion>
15+
<FileVersion>21.7</FileVersion>
16+
<Version>21.7</Version>
1717
</PropertyGroup>
1818

1919
<ItemGroup>

README.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![Nuget](https://img.shields.io/nuget/v/Aspose.Cells-Cloud) ![Nuget](https://img.shields.io/nuget/dt/Aspose.Cells-Cloud) ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-dotnet)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-dotnet/21.6)
1+
![Nuget](https://img.shields.io/nuget/v/Aspose.Cells-Cloud) ![Nuget](https://img.shields.io/nuget/dt/Aspose.Cells-Cloud) ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-dotnet)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-dotnet/21.7)
22

33
# .NET SDK for Spreadsheet Processing in the Cloud
44

@@ -20,20 +20,12 @@ The Cloud SDK enhances your C#, ASP.NET, & other .NET-based cloud apps to [proce
2020
- Fetch the required shape from worksheet.
2121
- [Leverage the power of Pivot Tables](https://docs.aspose.cloud/cells/working-with-pivot-tables/) & Ranges.
2222

23-
## Feature & Enhancements in Version 21.6
2423

25-
- Improvement document properties.
26-
- Update the return value of put/post/delete.
27-
- Improvement export API.
28-
- Improve split API.
29-
- Improve merge API.
30-
- Improve unlock API.
31-
- Improve protected API.
32-
- Improve watermark API.
24+
## Feature & Enhancements in Version 21.7
25+
26+
- Fix search API.
27+
- Fix split API.
3328

34-
## Feature & Enhancements in Version 21.6.1
35-
- Correct spelling errors in the clear function
36-
- Optimize searchh function
3729

3830
## Read & Write Spreadsheet Formats
3931

0 commit comments

Comments
 (0)