Skip to content

Commit 99d2c1c

Browse files
committed
Release Aspose.Cells Cloud SDK 24.7.0
1 parent 5e3b903 commit 99d2c1c

23 files changed

+473
-33
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ Enhance your Go applications with the [Aspose.Cells Cloud](https://products.aspo
2121

2222
## There are major problems with v24.5.0 and it does not work properly, please use v24.5.1.
2323

24-
## Feature & Enhancements in Version 24.6
24+
## Feature & Enhancements in Version 24.7
2525

2626
Full list of issues covering all changes in this release:
2727

28-
- Optimize load data function of data transformation.
29-
- Optimize the data conversion applied steps.
28+
- Add a new feature about adding text content.
29+
- Add get access token by client id and client secret.
30+
3031

3132
## Support file format
3233

@@ -119,6 +120,11 @@ To get started with Aspose.Cells Cloud for Go, follow these steps:
119120

120121
# Release history version
121122

123+
## Feature & Enhancements in Version 24.6
124+
125+
- Optimize load data function of data transformation.
126+
- Optimize the data conversion applied steps.
127+
122128
## Feature & Enhancements in Version 24.5
123129

124130
- Add merge queries method for loading data of data transformation.

api/swagger.yaml

Lines changed: 74 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
swagger: "2.0"
33
info:
4-
version: "24.6"
4+
version: "24.7"
55
title: "Aspose.Cells Cloud APIs."
66
host: "api.aspose.cloud"
77
basePath: "/v3.0"
@@ -1053,6 +1053,14 @@ paths:
10531053
type: "class:batchsplitrequest"
10541054
x-nullable: true
10551055
x-exportParamName: "batchSplitRequest"
1056+
/cells/connect/token:
1057+
post:
1058+
tags:
1059+
- "Cells"
1060+
summary: "Get Access Token Result"
1061+
operationId: "PostAccessToken"
1062+
parameters:
1063+
10561064
/cells/{name}/worksheets/{sheetName}/cells/clearcontents:
10571065
post:
10581066
tags:
@@ -11975,11 +11983,25 @@ paths:
1197511983
type: "class:taskdata"
1197611984
x-nullable: false
1197711985
x-exportParamName: "TaskData"
11986+
/cells/addtext:
11987+
post:
11988+
tags:
11989+
- "Cells"
11990+
summary: ""
11991+
operationId: "PostAddTextContent"
11992+
parameters:
11993+
- name: "addtextoptions"
11994+
in: "Body"
11995+
description: ""
11996+
required: true
11997+
type: "class:addtextoptions"
11998+
x-nullable: true
11999+
x-exportParamName: "addTextOptions"
1197812000
/cells/{name}/defaultstyle:
1197912001
get:
1198012002
tags:
1198112003
- "Cells"
11982-
summary: "Retrieve the description of the default style for the workbook."
12004+
summary: "Retrieve the description of the default style for the workbook ."
1198312005
operationId: "GetWorkbookDefaultStyle"
1198412006
parameters:
1198512007
- name: "name"
@@ -22080,6 +22102,56 @@ definitions:
2208022102
link:
2208122103
type: "class:link"
2208222104
description: ""
22105+
AddTextOptions:
22106+
allOf:
22107+
- type: "object"
22108+
22109+
properties:
22110+
Name:
22111+
type: "string"
22112+
description: ""
22113+
DataSource:
22114+
type: "class:datasource"
22115+
description: ""
22116+
FileInfo:
22117+
type: "class:fileinfo"
22118+
description: ""
22119+
Text:
22120+
type: "string"
22121+
description: ""
22122+
Worksheet:
22123+
type: "string"
22124+
description: ""
22125+
Range:
22126+
type: "string"
22127+
description: ""
22128+
SelectPoistion:
22129+
type: "string"
22130+
description: ""
22131+
SelectText:
22132+
type: "string"
22133+
description: ""
22134+
SkipEmptyCells:
22135+
type: "boolean"
22136+
description: ""
22137+
BaseOperateOptions:
22138+
type: "object"
22139+
properties:
22140+
Name:
22141+
type: "string"
22142+
description: ""
22143+
SearchScopeOptionsType:
22144+
allOf:
22145+
- type: "object"
22146+
22147+
properties:
22148+
22149+
SelectPositionOptionsType:
22150+
allOf:
22151+
- type: "object"
22152+
22153+
properties:
22154+
2208322155
CellValue:
2208422156
type: "object"
2208522157
properties:

api_cells.go

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
)
3434

3535
func Version() {
36-
fmt.Println("---Version: 24.6---")
36+
fmt.Println("---Version: 24.7---")
3737
}
3838

3939
func NewCellsApiService(appSid string, appKey string, opts ...string) *CellsApiService {
@@ -648,6 +648,35 @@ func (a *CellsApiService) PostBatchSplit(data *PostBatchSplitRequest) ( []byte,
648648
}
649649

650650

651+
func (a *CellsApiService) PostAccessToken(data *PostAccessTokenRequest) ( []byte, *http.Response, error) {
652+
var (
653+
localVarReturnValue []byte
654+
655+
)
656+
657+
r, err := data.CreateRequestData(a.client);
658+
if err != nil {
659+
return localVarReturnValue, nil, err
660+
}
661+
662+
localVarHttpResponse, err := a.client.callAPI(r)
663+
if err != nil || localVarHttpResponse == nil {
664+
return localVarReturnValue, localVarHttpResponse, err
665+
}
666+
defer localVarHttpResponse.Body.Close()
667+
if localVarHttpResponse.StatusCode >= 300 {
668+
bodyBytes, _ := ioutil.ReadAll(localVarHttpResponse.Body)
669+
return localVarReturnValue, localVarHttpResponse, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
670+
}
671+
672+
if localVarReturnValue, err = ioutil.ReadAll(localVarHttpResponse.Body); err != nil {
673+
return localVarReturnValue, localVarHttpResponse, err
674+
}
675+
676+
return localVarReturnValue, localVarHttpResponse, err
677+
}
678+
679+
651680
func (a *CellsApiService) PostClearContents(data *PostClearContentsRequest) ( CellsCloudResponse, *http.Response, error) {
652681
var (
653682
localVarReturnValue CellsCloudResponse
@@ -7158,6 +7187,34 @@ func (a *CellsApiService) PostRunTask(data *PostRunTaskRequest) ( []byte, *htt
71587187
}
71597188

71607189

7190+
func (a *CellsApiService) PostAddTextContent(data *PostAddTextContentRequest) ( FileInfo, *http.Response, error) {
7191+
var (
7192+
localVarReturnValue FileInfo
7193+
7194+
)
7195+
7196+
r, err := data.CreateRequestData(a.client);
7197+
if err != nil {
7198+
return localVarReturnValue, nil, err
7199+
}
7200+
7201+
localVarHttpResponse, err := a.client.callAPI(r)
7202+
if err != nil || localVarHttpResponse == nil {
7203+
return localVarReturnValue, localVarHttpResponse, err
7204+
}
7205+
defer localVarHttpResponse.Body.Close()
7206+
if localVarHttpResponse.StatusCode >= 300 {
7207+
bodyBytes, _ := ioutil.ReadAll(localVarHttpResponse.Body)
7208+
return localVarReturnValue, localVarHttpResponse, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
7209+
}
7210+
if err = json.NewDecoder(localVarHttpResponse.Body).Decode(&localVarReturnValue); err != nil {
7211+
return localVarReturnValue, localVarHttpResponse, err
7212+
}
7213+
7214+
return localVarReturnValue, localVarHttpResponse, err
7215+
}
7216+
7217+
71617218
func (a *CellsApiService) GetWorkbookDefaultStyle(data *GetWorkbookDefaultStyleRequest) ( StyleResponse, *http.Response, error) {
71627219
var (
71637220
localVarReturnValue StyleResponse

base_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
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
1919
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2020
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
23-
* </summary>
23+
* </summary>
2424
-------------------------------------------------------------------------------------------------------------------- **/
2525

2626
package asposecellscloud
@@ -44,7 +44,7 @@ func (bt *BaseTest) UploadFile(name string) (err error) {
4444
args.Path = GetBaseTest().remoteFolder + "/" + name
4545
args.UploadFiles = make(map[string]string)
4646
args.UploadFiles[name] = "TestData\\" + name
47-
_, _, err = GetBaseTest().CellsApi.UploadFile( args)
47+
_, _, err = GetBaseTest().CellsApi.UploadFile(args)
4848
return err
4949
}
5050
func (bt *BaseTest) UploadFileToOtherStorage(name string, storageName string) (err error) {
@@ -54,7 +54,7 @@ func (bt *BaseTest) UploadFileToOtherStorage(name string, storageName string) (e
5454
args.UploadFiles = make(map[string]string)
5555
args.UploadFiles[name] = "TestData\\" + name
5656

57-
_, _, err = GetBaseTest().CellsApi.UploadFile( args)
57+
_, _, err = GetBaseTest().CellsApi.UploadFile(args)
5858
return err
5959
}
6060

@@ -77,7 +77,7 @@ func NewBaseTest() *BaseTest {
7777
localTestDataFolder: "TestData/",
7878
TestNumber: 0,
7979
// Get Client Secret and Client Id from https://aspose.cloud
80-
CellsApi: NewCellsApiService(os.Getenv("CellsCloudClientId"), os.Getenv("CellsCloudClientSecret"), os.Getenv("CellsCloudApiBaseUrl"), "v3.0"),
80+
CellsApi: NewCellsApiService(os.Getenv("CellsCloudClientId"), os.Getenv("CellsCloudClientSecret"), os.Getenv("CellsCloudApiBaseUrl"), "v3.0"),
8181
}
8282
return bt
8383
}

client.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
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
1919
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2020
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
23-
* </summary>
23+
* </summary>
2424
-------------------------------------------------------------------------------------------------------------------- **/
2525

2626
package asposecellscloud
@@ -57,7 +57,7 @@ type APIClient struct {
5757
common service // Reuse a single struct instead of allocating one for each service on the heap.
5858

5959
// API Services
60-
CellsApi *CellsApiService
60+
CellsApi *CellsApiService
6161
}
6262

6363
type service struct {
@@ -424,7 +424,7 @@ func (a *APIClient) addAuth(request *http.Request) (err error) {
424424

425425
// RequestOauthToken function for requests OAuth token
426426
func (a *APIClient) RequestOauthToken() error {
427-
var getAccessTokeUri = a.cfg.BasePath + "/connect/token"
427+
var getAccessTokeUri = a.cfg.BasePath + "/v3.0/cells/connect/token"
428428
if a.cfg.Version == "v1.1" {
429429
getAccessTokeUri = a.cfg.BasePath + "/oauth2/token"
430430
}

docs/api/get-workbook-default-style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# **getWorkbookDefaultStyle API**
22

3-
Retrieve the description of the default style for the workbook.
3+
Retrieve the description of the default style for the workbook .
44

55
```bash
66

docs/api/post-access-token.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# **postAccessToken API**
2+
3+
Get Access Token Result
4+
5+
```bash
6+
7+
POST http://api.aspose.cloud/v3.0//cells/connect/token
8+
9+
```
10+
11+
## The request parameters of **postAccessToken** API are:
12+
13+
| Parameter Name | Type | Path/Query String/HTTPBody | Description |
14+
| :- | :- | :- |:- |
15+
16+
17+
The [OpenAPI Specification](https://reference.aspose.cloud/cells/#/CellsAuthorityController/PostAccessToken) defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.

docs/api/post-add-text-content.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# **postAddTextContent API**
2+
3+
4+
5+
```bash
6+
7+
POST http://api.aspose.cloud/v3.0//cells/addtext
8+
9+
```
10+
11+
## The request parameters of **postAddTextContent** API are:
12+
13+
| Parameter Name | Type | Path/Query String/HTTPBody | Description |
14+
| :- | :- | :- |:- |
15+
|addTextOptions|Class|Body||
16+
17+
18+
The [OpenAPI Specification](https://reference.aspose.cloud/cells/#/TextProcessingController/PostAddTextContent) defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.

docs/model/add-text-options.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# **addTextOptions**
2+
3+
4+
5+
## **Properties**
6+
7+
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
8+
| :- | :- | :- |:- | :- | :- |
9+
|Name|String|true|false | ||
10+
|DataSource|Class|true|false | ||
11+
|FileInfo|Class|true|false | ||
12+
|Text|String|true|false | ||
13+
|Worksheet|String|true|false | ||
14+
|Range|String|true|false | ||
15+
|SelectPoistion|String|true|false | ||
16+
|SelectText|String|true|false | ||
17+
|SkipEmptyCells|Boolean|true|false | ||
18+

docs/model/base-operate-options.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# **baseOperateOptions**
2+
3+
4+
5+
## **Properties**
6+
7+
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
8+
| :- | :- | :- |:- | :- | :- |
9+
|Name|String|true|false | ||
10+

0 commit comments

Comments
 (0)