Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asposeslidescloud

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asposeslidescloud - npm Package Compare versions

Comparing version 1.0.0 to 18.11.0

api.js

31

package.json
{
"name": "asposeslidescloud",
"version": "1.0.0",
"version": "18.11.0",
"description": "Aspose.Slides Cloud SDK for Node.js",
"main": "lib/SlidesApi.js",
"homepage": "http://www.aspose.com/cloud/powerpoint-api.aspx",
"scripts": {
"test": "echo \"Error: no test specified! Configure in package.json\" && exit 1"
"homepage": "https://products.aspose.cloud/slides/cloud",
"author": {
"name": "Victor Putrov"
},
"repository": {
"type": "git",
"url": "https://github.com/asposeslides/Aspose_Slides_Cloud.git"
"license": "MIT",
"engines": {
"node": ">=4.8"
},

@@ -20,14 +19,8 @@ "keywords": [

],
"engines": {
"node": ">= 0.8.x"
},
"readmeFilename": "README.md",
"main": "api.js",
"dependencies": {
"asposestoragecloud": ">= 1.0.0",
"node-uuid": "~1.4.3",
"combined-stream": "~1.0.5",
"isstream": "~0.1.2"
},
"author": "Farooq Sheikh <farooq.sheikh@aspose.com>",
"license": "MIT",
"readmeFilename": "README.md"
"request": "^2.85.0",
"request-debug": "^0.2.0"
}
}

@@ -1,54 +0,12 @@

# Aspose.Slides Cloud SDK for Node.js
# Aspose.Slides Cloud SDK for NodeJS
This repository contains Aspose.Slides Cloud SDK for NodeJS source code. This SDK allows you to work with Aspose.Slides Cloud REST APIs in your NodeJS applications.
This repository contains Aspose.Slides Cloud SDK for Node.js source code. This SDK allows you to work with Aspose.Slides 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 via source code or get [NPM package](https://www.npmjs.com/package/asposeslidescloud) (recommended).
The complete source code is available in this repository folder. For more details, please visit our [documentation website](http://www.aspose.com/docs/display/slidescloud/How+to+Setup+Aspose.Slides+Cloud+SDK+for+Node.js).
## Prerequisites
## Quick SDK Tutorial
```javascript
var fs = require('fs');
var assert = require('assert');
var StorageApi =require("asposestoragecloud")
var SlidesApi = require("asposeslidescloud");
To use Aspose Slides for Cloud NodeJS 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).
var AppSID = 'XXX'; //sepcify App SID
var AppKey = 'XXX'; //sepcify App Key
var config = {'appSid':AppSID,'apiKey':AppKey};
var data_path = '../data/';
try {
//Instantiate Aspose.Storage API SDK
var storageApi = new StorageApi(config);
//Instantiate Aspose.Slides API SDK
var slidesApi = new SlidesApi(config);
//set input file name
var filename = "sample";
var name = filename + ".pptx";
var format = "pdf";
var jpegQuality = 50;
var versionId = null;
var storage = null;
var folder = null;
//upload file to aspose cloud storage
storageApi.PutCreate(name, versionId, storage, data_path + name , function(responseMessage) {
assert.equal(responseMessage.status, 'OK');
//invoke Aspose.Slides Cloud SDK API to save a presentation to different other formats with additional settings
slidesApi.GetSlidesDocumentWithFormat(name, format, jpegQuality, null, storage, folder, null, function(responseMessage) {
assert.equal(responseMessage.status, 'OK');
//download output document from response
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);
}
```
## Contact Us
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.aspose.cloud/c/slides).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc