Skip to content

Commit 6834ed6

Browse files
committed
Release Aspose.Cells Cloud SDK 25.2
1 parent dc07f61 commit 6834ed6

File tree

192 files changed

+1737
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+1737
-129
lines changed

Aspose.Cells.Cloud.SDK.Test/Api/PivotTablesControllerTests.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -129,30 +129,30 @@ public void TestGetWorksheetPivotTableFilters()
129129
var actual = this.CellsApi.GetWorksheetPivotTableFilters(request);
130130
Assert.AreEqual(200, actual.Code);
131131
}
132-
132+
/*
133133
/// <summary>
134134
/// Test for GetWorksheetPivotTableFilter of PivotTablesController.
135135
/// </summary>
136-
// [TestCategory(ProductName)]
137-
// [TestMethod]
138-
// public void TestGetWorksheetPivotTableFilter()
139-
// {
140-
// string localName = "TestCase.xlsx";
141-
// string remoteName = "TestCase.xlsx";
142-
143-
// this.UploadFile( localName, remoteFolder + "/" + remoteName, "");
144-
145-
// var request = new GetWorksheetPivotTableFilterRequest(
146-
// name: remoteName,
147-
// sheetName: "Sheet3",
148-
// pivotTableIndex: 0,
149-
// filterIndex: 0,
150-
// folder: remoteFolder,
151-
// storageName: ""
152-
// );
153-
// var actual = this.CellsApi.GetWorksheetPivotTableFilter(request);
154-
// Assert.AreEqual(200, actual.Code);
155-
// }
136+
[TestCategory(ProductName)]
137+
[TestMethod]
138+
public void TestGetWorksheetPivotTableFilter()
139+
{
140+
string localName = "TestCase.xlsx";
141+
string remoteName = "TestCase.xlsx";
142+
143+
this.UploadFile( localName, remoteFolder + "/" + remoteName, "");
144+
145+
var request = new GetWorksheetPivotTableFilterRequest(
146+
name: remoteName,
147+
sheetName: "Sheet3",
148+
pivotTableIndex: 0,
149+
filterIndex: 0,
150+
folder: remoteFolder,
151+
storageName: ""
152+
);
153+
var actual = this.CellsApi.GetWorksheetPivotTableFilter(request);
154+
Assert.AreEqual(200, actual.Code);
155+
}*/
156156

157157
/// <summary>
158158
/// Test for PutWorksheetPivotTable of PivotTablesController.

Aspose.Cells.Cloud.SDK.Test/Api/TextProcessingControllerTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1010
// copies of the Software, and to permit persons to whom the Software is
1111
// furnished to do so, subject to the following conditions:
12-
//
12+
//
1313
// The above copyright notice and this permission notice shall be included in all
1414
// copies or substantial portions of the Software.
15-
//
15+
//
1616
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1717
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1818
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -25,7 +25,7 @@
2525

2626
namespace Aspose.Cells.Cloud.SDK.Tests.Api.Api
2727
{
28-
using Microsoft.VisualStudio.TestTools.UnitTesting;
28+
using Microsoft.VisualStudio.TestTools.UnitTesting;
2929
using Aspose.Cells.Cloud.SDK.Model;
3030
using Aspose.Cells.Cloud.SDK.Request;
3131
using System.Collections.Generic;
@@ -52,7 +52,7 @@ public void TestPostAddTextContent()
5252
var addTextOptionsDataSource = new DataSource()
5353
{
5454
DataSourceType = "CloudFileSystem",
55-
DataPath = "BookText.xlsx"
55+
DataPath = remoteFolder + "/" + remoteName
5656
};
5757
var addTextOptions = new AddTextOptions()
5858
{
@@ -84,7 +84,7 @@ public void TestPostTrimContent()
8484
var trimContentOptionsDataSource = new DataSource()
8585
{
8686
DataSourceType = "CloudFileSystem",
87-
DataPath = "BookText.xlsx"
87+
DataPath = remoteFolder + "/" + remoteName
8888
};
8989
var trimContentOptionsScopeOptions = new ScopeOptions()
9090
{
@@ -121,7 +121,7 @@ public void TestPostUpdateWordCase()
121121
var wordCaseOptionsDataSource = new DataSource()
122122
{
123123
DataSourceType = "CloudFileSystem",
124-
DataPath = "BookText.xlsx"
124+
DataPath = remoteFolder + "/" + remoteName
125125
};
126126
var wordCaseOptionsScopeOptions = new ScopeOptions()
127127
{

Aspose.Cells.Cloud.SDK.Test/Infrastructure/CellsTestCommon.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ private string ClientSecret
6363
public CellsTestCommon()
6464
{
6565
this.CellsApi = new CellsApi(this.ClientId, this.ClientSecret, this.BaseUri,this.ApiVersion);
66-
// this.CellsApi.IsLocalCloud = true;
6766
}
6867

6968
public void UploadFile(string filename , string remotepath , string storageName)
@@ -113,7 +112,8 @@ public string GetLocalFilePath(string filename)
113112
int pos = localFolder.IndexOf("bin");
114113
if(pos >0)
115114
{
116-
localFolder = Path.Combine( localFolder.Substring(0, pos),"./../TestData","CellsCloud");
115+
//localFolder = Path.Combine( localFolder.Substring(0, pos),"./../TestData","CellsCloud");
116+
localFolder = Path.Combine( localFolder.Substring(0, pos),"./../TestData");
117117
}
118118
}
119119

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

Lines changed: 125 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1010
// copies of the Software, and to permit persons to whom the Software is
1111
// furnished to do so, subject to the following conditions:
12-
//
12+
//
1313
// The above copyright notice and this permission notice shall be included in all
1414
// copies or substantial portions of the Software.
15-
//
15+
//
1616
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1717
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1818
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -42,30 +42,29 @@ public class CellsApi
4242
private readonly string BaseUri;
4343
private readonly string ClientId;
4444
private readonly string ClientSecrent;
45-
private readonly string Version;
45+
private readonly string Version;
4646
private readonly List<Invoker.IRequestHandler> requestHandlers;
4747
public bool IsLocalCloud { get; set; } = false;
4848

4949
/// <summary>
50-
///
50+
///
5151
/// </summary>
5252
/// <param name="clientId"></param>
5353
/// <param name="clientSecrent"></param>
5454
/// <param name="baseUrl"></param>
5555
/// <param name="version"></param>
56-
public CellsApi(string clientId, string clientSecrent,string baseUrl = "https://api.aspose.cloud", string version ="v3.0")
56+
public CellsApi(string clientId, string clientSecrent,string baseUrl = "https://api.aspose.cloud", string version ="v3.0")
5757
{
5858
this.Version = version;
5959
this.ClientSecrent = clientSecrent;
6060
this.ClientId = clientId;
6161
this.BaseUri = baseUrl;
6262
this.requestHandlers = new List<Invoker.IRequestHandler>();
6363
this.requestHandlers.Add(new Invoker.ApiExceptionRequestHandler());
64-
if (!IsLocalCloud)
64+
if (!IsLocalCloud)
6565
{
6666
this.requestHandlers.Add(new Invoker.JwtTokenRequestHandler(baseUrl, clientId, clientSecrent));
6767
};
68-
6968

7069
invoker = new Invoker.ApiInvoker(requestHandlers);
7170
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
@@ -2748,6 +2747,29 @@ public async Task< FileInfo > PostConvertWorkbookToCSVAsync(PostConvertWorkbo
27482747

27492748

27502749

2750+
/// <summary>
2751+
/// </summary>
2752+
/// <param name="request">Request. <see cref="PostConvertWorksheetToImageRequest" /></param>
2753+
public FileInfo PostConvertWorksheetToImage(PostConvertWorksheetToImageRequest request)
2754+
{
2755+
requestHandlers.ForEach(p => p.ProcessUrl(""));
2756+
var result = invoker.InvokeApiAsync< FileInfo >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers)).Result;
2757+
return result;
2758+
}
2759+
2760+
/// <summary>
2761+
/// async/await syntax calling method
2762+
/// </summary>
2763+
2764+
public async Task< FileInfo > PostConvertWorksheetToImageAsync(PostConvertWorksheetToImageRequest request)
2765+
{
2766+
requestHandlers.ForEach(p => p.ProcessUrl(""));
2767+
var result = await invoker.InvokeApiAsync< FileInfo >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers));
2768+
return result;
2769+
}
2770+
2771+
2772+
27512773
/// <summary>
27522774
/// </summary>
27532775
/// <param name="request">Request. <see cref="PostExportRequest" /></param>
@@ -5737,6 +5759,29 @@ public async Task< CellsCloudResponse > PostWorksheetCellsRangeRowHeightAsync
57375759

57385760

57395761

5762+
/// <summary>
5763+
/// </summary>
5764+
/// <param name="request">Request. <see cref="PostWorksheetCellsRangeToImageRequest" /></param>
5765+
public CellsCloudResponse PostWorksheetCellsRangeToImage(PostWorksheetCellsRangeToImageRequest request)
5766+
{
5767+
requestHandlers.ForEach(p => p.ProcessUrl(""));
5768+
var result = invoker.InvokeApiAsync< CellsCloudResponse >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers)).Result;
5769+
return result;
5770+
}
5771+
5772+
/// <summary>
5773+
/// async/await syntax calling method
5774+
/// </summary>
5775+
5776+
public async Task< CellsCloudResponse > PostWorksheetCellsRangeToImageAsync(PostWorksheetCellsRangeToImageRequest request)
5777+
{
5778+
requestHandlers.ForEach(p => p.ProcessUrl(""));
5779+
var result = await invoker.InvokeApiAsync< CellsCloudResponse >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers));
5780+
return result;
5781+
}
5782+
5783+
5784+
57405785
/// <summary>
57415786
/// Insert a range of cells and shift existing cells based on the specified shift option.
57425787
/// </summary>
@@ -6119,6 +6164,75 @@ public async Task< CellsCloudResponse > PostWorksheetSparklineGroupAsync(Post
61196164

61206165

61216166

6167+
/// <summary>
6168+
/// </summary>
6169+
/// <param name="request">Request. <see cref="PostCharacterCountRequest" /></param>
6170+
public string PostCharacterCount(PostCharacterCountRequest request)
6171+
{
6172+
requestHandlers.ForEach(p => p.ProcessUrl(""));
6173+
var result = invoker.InvokeApiAsync< string >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers)).Result;
6174+
return result;
6175+
}
6176+
6177+
/// <summary>
6178+
/// async/await syntax calling method
6179+
/// </summary>
6180+
6181+
public async Task< string > PostCharacterCountAsync(PostCharacterCountRequest request)
6182+
{
6183+
requestHandlers.ForEach(p => p.ProcessUrl(""));
6184+
var result = await invoker.InvokeApiAsync< string >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers));
6185+
return result;
6186+
}
6187+
6188+
6189+
6190+
/// <summary>
6191+
/// </summary>
6192+
/// <param name="request">Request. <see cref="PostWordsCountRequest" /></param>
6193+
public string PostWordsCount(PostWordsCountRequest request)
6194+
{
6195+
requestHandlers.ForEach(p => p.ProcessUrl(""));
6196+
var result = invoker.InvokeApiAsync< string >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers)).Result;
6197+
return result;
6198+
}
6199+
6200+
/// <summary>
6201+
/// async/await syntax calling method
6202+
/// </summary>
6203+
6204+
public async Task< string > PostWordsCountAsync(PostWordsCountRequest request)
6205+
{
6206+
requestHandlers.ForEach(p => p.ProcessUrl(""));
6207+
var result = await invoker.InvokeApiAsync< string >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers));
6208+
return result;
6209+
}
6210+
6211+
6212+
6213+
/// <summary>
6214+
/// </summary>
6215+
/// <param name="request">Request. <see cref="PostSpecifyWordsCountRequest" /></param>
6216+
public string PostSpecifyWordsCount(PostSpecifyWordsCountRequest request)
6217+
{
6218+
requestHandlers.ForEach(p => p.ProcessUrl(""));
6219+
var result = invoker.InvokeApiAsync< string >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers)).Result;
6220+
return result;
6221+
}
6222+
6223+
/// <summary>
6224+
/// async/await syntax calling method
6225+
/// </summary>
6226+
6227+
public async Task< string > PostSpecifyWordsCountAsync(PostSpecifyWordsCountRequest request)
6228+
{
6229+
requestHandlers.ForEach(p => p.ProcessUrl(""));
6230+
var result = await invoker.InvokeApiAsync< string >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers));
6231+
return result;
6232+
}
6233+
6234+
6235+
61226236
/// <summary>
61236237
/// Run tasks.
61246238
/// </summary>
@@ -6887,7 +7001,7 @@ public async Task< CellsCloudResponse > PutWorkbookWaterMarkerAsync(PutWorkbo
68877001
{
68887002
requestHandlers.ForEach(p => p.ProcessUrl(""));
68897003
var result = invoker.InvokeApiAsync< string >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers)).Result;
6890-
return System.Convert.ToInt32( result);
7004+
return System.Convert.ToInt32( result);
68917005
}
68927006

68937007
/// <summary>
@@ -6898,7 +7012,7 @@ public async Task< CellsCloudResponse > PutWorkbookWaterMarkerAsync(PutWorkbo
68987012
{
68997013
requestHandlers.ForEach(p => p.ProcessUrl(""));
69007014
var result = await invoker.InvokeApiAsync< string >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers));
6901-
return System.Convert.ToInt32( result);
7015+
return System.Convert.ToInt32( result);
69027016
}
69037017

69047018

@@ -7822,7 +7936,7 @@ public async Task< CellsCloudResponse > PostUpdateWorksheetZoomAsync(PostUpda
78227936
{
78237937
requestHandlers.ForEach(p => p.ProcessUrl(""));
78247938
var result = invoker.InvokeApiAsync< string >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers)).Result;
7825-
return System.Convert.ToInt32( result);
7939+
return System.Convert.ToInt32( result);
78267940
}
78277941

78287942
/// <summary>
@@ -7833,7 +7947,7 @@ public async Task< CellsCloudResponse > PostUpdateWorksheetZoomAsync(PostUpda
78337947
{
78347948
requestHandlers.ForEach(p => p.ProcessUrl(""));
78357949
var result = await invoker.InvokeApiAsync< string >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers));
7836-
return System.Convert.ToInt32( result);
7950+
return System.Convert.ToInt32( result);
78377951
}
78387952

78397953

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<RepositoryType>GitHub</RepositoryType>
1818
<Copyright>MIT</Copyright>
1919
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
20-
<AssemblyVersion>25.1.2</AssemblyVersion>
21-
<FileVersion>25.1.2</FileVersion>
22-
<Version>25.1.2</Version>
20+
<AssemblyVersion>25.2</AssemblyVersion>
21+
<FileVersion>25.2</FileVersion>
22+
<Version>25.2</Version>
2323
<PackageReadmeFile>README.md</PackageReadmeFile>
2424

2525
</PropertyGroup>

Aspose.Cells.Cloud.SDK/Infrastructure/Invoker/ApiInvoker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ internal class ApiInvoker
5050
internal ApiInvoker(List<IRequestHandler> requestHandlers)
5151
{
5252
this.AddDefaultHeader(AsposeClientHeaderName, ".net sdk");
53-
this.AddDefaultHeader(AsposeClientVersionHeaderName, "25.1.1");
53+
this.AddDefaultHeader(AsposeClientVersionHeaderName, "25.2");
5454
this.requestHandlers = requestHandlers;
5555
}
5656

0 commit comments

Comments
 (0)