Skip to content

Commit 246899a

Browse files
committed
Support new formats, add new api about getting public key, and optimize convert workbook and auto fit workbook and worksheet.
1 parent 8b5cb53 commit 246899a

File tree

449 files changed

+22578
-3139
lines changed

Some content is hidden

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

449 files changed

+22578
-3139
lines changed

Examples/Example_GetWorkbook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ const _ = require('asposecellscloud');
44

55
const cellsApi = new CellsApi(process.env.CellsCloudClientId, process.env.CellsCloudClientSecret,"v3.0",process.env.CellsCloudApiBaseUrl);
66

7-
var remoteFolder = "TestData/In"
87

98
var localName = "Book1.xlsx"
109
var remoteName = "Book1.xlsx"
10+
var remoteFolder = "TestData/In"
1111

1212
var localNameRequest = new model.UploadFileRequest();
1313
localNameRequest.uploadFiles ={localName:fs.createReadStream(localPath + localName)};

Examples/Example_PostAddTextContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cellsApi.uploadFile(localNameRequest );
1717

1818
var addTextOptionsDataSource = new model.DataSource();
1919
addTextOptionsDataSource.dataSourceType = "CloudFileSystem" ;
20-
addTextOptionsDataSource.dataPath = "BookText.xlsx" ;
20+
addTextOptionsDataSource.dataPath = "TestData/In/BookText.xlsx" ;
2121
var addTextOptions = new model.AddTextOptions();
2222
addTextOptions.dataSource = addTextOptionsDataSource ;
2323
addTextOptions.text = "Aspose.Cells Cloud is an excellent product." ;

Examples/Example_PostAutofitWorksheetRow.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ request.firstColumn = 1;
2424
request.lastColumn = 8;
2525
request.folder = remoteFolder;
2626
request.storageName = "";
27+
request.rowCount = 1;
2728
return cellsApi.postAutofitWorksheetRow(request).then((result) => {
2829
expect(result.response.statusCode).to.equal(200);
2930
});

Examples/Example_PostDataTransformation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var dataTransformationRequestLoadDataDataQueryDataItem = new model.DataItem();
2424
dataTransformationRequestLoadDataDataQueryDataItem.value = "Table1" ;
2525
var dataTransformationRequestLoadDataDataQueryDataSource = new model.DataSource();
2626
dataTransformationRequestLoadDataDataQueryDataSource.dataSourceType = "CloudFileSystem" ;
27-
dataTransformationRequestLoadDataDataQueryDataSource.dataPath = "BookTableL2W.xlsx" ;
27+
dataTransformationRequestLoadDataDataQueryDataSource.dataPath = "TestData/In/BookTableL2W.xlsx" ;
2828
var dataTransformationRequestLoadDataDataQuery = new model.DataQuery();
2929
dataTransformationRequestLoadDataDataQuery.name = "DataQuery" ;
3030
dataTransformationRequestLoadDataDataQuery.dataItem = dataTransformationRequestLoadDataDataQueryDataItem ;

Examples/Example_PostTrimContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cellsApi.uploadFile(localNameRequest );
1717

1818
var trimContentOptionsDataSource = new model.DataSource();
1919
trimContentOptionsDataSource.dataSourceType = "CloudFileSystem" ;
20-
trimContentOptionsDataSource.dataPath = "BookText.xlsx" ;
20+
trimContentOptionsDataSource.dataPath = "TestData/In/BookText.xlsx" ;
2121
var trimContentOptionsScopeOptions = new model.ScopeOptions();
2222
trimContentOptionsScopeOptions.scope = "EntireWorkbook" ;
2323
var trimContentOptions = new model.TrimContentOptions();

Examples/Example_PostUpdateWordCase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cellsApi.uploadFile(localNameRequest );
1717

1818
var wordCaseOptionsDataSource = new model.DataSource();
1919
wordCaseOptionsDataSource.dataSourceType = "CloudFileSystem" ;
20-
wordCaseOptionsDataSource.dataPath = "BookText.xlsx" ;
20+
wordCaseOptionsDataSource.dataPath = "TestData/In/BookText.xlsx" ;
2121
var wordCaseOptionsScopeOptions = new model.ScopeOptions();
2222
wordCaseOptionsScopeOptions.scope = "EntireWorkbook" ;
2323
var wordCaseOptions = new model.WordCaseOptions();

Examples/Example_PostWorkbookSaveAs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ const _ = require('asposecellscloud');
44

55
const cellsApi = new CellsApi(process.env.CellsCloudClientId, process.env.CellsCloudClientSecret,"v3.0",process.env.CellsCloudApiBaseUrl);
66

7-
var remoteFolder = "TestData/In"
87

98
var localName = "Book1.xlsx"
109
var remoteName = "Book1.xlsx"
10+
var remoteFolder = "TestData/In"
1111

1212
var localNameRequest = new model.UploadFileRequest();
1313
localNameRequest.uploadFiles ={localName:fs.createReadStream(localPath + localName)};

Examples/Example_PutConvertWorkbook.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,10 @@ const _ = require('asposecellscloud');
44

55
const cellsApi = new CellsApi(process.env.CellsCloudClientId, process.env.CellsCloudClientSecret,"v3.0",process.env.CellsCloudApiBaseUrl);
66

7-
var remoteFolder = "TestData/In"
87

98
var localName = "Book1.xlsx"
109
var remoteName = "Book1.xlsx"
1110

12-
var localNameRequest = new model.UploadFileRequest();
13-
localNameRequest.uploadFiles ={localName:fs.createReadStream(localPath + localName)};
14-
localNameRequest.path = remoteFolder + "/" + remoteName ;
15-
localNameRequest.storageName ="";
16-
cellsApi.uploadFile(localNameRequest );
1711

1812
var format = "csv"
1913

Examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"dependencies": {
55
"@types/jest": "^26.0.24",
66
"@types/request": "^2.48.7",
7-
"asposecellscloud": "25.4",
7+
"asposecellscloud": "25.5.4",
88
"axios": "^1.5.1",
99
"JSON": "^1.0.0",
1010
"mocha": "^10.2.0",

docs/api/add-picture-in-cell.md

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
1-
# **addPictureInCell API**
1+
2+
# **Spreadsheet Cloud API: addPictureInCell**
23

34
add new picture in the cells.
45

5-
```bash
66

7-
POST http://api.aspose.cloud/v3.0//cells/{name}/worksheets/{sheetName}/pictures/addPictureInCell
7+
## **Quick Start**
8+
9+
- **Base URL**: `http://api.aspose.cloud/v3.0`
10+
- **Authentication Method**: `JWT (OAuth2, application)` **Token URL**: `https://api.aspose.cloud/connect/token`
11+
## **Interface Details**
812

13+
### **Endpoint**
14+
15+
```
16+
POST http://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/pictures/addPictureInCell
917
```
18+
### **Function Description**
1019

11-
## The request parameters of **addPictureInCell** API are:
20+
### The request parameters of **addPictureInCell** API are:
1221

1322
| Parameter Name | Type | Path/Query String/HTTPBody | Description |
1423
| :- | :- | :- |:- |
@@ -19,5 +28,38 @@ POST http://api.aspose.cloud/v3.0//cells/{name}/worksheets/{sheetName}/pictures/
1928
|folder|String|Query||
2029
|storageName|String|Query||
2130

31+
### **Response Description**
32+
```json
33+
{
34+
"Name": "CellsCloudResponse",
35+
"Type": "Class",
36+
"IsAbstract": false,
37+
"Properties": [
38+
{
39+
"Name": "Code",
40+
"Nullable": true,
41+
"ReadOnly": false,
42+
"IsInherit": false,
43+
"DataType": {
44+
"Identifier": "Integer",
45+
"Name": "integer"
46+
}
47+
},
48+
{
49+
"Name": "Status",
50+
"Nullable": true,
51+
"ReadOnly": false,
52+
"IsInherit": false,
53+
"DataType": {
54+
"Identifier": "String",
55+
"Name": "string"
56+
}
57+
}
58+
]
59+
}
60+
```
61+
62+
63+
## OpenAPI Specification
2264

2365
The [OpenAPI Specification](https://reference.aspose.cloud/cells/#/PicturesController/AddPictureInCell) defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.

0 commit comments

Comments
 (0)