Skip to content

Commit 97565a3

Browse files
committed
Updated sources
1 parent e971954 commit 97565a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+5019
-3
lines changed

.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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
MIT License
1+
The MIT License (MIT)
22

3-
Copyright (c) 2003-2018 Aspose Pty Ltd
3+
Copyright (c) 2003-2019 Aspose Pty Ltd
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -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.Annotation Cloud Node.js SDK
2+
Node.js module for communicating with the GroupDocs.Annotation Cloud API
3+
4+
## Installation
5+
6+
A package `groupdocs-annotation-cloud` is available at [npmjs.com](https://www.npmjs.com/package/groupdocs-annotation-cloud). You can install it with:
7+
8+
```shell
9+
npm install groupdocs-annotation-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-annotation-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 AnnotationApi
25+
var infoApi = GroupDocs.InfoApi.fromKeys(appSid, appKey);
26+
27+
// retrieve supported file-formats
28+
infoApi.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 { InfoApi } from "groupdocs-annotation-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 AnnotationApi
51+
const infoApi: InfoApi = InfoApi.fromKeys(appSid, appKey);
52+
53+
// retrieve supported file-formats
54+
infoApi.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.Annotation 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/annotation)
73+
+ [**Documentation**](https://docs.groupdocs.cloud/display/annotationcloud/Home)
74+
+ [**Free Support Forum**](https://forum.groupdocs.cloud/c/annotation)
75+
+ [**Blog**](https://blog.groupdocs.cloud/category/annotation)
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/annotation).

package.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "groupdocs-annotation-cloud",
3+
"version": "19.5.0",
4+
"description": "GroupDocs.Annotation Cloud SDK for Node.js",
5+
"homepage": "https://products.groupdocs.cloud/annotation",
6+
"author": {
7+
"name": "GroupDocs"
8+
},
9+
"license": "MIT",
10+
"engines": {
11+
"node": ">=4.8"
12+
},
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-node"
16+
},
17+
"keywords": [
18+
"GroupDocs",
19+
"Cloud",
20+
"Annotation"
21+
],
22+
"readmeFilename": "README.md",
23+
"main": "lib/annotation_api.js",
24+
"types": "lib/annotation_api.d.ts",
25+
"scripts": {
26+
"clean": "rimraf ./lib && rimraf ./node_modules",
27+
"lint": "npm install --no-save && tslint src/{,**/}*.ts test/{,**/}*.ts -t verbose --project ./tsconfig.json",
28+
"test": "npm install --no-save && mocha -r ts-node/register test/**/*.ts --timeout 1200000 --reporter spec",
29+
"test1": "npm install --no-save && mocha -r ts-node/register test/**/test_preview_api.ts --timeout 1200000 --reporter spec",
30+
"build:dev": "rimraf ./lib && npm install --no-save && tsc --build ./tsconfig-dev.json",
31+
"build:lib": "rimraf ./lib && npm install --no-save && tsc --build ./tsconfig.json",
32+
"build:package": "npm pack"
33+
},
34+
"dependencies": {
35+
"request": "^2.88.0",
36+
"request-debug": "^0.2.0",
37+
"@types/request": "*"
38+
},
39+
"devDependencies": {
40+
"@types/chai": "^4.1.7",
41+
"@types/mocha": "^5.2.7",
42+
"@types/node": "^12.0.8",
43+
"asposestoragecloud": "^1.0.5",
44+
"mocha": "^6.1.4",
45+
"chai": "^4.2.0",
46+
"ts-node": "^8.2.0",
47+
"tslint": "^5.17.0",
48+
"typescript": "^3.5.2"
49+
}
50+
}

0 commit comments

Comments
 (0)