Aspose.Cells Cloud SDK for Node.js
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 Node.js applications quickly and easily.
##How to use the SDK?
The complete source code is available in this repository folder, you can either directly use it in your project or use NPM. For more details, please visit our documentation website.
##Contact Us
Your feedback is very important to us. Please feel free to contact us using our Support Forums.
Quick SDK Tutorial
var fs = require('fs');
var assert = require('assert');
var StorageApi =require("asposestoragecloud")
var CellsApi =require("asposecellscloud")
var AppSID = 'XXX';
var AppKey = 'XXX';
var config = {'appSid':AppSID,'apiKey':AppKey};
var data_path = '../data/';
try {
var storageApi = new StorageApi(config);
var cellsApi = new CellsApi(config);
var filename = "Sample_Test_Book";
var name = filename + ".xls";
var format = "pdf";
storageApi.PutCreate(name, null, null, file= data_path + name , function(responseMessage) {
assert.equal(responseMessage.status, 'OK');
cellsApi.PutConvertWorkBook(format, null, null, data_path + name, null, function(responseMessage) {
assert.equal(responseMessage.status, 'OK');
var outfilename = filename + '.' + format;
var writeStream = fs.createWriteStream('c:/temp/' + outfilename);
writeStream.write(responseMessage.body);
});
});
}catch (e) {
console.log("exception in example");
console.log(e);
}