asposecellscloud
Advanced tools
Comparing version 19.6.0 to 19.9.0
@@ -66,3 +66,3 @@ "use strict"; | ||
json: true, | ||
uri: configuration.baseUrl + "/oauth2/token", | ||
uri: configuration.baseUrl + "/connect/token", | ||
form: { | ||
@@ -85,3 +85,3 @@ grant_type: "client_credentials", | ||
json: true, | ||
uri: configuration.baseUrl + "/oauth2/token", | ||
uri: configuration.baseUrl + "/connect/token", | ||
form: { | ||
@@ -88,0 +88,0 @@ grant_type: "refresh_token", |
@@ -28,3 +28,3 @@ "use strict"; | ||
const defaultBasePath = "https://api.aspose.cloud"; | ||
const apiVersion = "v1.1"; | ||
const apiVersion = "v3.0"; | ||
/** | ||
@@ -31,0 +31,0 @@ * Words API configuration |
@@ -98,4 +98,6 @@ "use strict"; | ||
} | ||
// requestOptions.proxy="http://localhost:8888"; | ||
// requestOptions.rejectUnauthorized=false; | ||
requestOptions.headers["x-aspose-client"] = "nodejs sdk"; | ||
requestOptions.headers["x-aspose-client-version"] = "19.2.1"; | ||
requestOptions.headers["x-aspose-client-version"] = "19.9.0"; | ||
const auth = confguration.authentication; | ||
@@ -102,0 +104,0 @@ if (!notApplyAuthToRequest) { |
{ | ||
"name": "asposecellscloud", | ||
"version": "19.6.0", | ||
"version": "19.9.0", | ||
"description": "Aspose.Cells Cloud SDK for Node.js", | ||
@@ -17,5 +17,4 @@ "keywords": [ | ||
"type": "git", | ||
"url": "https://github.com/aspose-cells-cloud/aspose-cells-cloud-node.git" | ||
"url": "git+https://github.com/aspose-cells-cloud/aspose-cells-cloud-node.git" | ||
}, | ||
"readmeFilename": "README.md", | ||
"main": "dist/api.js", | ||
@@ -39,3 +38,2 @@ "types": "dist/api.d.ts", | ||
"@types/node": "^10.3.1", | ||
"asposestoragecloud": "^1.0.5", | ||
"chai": "^4.1.2", | ||
@@ -57,3 +55,10 @@ "cross-env": "^5.1.4", | ||
"typescript": "^2.7.1" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/aspose-cells-cloud/aspose-cells-cloud-node/issues" | ||
}, | ||
"homepage": "https://github.com/aspose-cells-cloud/aspose-cells-cloud-node#readme", | ||
"directories": { | ||
"test": "test" | ||
} | ||
} |
142
README.md
@@ -1,23 +0,58 @@ | ||
# Aspose.Cells Cloud SDK for Node.js [![npm](https://badge.fury.io/js/asposecellscloud.svg)](https://www.npmjs.com/package/asposecellscloud) | ||
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. | ||
# 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/) | ||
- API version: 3.0 | ||
- SDK version: 19.9 | ||
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. | ||
# Key Features | ||
* Convert spreadsheets to different formats | ||
* Create spreadsheets from templates, XML or smart markers | ||
* Split spreadsheets to single worksheet spreadsheets | ||
* Manipulate rows, columns, cells & data | ||
* Set complex formulae | ||
* Extract charts, pictures, shapes & other objects as images | ||
* Export worksheets to images | ||
- Conversion between various document-related formats (20+ formats supported), including PDF<->Excel conversion | ||
- Splitting Excel documents | ||
- Accessing Excel document metadata and statistics | ||
- Find and replace | ||
- Watermarks and protection | ||
- Full read & write access to Cells Object Model, including workbook, worksheet, cell, shapes, tables, list object ,ole Object,headers/footers and many others | ||
See [API Reference](https://apireference.aspose.cloud/cells/) for full API specification. | ||
## How to use the SDK? | ||
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). | ||
# Storage API support | ||
#### 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! | ||
It gives you an ability to: | ||
- Upload, download, copy, move and delete files, including versions handling (if you are using Cloud storage that supports this feature - true by default) | ||
- Create, copy, move and delete folders | ||
- Copy and move files and folders accross separate storages in scope of a single operation | ||
- Check if certain file, folder or storage exists | ||
# Licensing | ||
All Aspose.Cells Cloud SDKs are licensed under [MIT License](https://github.com/aspose-cells-cloud/aspose-cells-cloud-node/blob/master/LICENSE). | ||
# How to use the SDK? | ||
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). | ||
### Prerequisites | ||
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). | ||
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). | ||
Required version of Node.js is 4.8.7 or higher. | ||
@@ -30,36 +65,61 @@ ### Installation | ||
npm install asposecellscloud --save | ||
``` | ||
npm install asposecellscloud --save | ||
``` | ||
### Sample usage | ||
The examples below show how your application have to initiate and convert "xlsx file to "pdf" using asposecellscloud library: | ||
``` js | ||
const {CellsSaveAsApi, CellsSaveAs_PostDocumentSaveAsRequest, PdfSaveOptions} = require("asposecellscloud"); | ||
const AppSid = "your clientId"; | ||
const AppKey = "your clientSecret"; | ||
``` | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var assert = require('assert'); | ||
const localPath = "../TestData/"; | ||
describe('cellsWorkbookPutConvertWorkbook', function() { | ||
it('should call cellsWorkbookPutConvertWorkbook successfully', function() { | ||
const cellsApi =new api.CellsApi(AppSid, AppKey); | ||
const filename = "Book1.xlsx"; | ||
var data =fs.createReadStream(localPath + filename); | ||
var req = new model.UploadFileRequest(); | ||
req.path = "Temp/" + filename; | ||
req.file = data; | ||
const cellsSaveAsApi = new CellsSaveAsApi(AppSid, AppKey); | ||
const filename = "Book1.xlsx"; | ||
var req = new CellsSaveAs_PostDocumentSaveAsRequest(); | ||
req.name = filename; | ||
var saveOptions = new PdfSaveOptions(); | ||
saveOptions.onePagePerSheet = true; | ||
saveOptions.saveFormat = "pdf" | ||
req.saveOptions = saveOptions; | ||
req.newfilename = "newbook.pdf"; | ||
req.isAutoFitRows = true; | ||
req.isAutoFitColumns = true; | ||
req.folder = "Temp"; | ||
cellsSaveAsApi.cellsSaveAsPostDocumentSaveAs(req) | ||
.then((result) => { | ||
console.log(result.body.code); | ||
}).catch(function(err) { | ||
console.log(err); | ||
}); | ||
return cellsApi.uploadFile(req) | ||
.then(() => { | ||
var req = new model.CellsWorkbook_PutConvertWorkbookRequest({ | ||
workbook : fs.createReadStream(localPath + filename), | ||
format : "pdf", | ||
}); | ||
return cellsApi.cellsWorkbookPutConvertWorkbook(req) | ||
.then((result) => { | ||
expect(result.body.toString().length).to.greaterThan(0); | ||
}); | ||
}); | ||
}); | ||
}); | ||
``` | ||
## Contact Us | ||
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.aspose.cloud/c/cells). | ||
# Tests | ||
[Tests](https://github.com/aspose-cells-cloud/aspose-cells-cloud-php/tree/master/test/Api) contain various examples of using the SDK. | ||
# Contact Us | ||
Your feedback is very important to us. Please feel free to contact via | ||
- [**Free Support Forum**](https://forum.aspose.cloud/c/cells) | ||
- [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/) | ||
# Resources | ||
- [**Web API reference**](https://apireference.aspose.cloud/cells/) | ||
- [**Website**](https://www.aspose.cloud) | ||
- [**Product Home**](https://products.aspose.cloud/cells) | ||
- [**Documentation**](https://docs.aspose.cloud/display/cellscloud/Home) | ||
- [**Blog**](https://blog.aspose.cloud/category/cells/) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1420888
19
39385
0
0
124