|
1 | | -# groupdocs-editor-cloud-node |
| 1 | +# GroupDocs.Editor Cloud Node.js SDK |
2 | 2 | Node.js module for communicating with the GroupDocs.Editor Cloud API |
| 3 | + |
| 4 | +GroupDocs.Editor Cloud allows you to edit documents across wide range of supported document types: |
| 5 | + * Microsoft Word documents - DOC, DOCX, DOCM, DOT, DOTM, DOTX, RTF, FlatOpc, WordML, TXT; |
| 6 | + * Microsoft Excel spreadsheets - XLS, XLSX, XLSM, XLT, XLTX, XLTM, XLSB, SpreadsheetML, CSV, TSV; |
| 7 | + * Microsoft PowerPoint presentations - PPT, PPTX, PPTM, POT, PPS etc.; |
| 8 | + * Open Document formats - ODT, OTT, ODS, ODP, OTP; |
| 9 | + * Markup - HTML, MHTML, XML. |
| 10 | +## Installation |
| 11 | + |
| 12 | +A package `groupdocs-editor-cloud` is available at [npmjs.com](https://www.npmjs.com/package/groupdocs-editor-cloud). You can install it with: |
| 13 | + |
| 14 | +```shell |
| 15 | +npm install groupdocs-editor-cloud |
| 16 | +``` |
| 17 | + |
| 18 | +## Getting Started |
| 19 | + |
| 20 | +Please follow the [installation](#installation) procedure and then run the following JavaScript code: |
| 21 | + |
| 22 | +```js |
| 23 | +// load the module |
| 24 | +var GroupDocs = require('groupdocs-editor-cloud'); |
| 25 | + |
| 26 | +// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required). |
| 27 | +var appSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"; |
| 28 | +var appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; |
| 29 | + |
| 30 | +// construct EditorApi |
| 31 | +var infoApi = GroupDocs.InfoApi.fromKeys(appSid, appKey); |
| 32 | + |
| 33 | +// retrieve supported file-formats |
| 34 | +infoApi.getSupportedFileFormats() |
| 35 | + .then(function (response) { |
| 36 | + console.log("Supported file-formats:") |
| 37 | + response.formats.forEach(function (format) { |
| 38 | + console.log(format.fileFormat + " (" + format.extension + ")"); |
| 39 | + }); |
| 40 | + }) |
| 41 | + .catch(function (error) { |
| 42 | + console.log("Error: " + error.message) |
| 43 | + }); |
| 44 | +``` |
| 45 | + |
| 46 | +Or compile and run same written in TypeScript: |
| 47 | + |
| 48 | +```ts |
| 49 | +// load the module |
| 50 | +import { InfoApi } from "groupdocs-editor-cloud"; |
| 51 | + |
| 52 | +// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required). |
| 53 | +const appSid: string = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"; |
| 54 | +const appKey: string = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; |
| 55 | + |
| 56 | +// construct EditorApi |
| 57 | +const infoApi: InfoApi = InfoApi.fromKeys(appSid, appKey); |
| 58 | + |
| 59 | +// retrieve supported file-formats |
| 60 | +infoApi.getSupportedFileFormats() |
| 61 | + .then((result) => { |
| 62 | + console.log("Supported file-formats:"); |
| 63 | + result.formats.forEach((format) => { |
| 64 | + console.log(format.fileFormat + " (" + format.extension + ")"); |
| 65 | + }); |
| 66 | + }) |
| 67 | + .catch((error) => { |
| 68 | + console.log("Error: " + error.message); |
| 69 | + }); |
| 70 | +``` |
| 71 | + |
| 72 | + |
| 73 | +## Licensing |
| 74 | +GroupDocs.Editor Cloud Node.js SDK licensed under [MIT License](LICENSE). |
| 75 | + |
| 76 | +## Resources |
| 77 | ++ [**Website**](https://www.groupdocs.cloud) |
| 78 | ++ [**Product Home**](https://products.groupdocs.cloud/editor) |
| 79 | ++ [**Documentation**](https://docs.groupdocs.cloud/display/editorcloud/Home) |
| 80 | ++ [**Free Support Forum**](https://forum.groupdocs.cloud/c/editor) |
| 81 | ++ [**Blog**](https://blog.groupdocs.cloud/category/editor) |
| 82 | + |
| 83 | +## Contact Us |
| 84 | +Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/editor). |
0 commit comments