Skip to content

Commit 2379a54

Browse files
committed
ISSUE-CELLSCLOUD-13479: Develop Aspose.Cells Cloud SDK for PHP 25.10, and add related test cases.
1 parent 47940ba commit 2379a54

36 files changed

+2588
-333
lines changed

HistoryVersion.md renamed to CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Release History Version
22

3+
## Feature & Enhancements in Version 25.9
4+
5+
|**Summary**|**Category**|
6+
| :- | :- |
7+
| Support trim spreadsheet content in Cells Cloud 4.0. | Improvement |
8+
| Support trim worksheet range content in Cells Cloud 4.0. | Improvement |
9+
| Fix few issues about spelling error. | Bug |
10+
311
## Feature & Enhancements in Version 25.8
412

513
Full list of issues covering all changes in this release:

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
![](https://img.shields.io/badge/aspose.cells%20Cloud%20SDK-v25.9.0-green?style=for-the-badge&logo=go)[![Product Page](https://img.shields.io/badge/Product-0288d1?style=for-the-badge&logo=Google-Chrome&logoColor=white)](https://products.aspose.cloud/cells/go/) [![Documentation](https://img.shields.io/badge/Documentation-388e3c?style=for-the-badge&logo=Hugo&logoColor=white)](https://docs.aspose.cloud/cells/) [![API Ref](https://img.shields.io/badge/Reference-f39c12?style=for-the-badge&logo=html5&logoColor=white)](https://reference.aspose.cloud/cells/) [![Examples](https://img.shields.io/badge/Examples-1565c0?style=for-the-badge&logo=Github&logoColor=white)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-go/tree/master/examples) [![Blog](https://img.shields.io/badge/Blog-d32f2f?style=for-the-badge&logo=WordPress&logoColor=white)](https://blog.aspose.cloud/categories/aspose.cells-cloud-product-family/) [![Support](https://img.shields.io/badge/Support-7b1fa2?style=for-the-badge&logo=Discourse&logoColor=white)](https://forum.aspose.cloud/c/cells/7) [![License](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-go?style=for-the-badge&logo=rocket&logoColor=white)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-go/blob/master/LICENSE)
1+
![](https://img.shields.io/badge/aspose.cells%20Cloud%20SDK-v25.10.0-green?style=for-the-badge&logo=go)[![Product Page](https://img.shields.io/badge/Product-0288d1?style=for-the-badge&logo=Google-Chrome&logoColor=white)](https://products.aspose.cloud/cells/go/) [![Documentation](https://img.shields.io/badge/Documentation-388e3c?style=for-the-badge&logo=Hugo&logoColor=white)](https://docs.aspose.cloud/cells/) [![API Ref](https://img.shields.io/badge/Reference-f39c12?style=for-the-badge&logo=html5&logoColor=white)](https://reference.aspose.cloud/cells/) [![Examples](https://img.shields.io/badge/Examples-1565c0?style=for-the-badge&logo=Github&logoColor=white)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-go/tree/master/examples) [![Blog](https://img.shields.io/badge/Blog-d32f2f?style=for-the-badge&logo=WordPress&logoColor=white)](https://blog.aspose.cloud/categories/aspose.cells-cloud-product-family/) [![Support](https://img.shields.io/badge/Support-7b1fa2?style=for-the-badge&logo=Discourse&logoColor=white)](https://forum.aspose.cloud/c/cells/7) [![License](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-go?style=for-the-badge&logo=rocket&logoColor=white)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-go/blob/master/LICENSE)
22

3-
Aspose.Cells Cloud SDK for Go empowers developers to programmatically manage Excel files with precision. This comprehensive Go library supports advanced Excel operations like cell data formatting, dynamic formulas, pivot tables, conditional styling, charts, hyperlinks, comments, and data validation. It also enables seamless Excel file conversion (XLSX, CSV, PDF, ODS), document splitting/merging, and file repair. Designed for cloud integration, this API-first solution accelerates spreadsheet automation while ensuring data integrity across platforms like AWS, Azure, and Google Cloud.
4-
5-
## Go SDK package for Aspose.Cells Cloud
6-
7-
Enhance your GoLang applications with [Aspose.Cells Cloud](https://products.aspose.cloud/cells/go) – a powerful, cloud-based SDK that enables seamless integration with [Excel, ODS, CSV, Json and other spreadsheet document formats](https://docs.aspose.cloud/cells/supported-file-formats/). Leveraging its robust REST API, developers can effortlessly create, read, edit, convert, and manipulate spreadsheet content programmatically—without requiring any local office software.
3+
[Aspose.Cells Cloud SDK for Go](https://products.aspose.cloud/cells/go) is a cloud-first REST API that lets GoLang applications create, read, edit, convert, and repair [Excel, ODS, CSV, JSON, and other spreadsheet files](https://docs.aspose.cloud/cells/supported-file-formats/) without installing Microsoft Office. It supports advanced features, including cell formatting, formulas, pivot tables, conditional styling, charts, hyperlinks, comments, data validation, document splitting, and merging, and runs on AWS, Azure, and Google Cloud, while ensuring data integrity.
84

95
## Quick Start Guide
106

@@ -101,15 +97,20 @@ go run main.go
10197
- Import/Export: Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
10298
- Security Management: Offers a range of security features like data encryption, access control, and permission management to safeguard the security and integrity of spreadsheet data.
10399

104-
## Feature & Enhancements in Version v25.9.0
100+
## Feature & Enhancements in Version v25.10.0
105101

106102
Full list of issues covering all changes in this release:
107103

108-
|**Summary**|**Category**|
109-
| :- | :- |
110-
| Support trim spreadsheet content in Cells Cloud 4.0. | Improvement |
111-
| Support trim worksheet range content in Cells Cloud 4.0. | Improvement |
112-
| Fix few issues about spelling error. | Bug |
104+
|**ID**|**Summary**|**Category**|
105+
| :- | :- | :- |
106+
| 57421 | Optimize data Transform API: replace delete with remove. | Improvement |
107+
| 57574 | Support to update the spreadsheet content words case in Cells Cloud 4.0. | Improvement |
108+
| 57575 | Support to remove characters from spreadsheet content in Cells Cloud 4.0. | Improvement |
109+
| 57576 | Support to add text for spreadsheet content in Cells Cloud 4.0. | Improvement |
110+
| 57577 | Support to convert text for spreadsheet content in Cells Cloud 4.0. | Improvement |
111+
| 57578 | Support to extract text for spreadsheet content in Cells Cloud 4.0. | Improvement |
112+
| 57579 | Support to extract text for spreadsheet content in Cells Cloud 4.0. | Improvement |
113+
| 57580 | Support to split text for spreadsheet content in Cells Cloud 4.0. | Improvement |
113114

114115
## Available SDKs
115116

@@ -131,4 +132,4 @@ The Aspose.Cells Cloud SDK is available in multiple popular programming language
131132

132133
[![Ruby](https://img.shields.io/badge/Ruby-CC342D.svg?style=for-the-badge&logo=ruby&logoColor=white)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby) [![Ruby](https://img.shields.io/badge/Gem-aspose__cells__cloud-red?logo=ruby&style=for-the-badge)](https://rubygems.org/gems/aspose_cells_cloud)
133134

134-
## [Release history version](HistoryVersion.md)
135+
## [Release history version](CHANGELOG.md)

add_text_request.go

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="add_text_request.go">
3+
* Copyright (c) 2025 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
import (
29+
"path/filepath"
30+
"net/url"
31+
"net/http"
32+
"strings"
33+
)
34+
35+
type AddTextRequest struct {
36+
Text string `json:"text,omitempty" xml:"text"`
37+
Position string `json:"position,omitempty" xml:"position"`
38+
SelectText string `json:"select_text,omitempty" xml:"select_text"`
39+
SkipEmptyCells bool `json:"skip_empty_cells,omitempty" xml:"skip_empty_cells"`
40+
Worksheet string `json:"worksheet,omitempty" xml:"worksheet"`
41+
Range_ string `json:"range,omitempty" xml:"range"`
42+
OutPath string `json:"out_path,omitempty" xml:"out_path"`
43+
OutStorageName string `json:"out_storage_name,omitempty" xml:"out_storage_name"`
44+
Region string `json:"region,omitempty" xml:"region"`
45+
Password string `json:"password,omitempty" xml:"password"`
46+
47+
Spreadsheet string `json:"spreadsheet,omitempty" xml:"spreadsheet"`
48+
49+
50+
ExtendQueryParameterMap map[string]string `json:"ExtendQueryParameterMap,omitempty" xml:"ExtendQueryParameterMap"`
51+
}
52+
53+
func (data *AddTextRequest) CreateRequestData( client *APIClient) (localVarRequest *http.Request, err error) {
54+
var (
55+
localVarHttpMethod = strings.ToUpper("PUT")
56+
localVarPostBody interface{}
57+
localVarFileName string
58+
localVarFileBytes []byte
59+
)
60+
61+
// create path and map variables
62+
localVarPath := client.cfg.BasePath + "/v4.0/cells/content/add/text"
63+
64+
localVarHeaderParams := make(map[string]string)
65+
localVarQueryParams := url.Values{}
66+
localVarFormParams := url.Values{}
67+
68+
// query params : text
69+
if data.Text != "" {
70+
localVarQueryParams.Add("text", parameterToString(data.Text, ""))
71+
}
72+
// query params : position
73+
if data.Position != "" {
74+
localVarQueryParams.Add("position", parameterToString(data.Position, ""))
75+
}
76+
// query params : selectText
77+
if data.SelectText != "" {
78+
localVarQueryParams.Add("selectText", parameterToString(data.SelectText, ""))
79+
}
80+
// query params : skipEmptyCells
81+
if data.SkipEmptyCells {
82+
localVarQueryParams.Add("skipEmptyCells", parameterToString(data.SkipEmptyCells, ""))
83+
}
84+
// query params : worksheet
85+
if data.Worksheet != "" {
86+
localVarQueryParams.Add("worksheet", parameterToString(data.Worksheet, ""))
87+
}
88+
// query params : range
89+
if data.Range_ != "" {
90+
localVarQueryParams.Add("range", parameterToString(data.Range_, ""))
91+
}
92+
// query params : outPath
93+
if data.OutPath != "" {
94+
localVarQueryParams.Add("outPath", parameterToString(data.OutPath, ""))
95+
}
96+
// query params : outStorageName
97+
if data.OutStorageName != "" {
98+
localVarQueryParams.Add("outStorageName", parameterToString(data.OutStorageName, ""))
99+
}
100+
// query params : region
101+
if data.Region != "" {
102+
localVarQueryParams.Add("region", parameterToString(data.Region, ""))
103+
}
104+
// query params : password
105+
if data.Password != "" {
106+
localVarQueryParams.Add("password", parameterToString(data.Password, ""))
107+
}
108+
if data.ExtendQueryParameterMap != nil {
109+
for key, value := range data.ExtendQueryParameterMap {
110+
localVarQueryParams.Add(key, parameterToString(value, ""))
111+
}
112+
}
113+
localVarHttpContentTypes := []string{"multipart/form-data"}
114+
115+
// set Content-Type header
116+
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
117+
if localVarHttpContentType != "" {
118+
localVarHeaderParams["Content-Type"] = localVarHttpContentType
119+
}
120+
121+
// to determine the Accept header
122+
localVarHttpHeaderAccepts := []string{"application/json"}
123+
124+
// set Accept header
125+
localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
126+
if localVarHttpHeaderAccept != "" {
127+
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
128+
}
129+
130+
if strings.TrimSpace(data.Spreadsheet) != "" { localVarFormParams["@"+ filepath.Base(data.Spreadsheet)] = []string {data.Spreadsheet}}
131+
r, err := client.prepareRequest(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes)
132+
return r,err
133+
}

0 commit comments

Comments
 (0)