groupdocs-conversion-cloud
TypeScript icon, indicating that this package has built-in type declarations

24.11.0 • Public • Published

GroupDocs.Conversion Cloud Node.js SDK

Node.js module for communicating with the GroupDocs.Conversion Cloud API

Installation

A package groupdocs-conversion-cloud is available at npmjs.com. You can install it with:

npm install groupdocs-conversion-cloud

Getting Started

Please follow the installation procedure and then run the following JavaScript code:

// load the module
var GroupDocs = require('groupdocs-conversion-cloud');

// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required).
var appSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
var appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";

// construct Api
var api = GroupDocs.InfoApi.fromKeys(appSid, appKey);
var request = new GroupDocs.GetSupportedConversionTypesRequest();
// retrieve supported conversion types
api.getSupportedConversionTypes(request)
    .then(function (response) {
        console.log("Supported file-formats:")
        response.forEach(function (format) {
            console.log(format.sourceFormat + ": [" + format.targetFormats.join(", ") + "]");
        });
    })
    .catch(function (error) {
        console.log("Error: " + error.message)
    });

Or compile and run same written in TypeScript:

// load the module
import { INfoApi, GetSupportedConversionTypesRequest } from "groupdocs-conversion-cloud";

// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required).
const appSid: string = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
const appKey: string = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";

// construct Api
const api: InfoApi = InfoApi.fromKeys(appSid, appKey);

const request: GetSupportedConversionTypesRequest = new GetSupportedConversionTypesRequest();

// retrieve supported file-formats
api.getSupportedConversionTypes(request)
    .then((result) => {
        console.log("Supported file-formats:");
        result.forEach((format) => {
            console.log(format.sourceFormat + ": [" + format.targetFormats.join(", ") + "]");
        });
    })
    .catch((error) => {
        console.log("Error: " + error.message);
    });

Licensing

GroupDocs.Conversion Cloud Node.js SDK licensed under MIT License.

Resources

+Website +Product Home +Documentation +Free Support Forum +Blog

Contact Us

Your feedback is very important to us. Please feel free to contact us using our Support Forums.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
24.11.080latest

Version History

VersionDownloads (Last 7 Days)Published
24.11.080
24.8.04
24.4.077
24.3.00
24.2.00
24.1.00
23.12.029
23.10.01
23.9.02
23.8.00
23.7.00
23.6.00
23.4.04
23.2.00
22.10.076
22.3.027
21.12.03
21.10.00
21.9.00
21.4.10
21.4.00
20.11.00
20.3.01
20.2.00
19.5.00
19.4.00
19.3.10

Package Sidebar

Install

npm i groupdocs-conversion-cloud

Weekly Downloads

304

Version

24.11.0

License

MIT

Unpacked Size

368 kB

Total Files

19

Last publish

Collaborators

  • groupdocscloud