Skip to content

Commit a3344fa

Browse files
add keywords service; correct docs
1 parent b448654 commit a3344fa

Some content is hidden

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

64 files changed

+4264
-56
lines changed

README.md

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ Example:
116116
"testResult":"/testresult/",
117117
"testData":"/testdata/",
118118
"remoteFolder":"HtmlTestDoc/",
119-
"defaultUserAgent":"Webkit",
120-
"debugFile":"debug.log",
121-
"debug":false
119+
"defaultUserAgent":"Webkit"
122120
}
123121
```
124122

@@ -205,6 +203,8 @@ All URIs are relative to *https://api.aspose.cloud/v1.1*
205203
[Tests](./test/) contain various examples of using the Aspose.HTML SDK.
206204

207205

206+
### HTML SDK
207+
208208
Class | Method | HTTP request | Description
209209
------------ | ------------- | ------------- | -------------
210210
*Asposehtmlcloud.ConversionApi* | [**GetConvertDocumentToImage**](docs/ConversionApi.md#GetConvertDocumentToImage) | **GET** /html/{name}/convert/image/{outFormat} | Convert the HTML document from the storage by its name to the specified image format.
@@ -220,6 +220,45 @@ Class | Method | HTTP request | Description
220220
*Asposehtmlcloud.OcrApi* | [**GetRecognizeAndTranslateToHtml**](docs/OcrApi.md#GetRecognizeAndTranslateToHtml) | **GET** /html/{name}/ocr/translate/{srcLang}/{resLang} | Recognize text from the image file in the storage, import it to HTML format and translate to specified language.
221221
*Asposehtmlcloud.TranslationApi* | [**GetTranslateDocument**](docs/TranslationApi.md#GetTranslateDocument) | **GET** /html/{name}/translate/{srcLang}/{resLang} | Translate the HTML document specified by the name from default or specified storage.
222222
*Asposehtmlcloud.TranslationApi* | [**GetTranslateDocumentByUrl**](docs/TranslationApi.md#GetTranslateDocumentByUrl) | **GET** /html/translate/{srcLang}/{resLang} | Translate the HTML document from Web specified by its URL.
223+
*Asposehtmlcloud.SummarizationApi* | [**GetDetectHtmlKeywords**](docs/SummarizationApi.md#GetDetectHtmlKeywords) | **GET** /html/{name}/summ/keywords | Get the HTML document keywords using the keyword detection service.
224+
*Asposehtmlcloud.SummarizationApi* | [**GetDetectHtmlKeywordsByUrl**](docs/SummarizationApi.md#GetDetectHtmlKeywordsByUrl) | **GET** /html/summ/keywords | Get the keywords from HTML document from Web specified by its URL using the keyword detection service
225+
226+
### STORAGE SDK
227+
228+
Class | Method | HTTP request | Description
229+
------------ | ------------- | ------------- | -------------
230+
*Asposehtmlcloud.StorageApi* | [**deleteFile**](docs/FileApi.md#deleteFile) | **DELETE** /storage/file | Remove a specific file
231+
*Asposehtmlcloud.StorageApi* | [**getDownload**](docs/FileApi.md#getDownload) | **GET** /storage/file | Download a specific file
232+
*Asposehtmlcloud.StorageApi* | [**postMoveFile**](docs/FileApi.md#postMoveFile) | **POST** /storage/file | Move a specific file
233+
*Asposehtmlcloud.StorageApi* | [**putCreate**](docs/FileApi.md#putCreate) | **PUT** /storage/file | Upload a specific file
234+
*Asposehtmlcloud.StorageApi* | [**deleteFolder**](docs/FolderApi.md#deleteFolder) | **DELETE** /storage/folder | Remove a specific folder
235+
*Asposehtmlcloud.StorageApi* | [**getListFiles**](docs/FolderApi.md#getListFiles) | **GET** /storage/folder | Get the file listing of a specific folder
236+
*Asposehtmlcloud.StorageApi* | [**postMoveFolder**](docs/FolderApi.md#postMoveFolder) | **POST** /storage/folder | Move a specific folder
237+
*Asposehtmlcloud.StorageApi* | [**putCreateFolder**](docs/FolderApi.md#putCreateFolder) | **PUT** /storage/folder | Create the folder
238+
*Asposehtmlcloud.StorageApi* | [**getDiscUsage**](docs/StorageApi.md#getDiscUsage) | **GET** /storage/disc | Check the disk usage of the current account
239+
*Asposehtmlcloud.StorageApi* | [**getIsExist**](docs/StorageApi.md#getIsExist) | **GET** /storage/exist | Check if a specific file or folder exists
240+
*Asposehtmlcloud.StorageApi* | [**getIsStorageExist**](docs/StorageApi.md#getIsStorageExist) | **GET** /storage/{name}/exist | Check if storage exists
241+
*Asposehtmlcloud.StorageApi* | [**getListFileVersions**](docs/StorageApi.md#getListFileVersions) | **GET** /storage/version | Get the file's versions list
242+
243+
244+
## Documentation for Models
245+
246+
- [Asposehtmlcloud.DiscUsage](docs/DiscUsage.md)
247+
- [Asposehtmlcloud.FileDetail](docs/FileDetail.md)
248+
- [Asposehtmlcloud.FileDetailsResponse](docs/FileDetailsResponse.md)
249+
- [Asposehtmlcloud.FileExist](docs/FileExist.md)
250+
- [Asposehtmlcloud.MessageResponse](docs/MessageResponse.md)
251+
- [Asposehtmlcloud.DiscUsageResponse](docs/DiscUsageResponse.md)
252+
- [Asposehtmlcloud.FileExistResponse](docs/FileExistResponse.md)
253+
- [Asposehtmlcloud.FileVersion](docs/FileVersion.md)
254+
- [Asposehtmlcloud.FileVersionsResponse](docs/FileVersionsResponse.md)
255+
- [Asposehtmlcloud.MoveFileResponse](docs/MoveFileResponse.md)
256+
- [Asposehtmlcloud.MoveFolderResponse](docs/MoveFolderResponse.md)
257+
- [Asposehtmlcloud.RemoveFileResponse](docs/RemoveFileResponse.md)
258+
- [Asposehtmlcloud.RemoveFolderResponse](docs/RemoveFolderResponse.md)
259+
- [Asposehtmlcloud.StorageExistResponse](docs/StorageExistResponse.md)
260+
261+
223262

224263
## Run tests
225264
```shell

docs/DiscUsage.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Asposehtmlcloud.DiscUsage
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**usedSize** | **Number** | |
7+
**totalSize** | **Number** | |
8+
9+

docs/DiscUsageResponse.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Asposehtmlcloud.DiscUsageResponse
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**discUsage** | [**DiscUsage**](DiscUsage.md) | | [optional]
7+
8+

docs/FileApi.md

Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
# Asposehtmlcloud.FileApi
2+
3+
All URIs are relative to *https://api.aspose.cloud/v1.1*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**deleteFile**](FileApi.md#deleteFile) | **DELETE** /storage/file | Remove a specific file
8+
[**getDownload**](FileApi.md#getDownload) | **GET** /storage/file | Download a specific file
9+
[**postMoveFile**](FileApi.md#postMoveFile) | **POST** /storage/file | Move a specific file
10+
[**putCreate**](FileApi.md#putCreate) | **PUT** /storage/file | Upload a specific file
11+
12+
13+
<a name="deleteFile"></a>
14+
# **deleteFile**
15+
> RemoveFileResponse deleteFile(path, opts)
16+
17+
Remove a specific file
18+
19+
### Example
20+
```javascript
21+
var Asposehtmlcloud = require('asposehtmlcloud');
22+
23+
var apiInstance = new Asposehtmlcloud.FileApi();
24+
25+
var path = "path_example"; // String | Path of the file including file name and extension e.g. /Folder1/file.ext
26+
27+
var opts = {
28+
'versionId': "versionId_example", // String | File's version
29+
'storage': "storage_example" // String | User's storage name
30+
};
31+
32+
var callback = function(error, data, response) {
33+
if (error) {
34+
console.error(error);
35+
} else {
36+
console.log('API called successfully. Returned data: ' + data);
37+
}
38+
};
39+
apiInstance.deleteFile(path, opts, callback);
40+
```
41+
42+
### Parameters
43+
44+
Name | Type | Description | Notes
45+
------------- | ------------- | ------------- | -------------
46+
**path** | **String**| Path of the file including file name and extension e.g. /Folder1/file.ext |
47+
**versionId** | **String**| File&#39;s version | [optional]
48+
**storage** | **String**| User&#39;s storage name | [optional]
49+
50+
### Return type
51+
52+
[**RemoveFileResponse**](RemoveFileResponse.md)
53+
54+
### HTTP request headers
55+
56+
- **Content-Type**: application/json
57+
- **Accept**: application/json
58+
59+
<a name="getDownload"></a>
60+
# **getDownload**
61+
> File getDownload(path, opts)
62+
63+
Download a specific file
64+
65+
### Example
66+
```javascript
67+
var Asposehtmlcloud = require('asposehtmlcloud');
68+
69+
var apiInstance = new Asposehtmlcloud.FileApi();
70+
71+
var path = "path_example"; // String | Path of the file including the file name and extension e.g. /file.ext
72+
73+
var opts = {
74+
'versionId': "versionId_example", // String | File's version
75+
'storage': "storage_example" // String | User's storage name
76+
};
77+
78+
var callback = function(error, data, response) {
79+
if (error) {
80+
console.error(error);
81+
} else {
82+
console.log('API called successfully. Returned data: ' + data);
83+
}
84+
};
85+
apiInstance.getDownload(path, opts, callback);
86+
```
87+
88+
### Parameters
89+
90+
Name | Type | Description | Notes
91+
------------- | ------------- | ------------- | -------------
92+
**path** | **String**| Path of the file including the file name and extension e.g. /file.ext |
93+
**versionId** | **String**| File&#39;s version | [optional]
94+
**storage** | **String**| User&#39;s storage name | [optional]
95+
96+
### Return type
97+
98+
**Blob** See test in [../test/StorageApi.spec.js](../test/StorageApi.spec.js)
99+
100+
### HTTP request headers
101+
102+
- **Content-Type**: application/json
103+
- **Accept**: multipart/form-data
104+
105+
<a name="postMoveFile"></a>
106+
# **postMoveFile**
107+
> MoveFileResponse postMoveFile(src, dest, opts)
108+
109+
Move a specific file
110+
111+
### Example
112+
```javascript
113+
var Asposehtmlcloud = require('asposehtmlcloud');
114+
115+
var apiInstance = new Asposehtmlcloud.FileApi();
116+
117+
var src = "src_example"; // String | Source file path e.g. /fileSource.ext
118+
119+
var dest = "dest_example"; // String | Destination file path e.g. /fileDestination.ext
120+
121+
var opts = {
122+
'versionId': "versionId_example", // String | Source file's version,
123+
'storage': "storage_example", // String | User's source storage name
124+
'destStorage': "destStorage_example" // String | User's destination storage name
125+
};
126+
127+
var callback = function(error, data, response) {
128+
if (error) {
129+
console.error(error);
130+
} else {
131+
console.log('API called successfully. Returned data: ' + data);
132+
}
133+
};
134+
apiInstance.postMoveFile(src, dest, opts, callback);
135+
```
136+
137+
### Parameters
138+
139+
Name | Type | Description | Notes
140+
------------- | ------------- | ------------- | -------------
141+
**src** | **String**| Source file path e.g. /fileSource.ext |
142+
**dest** | **String**| Destination file path e.g. /fileDestination.ext |
143+
**versionId** | **String**| Source file&#39;s version, | [optional]
144+
**storage** | **String**| User&#39;s source storage name | [optional]
145+
**destStorage** | **String**| User&#39;s destination storage name | [optional]
146+
147+
### Return type
148+
149+
[**MoveFileResponse**](MoveFileResponse.md)
150+
151+
### HTTP request headers
152+
153+
- **Content-Type**: multipart/form-data
154+
- **Accept**: application/json
155+
156+
<a name="putCreate"></a>
157+
# **putCreate**
158+
> File putCreate(path, file, opts)
159+
160+
Upload a specific file
161+
162+
### Example
163+
```javascript
164+
var Asposehtmlcloud = require('asposehtmlcloud');
165+
166+
var apiInstance = new Asposehtmlcloud.FileApi();
167+
168+
var path = "path_example"; // String | Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext
169+
170+
var file = "/path/to/file.txt"; // File | File to upload
171+
172+
var opts = {
173+
'versionId': "versionId_example", // String | Source file's version
174+
'storage': "storage_example" // String | User's storage name
175+
};
176+
177+
var callback = function(error, data, response) {
178+
if (error) {
179+
console.error(error);
180+
} else {
181+
console.log('API called successfully. Returned data: ' + data);
182+
}
183+
};
184+
apiInstance.putCreate(path, file, opts, callback);
185+
```
186+
187+
### Parameters
188+
189+
Name | Type | Description | Notes
190+
------------- | ------------- | ------------- | -------------
191+
**path** | **String**| Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext |
192+
**file** | **String**| Upload file path|
193+
**versionId** | **String**| Source file&#39;s version | [optional]
194+
**storage** | **String**| User&#39;s storage name | [optional]
195+
196+
### Return type
197+
198+
[**MessageResponse**](MessageResponse.md)
199+
200+
### HTTP request headers
201+
202+
- **Content-Type**: multipart/form-data
203+
- **Accept**: application/json
204+

docs/FileDetail.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Asposehtmlcloud.FileDetail
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**name** | **String** | | [optional]
7+
**isFolder** | **Boolean** | |
8+
**modifiedDate** | **Date** | | [optional]
9+
**size** | **Number** | |
10+
**path** | **String** | | [optional]
11+
**isDirectory** | **Boolean** | |
12+
13+

docs/FileDetailsResponse.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Asposehtmlcloud.FileDetailsResponse
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**fileDetail** | [**[FileDetail]**](FileDetail.md) | | [optional]
7+
8+

docs/FileExist.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Asposehtmlcloud.FileExist
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**isExist** | **Boolean** | |
7+
**isFolder** | **Boolean** | |
8+
9+

docs/FileExistResponse.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Asposehtmlcloud.FileExistResponse
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**fileExist** | [**FileExist**](FileExist.md) | | [optional]
7+
8+

docs/FileVersion.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Asposehtmlcloud.FileVersion
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**versionId** | **String** | | [optional]
7+
**isLatest** | **Boolean** | | [optional]
8+
9+

docs/FileVersionsResponse.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Asposehtmlcloud.FileVersionsResponse
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**fileVersions** | [**[FileVersion]**](FileVersion.md) | | [optional]
7+
8+

0 commit comments

Comments
 (0)