Skip to content

Commit 92b0e42

Browse files
committed
Aspose.Cells Cloud SDK 19.9 - September 2019
We are pleased to announce the release of Aspose.Cells Cloud SDK 19.9 with the following improvements. 1. Enhancement for constructor. 2. Enhancement for CellsApi class integrate multiple controllers the APIs. 3. Support to storage APIs.
1 parent 23fe171 commit 92b0e42

31 files changed

+8690
-8042
lines changed

README.md

Lines changed: 103 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,124 @@
1-
# Aspose.Cells Cloud SDK for Node.js [![npm](https://badge.fury.io/js/asposecellscloud.svg)](https://www.npmjs.com/package/asposecellscloud)
2-
This repository contains Aspose.Cells Cloud SDK for Node.js source code. This SDK allows you to work with Aspose.Cells Cloud REST APIs in your nodejs applications quickly and easily, with zero initial cost.
1+
# Aspose.Cells Cloud SDK for NodeJS [![NuGet](https://img.shields.io/nuget/v/Aspose.Cells-Cloud.svg)](https://www.nuget.org/packages/Aspose.Cells-Cloud/)
2+
3+
- API version: 3.0
4+
- SDK version: 19.9
5+
6+
This repository contains Aspose.Cells Cloud SDK for NodeJS source code. This SDK allows you to work with Aspose.Cells Cloud REST APIs in your NodeJS applications quickly and easily, with zero initial cost.
7+
8+
39

410
# Key Features
5-
* Convert spreadsheets to different formats
6-
* Create spreadsheets from templates, XML or smart markers
7-
* Split spreadsheets to single worksheet spreadsheets
8-
* Manipulate rows, columns, cells & data
9-
* Set complex formulae
10-
* Extract charts, pictures, shapes & other objects as images
11-
* Export worksheets to images
11+
12+
- Conversion between various document-related formats (20+ formats supported), including PDF<->Excel conversion
13+
14+
- Splitting Excel documents
15+
16+
- Accessing Excel document metadata and statistics
17+
18+
- Find and replace
19+
20+
- Watermarks and protection
21+
22+
- Full read & write access to Cells Object Model, including workbook, worksheet, cell, shapes, tables, list object ,ole Object,headers/footers and many others
23+
24+
1225

1326
See [API Reference](https://apireference.aspose.cloud/cells/) for full API specification.
1427

15-
## How to use the SDK?
16-
The complete source code is available in this repository folder. You can either directly use it in your project via source code or get [nmpjs distribution](https://www.npmjs.com/package/asposecellscloud) (recommended). For more details, please visit our [documentation website](https://docs.aspose.cloud/display/cellscloud/Available+SDKs).
28+
29+
30+
# Storage API support
31+
32+
#### Since version 19.9 SDK includes support of storage operations for better user experience and unification, so now there's no need to use 2 different SDKs!
33+
34+
It gives you an ability to:
35+
36+
- Upload, download, copy, move and delete files, including versions handling (if you are using Cloud storage that supports this feature - true by default)
37+
- Create, copy, move and delete folders
38+
- Copy and move files and folders accross separate storages in scope of a single operation
39+
- Check if certain file, folder or storage exists
40+
41+
# Licensing
42+
43+
All Aspose.Cells Cloud SDKs are licensed under [MIT License](https://github.com/aspose-cells-cloud/aspose-cells-cloud-node/blob/master/LICENSE).
44+
45+
46+
47+
# How to use the SDK?
48+
49+
The complete source code is available in this repository folder. You can either directly use it in your project via source code or get [nmpjs distribution](https://www.npmjs.com/package/asposecellscloud) (recommended). For more details, please visit our [documentation website](https://docs.aspose.cloud/display/cellscloud/Available+SDKs).
50+
51+
1752

1853
### Prerequisites
1954

20-
To use Aspose Cells for Cloud SDK you need to register an account with [Aspose Cloud](https://www.aspose.cloud/) and lookup/create App Key and SID at [Cloud Dashboard](https://dashboard.aspose.cloud/#/apps). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/pricing).
55+
To use Aspose.Cells Cloud SDK you need to register an account with [Aspose Cloud](https://www.aspose.cloud/) and lookup/create App Key and SID at [Cloud Dashboard](https://dashboard.aspose.cloud/#/apps). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/pricing).
2156

22-
Required version of Node.js is 4.8.7 or higher.
57+
2358

2459
### Installation
2560

2661
#### Install Aspose.Cells-Cloud via NPM
2762

2863
From the command line:
2964

30-
npm install asposecellscloud --save
31-
65+
```
66+
npm install asposecellscloud --save
67+
```
68+
69+
70+
3271
### Sample usage
3372

34-
The examples below show how your application have to initiate and convert "xlsx file to "pdf" using asposecellscloud library:
35-
``` js
36-
const {CellsSaveAsApi, CellsSaveAs_PostDocumentSaveAsRequest, PdfSaveOptions} = require("asposecellscloud");
37-
38-
const AppSid = "your clientId";
39-
const AppKey = "your clientSecret";
40-
41-
const cellsSaveAsApi = new CellsSaveAsApi(AppSid, AppKey);
42-
const filename = "Book1.xlsx";
43-
var req = new CellsSaveAs_PostDocumentSaveAsRequest();
44-
req.name = filename;
45-
var saveOptions = new PdfSaveOptions();
46-
saveOptions.onePagePerSheet = true;
47-
saveOptions.saveFormat = "pdf"
48-
req.saveOptions = saveOptions;
49-
req.newfilename = "newbook.pdf";
50-
req.isAutoFitRows = true;
51-
req.isAutoFitColumns = true;
52-
req.folder = "Temp";
53-
54-
cellsSaveAsApi.cellsSaveAsPostDocumentSaveAs(req)
55-
.then((result) => {
56-
console.log(result.body.code);
57-
}).catch(function(err) {
58-
console.log(err);
59-
});
73+
6074

6175
```
76+
var fs = require('fs');
77+
var path = require('path');
78+
var assert = require('assert');
79+
const localPath = "../TestData/";
80+
describe('cellsWorkbookPutConvertWorkbook', function() {
81+
it('should call cellsWorkbookPutConvertWorkbook successfully', function() {
82+
const cellsApi =new api.CellsApi(AppSid, AppKey);
83+
const filename = "Book1.xlsx";
84+
var data =fs.createReadStream(localPath + filename);
85+
var req = new model.UploadFileRequest();
86+
req.path = "Temp/" + filename;
87+
req.file = data;
88+
89+
return cellsApi.uploadFile(req)
90+
.then(() => {
91+
var req = new model.CellsWorkbook_PutConvertWorkbookRequest({
92+
workbook : fs.createReadStream(localPath + filename),
93+
format : "pdf",
94+
});
95+
96+
return cellsApi.cellsWorkbookPutConvertWorkbook(req)
97+
.then((result) => {
98+
expect(result.body.toString().length).to.greaterThan(0);
99+
});
100+
});
101+
});
102+
});
103+
```
104+
105+
# Tests
106+
107+
[Tests](https://github.com/aspose-cells-cloud/aspose-cells-cloud-php/tree/master/test/Api) contain various examples of using the SDK.
108+
109+
110+
111+
# Contact Us
112+
113+
Your feedback is very important to us. Please feel free to contact via
114+
115+
- [**Free Support Forum**](https://forum.aspose.cloud/c/cells)
116+
- [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)
117+
118+
# Resources
62119

63-
## Contact Us
64-
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.aspose.cloud/c/cells).
120+
- [**Web API reference**](https://apireference.aspose.cloud/cells/)
121+
- [**Website**](https://www.aspose.cloud)
122+
- [**Product Home**](https://products.aspose.cloud/cells)
123+
- [**Documentation**](https://docs.aspose.cloud/display/cellscloud/Home)
124+
- [**Blog**](https://blog.aspose.cloud/category/cells/)

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asposecellscloud",
3-
"version": "19.6.0",
3+
"version": "19.9.0",
44
"description": "Aspose.Cells Cloud SDK for Node.js",
55
"keywords": [
66
"Aspose",
@@ -14,9 +14,8 @@
1414
},
1515
"repository": {
1616
"type": "git",
17-
"url": "https://github.com/aspose-cells-cloud/aspose-cells-cloud-node.git"
17+
"url": "git+https://github.com/aspose-cells-cloud/aspose-cells-cloud-node.git"
1818
},
19-
"readmeFilename": "README.md",
2019
"main": "dist/api.js",
2120
"types": "dist/api.d.ts",
2221
"scripts": {
@@ -35,7 +34,6 @@
3534
"@types/chai": "^4.0.10",
3635
"@types/mocha": "^2.2.44",
3736
"@types/node": "^10.3.1",
38-
"asposestoragecloud": "^1.0.5",
3937
"chai": "^4.1.2",
4038
"cross-env": "^5.1.4",
4139
"cucumber": "^3.0.0",
@@ -52,5 +50,12 @@
5250
"ts-node": "^4.0.2",
5351
"tslint": "^5.8.0",
5452
"typescript": "^2.7.1"
53+
},
54+
"bugs": {
55+
"url": "https://github.com/aspose-cells-cloud/aspose-cells-cloud-node/issues"
56+
},
57+
"homepage": "https://github.com/aspose-cells-cloud/aspose-cells-cloud-node#readme",
58+
"directories": {
59+
"test": "test"
5560
}
5661
}

0 commit comments

Comments
 (0)