groupdocs-viewer-cloud
GroupDocs.Viewer Cloud SDK for Node.js
Last updated 4 months ago by groupdocscloud .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install groupdocs-viewer-cloud 
SYNC missed versions from official npm registry.

GroupDocs.Viewer Cloud Node.js SDK

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

Installation

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

npm install groupdocs-viewer-cloud

Getting Started

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

// load the module
var GroupDocs = require('groupdocs-viewer-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 ViewerApi
var infoApi = GroupDocs.InfoApi.fromKeys(appSid, appKey);

// retrieve supported file-formats
infoApi.getSupportedFileFormats()
    .then(function (response) {
        console.log("Supported file-formats:")
        response.formats.forEach(function (format) {
            console.log(format.fileFormat + " (" + format.extension + ")");
        });
    })
    .catch(function (error) {
        console.log("Error: " + error.message)
    });

Or compile and run same written in TypeScript:

// load the module
import { InfoApi } from "groupdocs-viewer-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 ViewerApi
const infoApi: InfoApi = InfoApi.fromKeys(appSid, appKey);

// retrieve supported file-formats
infoApi.getSupportedFileFormats()
    .then((result) => {
        console.log("Supported file-formats:");
        result.formats.forEach((format) => {
            console.log(format.fileFormat + " (" + format.extension + ")");
        });
    })
    .catch((error) => {
        console.log("Error: " + error.message);
    });

Licensing

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

Resources

Contact Us

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

Current Tags

  • 19.5.0                                ...           latest (4 months ago)

6 Versions

  • 19.5.0                                ...           4 months ago
  • 19.4.0                                ...           5 months ago
  • 19.3.2                                ...           5 months ago
  • 19.3.0                                ...           6 months ago
  • 18.11.0                                ...           8 months ago
  • 18.7.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 13
Dependencies (3)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |