Skip to content

Commit f17b7b7

Browse files
committed
Updated sources
1 parent d665359 commit f17b7b7

35 files changed

Lines changed: 9668 additions & 2 deletions

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# node.js
2+
wwwroot/*.js
3+
node_modules
4+
typings
5+
lib
6+
7+
# vs code
8+
.vscode

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/*
2+
!lib/**/*
3+
!package.json
4+
!LICENSE
5+
!README.md

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
MIT License
1+
The MIT License (MIT)
22

33
Copyright (c) 2003-2018 Aspose Pty Ltd
44

@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# GroupDocs.Conversion Cloud Node.js SDK
2+
Node.js module for communicating with the GroupDocs.Conversion Cloud API
3+
4+
## Installation
5+
6+
A package `groupdocs-conversion-cloud` is available at [npmjs.com](https://www.npmjs.com/package/groupdocs-conversion-cloud). You can install it with:
7+
8+
```shell
9+
npm install groupdocs-conversion-cloud
10+
```
11+
12+
## Getting Started
13+
14+
Please follow the [installation](#installation) procedure and then run the following JavaScript code:
15+
16+
```js
17+
// load the module
18+
var GroupDocs = require('groupdocs-conversion-cloud');
19+
20+
// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required).
21+
var appSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
22+
var appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
23+
24+
// construct ConversionApi
25+
var conversionApi = GroupDocs.ConversionApi.fromKeys(appSid, appKey);
26+
27+
// retrieve supported file-formats
28+
conversionApi.getSupportedFileFormats()
29+
.then(function (response) {
30+
console.log("Supported file-formats:")
31+
response.formats.forEach(function (format) {
32+
console.log(format.fileFormat + " (" + format.extension + ")");
33+
});
34+
})
35+
.catch(function (error) {
36+
console.log("Error: " + error.message)
37+
});
38+
```
39+
40+
Or compile and run same written in TypeScript:
41+
42+
```ts
43+
// load the module
44+
import { ConversionApi } from "groupdocs-conversion-cloud";
45+
46+
// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required).
47+
const appSid: string = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
48+
const appKey: string = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
49+
50+
// construct ConversionApi
51+
const conversionApi: ConversionApi = ConversionApi.fromKeys(appSid, appKey);
52+
53+
// retrieve supported file-formats
54+
conversionApi.getSupportedFileFormats()
55+
.then((result) => {
56+
console.log("Supported file-formats:");
57+
result.formats.forEach((format) => {
58+
console.log(format.fileFormat + " (" + format.extension + ")");
59+
});
60+
})
61+
.catch((error) => {
62+
console.log("Error: " + error.message);
63+
});
64+
```
65+
66+
67+
## Licensing
68+
GroupDocs.Conversion Cloud Node.js SDK licensed under [MIT License](LICENSE).
69+
70+
## Resources
71+
+ [**Website**](https://www.groupdocs.cloud)
72+
+ [**Product Home**](https://products.groupdocs.cloud/conversion)
73+
+ [**Documentation**](https://docs.groupdocs.cloud/display/conversioncloud/Home)
74+
+ [**Free Support Forum**](https://forum.groupdocs.cloud/c/conversion)
75+
+ [**Blog**](https://blog.groupdocs.cloud/category/conversion)
76+
77+
## Contact Us
78+
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/conversion).

0 commit comments

Comments
 (0)