Skip to content

Commit 73e8e77

Browse files
version 19.6.0 (cumulative)
1 parent c631073 commit 73e8e77

Some content is hidden

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

56 files changed

+4545
-4355
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea/
2-
node_modules/
2+
node_modules/
3+
testresult/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Aspose Pty Ltd
3+
Copyright (c) 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

README.md

Lines changed: 40 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Asposehtmlcloud - JavaScript client for asposehtmlcloud
44

5-
- API version: 1.0.3
6-
- Package version: 1.0.3
5+
- API version: 19.6.0
6+
- Package version: 19.6.0
77

88
## Installation
99

@@ -109,8 +109,8 @@ Before fill all fields in configuration object (see tests)
109109
Example:
110110
```json
111111
var conf = {
112-
"basePath":"https://api.aspose.cloud/v1.1",
113-
"authPath":"https://api.aspose.cloud/oauth2/token",
112+
"basePath":"https://api.aspose.cloud/v3.0",
113+
"authPath":"https://api.aspose.cloud/connect/token",
114114
"apiKey":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
115115
"appSID":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
116116
"testResult":"/testresult/",
@@ -120,8 +120,6 @@ var conf = {
120120
}
121121
```
122122

123-
124-
125123
## Getting Started
126124

127125
Please follow the [installation](#installation) instruction and execute the following JS code:
@@ -130,8 +128,8 @@ NOTE: Use the helper from /test/helper.js for upload and save data.
130128

131129
```javascript
132130
var conf = {
133-
"basePath":"https://api.aspose.cloud/v1.1",
134-
"authPath":"https://api.aspose.cloud/oauth2/token",
131+
"basePath":"https://api.aspose.cloud/v3.0",
132+
"authPath":"https://api.aspose.cloud/connect/token",
135133
"apiKey":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
136134
"appSID":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
137135
"testResult":"/testresult/",
@@ -166,7 +164,7 @@ var file = local_src_folder + "/" + filename;
166164
//Upload file to storage
167165
var opts = {versionId:versionId, storage:null};
168166

169-
storageApi.putCreate(folder + "/" + filename, file, opts, callback);
167+
storageApi.uploadFile(folder + "/" + filename, file, opts, callback);
170168

171169
//Setup output format
172170
var outFormat = "png"; // {String} Resulting image format.
@@ -199,14 +197,14 @@ conversionApi.GetConvertDocumentToImage(filename, outFormat, opts, callback);
199197

200198
## Documentation for API Endpoints
201199

202-
All URIs are relative to *https://api.aspose.cloud/v1.1*
200+
All URIs are relative to *https://api.aspose.cloud/v3.0*
203201

204202
[Tests](./test/) contain various examples of using the Aspose.HTML SDK.
205203

204+
<a name="html_api"></a>
205+
### HTML API
206206

207-
### HTML SDK
208-
209-
- For conversion to images allowed formats is jpeg, png, bmp, tiff. Input formats are html, epub, svg.
207+
- For conversion to images allowed formats is jpeg, png, bmp, tiff, gif. Input formats are html, epub, svg.
210208

211209
Class | Method | HTTP request | Description
212210
------------ | ------------- | ------------- | -------------
@@ -216,15 +214,15 @@ Class | Method | HTTP request | Description
216214
*Asposehtmlcloud.ConversionApi* | [**GetConvertDocumentToPdfByUrl**](docs/ConversionApi.md#GetConvertDocumentToPdfByUrl) | **GET** /html/convert/pdf | Convert the HTML page from the web by its URL to PDF.
217215
*Asposehtmlcloud.ConversionApi* | [**GetConvertDocumentToXps**](docs/ConversionApi.md#GetConvertDocumentToXps) | **GET** /html/{name}/convert/xps | Convert the HTML document from the storage by its name to XPS.
218216
*Asposehtmlcloud.ConversionApi* | [**GetConvertDocumentToXpsByUrl**](docs/ConversionApi.md#GetConvertDocumentToXpsByUrl) | **GET** /html/convert/xps | Convert the HTML page from the web by its URL to XPS.
219-
*Asposehtmlcloud.ConversionApi* | [**PutConvertDocumentInRequestToImage**](docs/ConversionApi.md#PutConvertDocumentInRequestToImage) | **PUT** /html/convert/image/{outFormat} | Converts the HTML document (in request content) to the specified image format and uploads resulting file to storage.
220-
*Asposehtmlcloud.ConversionApi* | [**PutConvertDocumentInRequestToPdf**](docs/ConversionApi.md#PutConvertDocumentInRequestToPdf) | **PUT** /html/convert/pdf | Converts the HTML document (in request content) to PDF and uploads resulting file to storage.
221-
*Asposehtmlcloud.ConversionApi* | [**PutConvertDocumentInRequestToXps**](docs/ConversionApi.md#PutConvertDocumentInRequestToXps) | **PUT** /html/convert/xps | Converts the HTML document (in request content) to XPS and uploads resulting file to storage.
217+
*Asposehtmlcloud.ConversionApi* | [**PostConvertDocumentInRequestToImage**](docs/ConversionApi.md#PostConvertDocumentInRequestToImage) | **POST** /html/convert/image/{outFormat} | Converts the HTML document (in request content) to the specified image format and uploads resulting file to storage.
218+
*Asposehtmlcloud.ConversionApi* | [**PostConvertDocumentInRequestToPdf**](docs/ConversionApi.md#PostConvertDocumentInRequestToPdf) | **POST** /html/convert/pdf | Converts the HTML document (in request content) to PDF and uploads resulting file to storage.
219+
*Asposehtmlcloud.ConversionApi* | [**PostConvertDocumentInRequestToXps**](docs/ConversionApi.md#PostConvertDocumentInRequestToXps) | **POST** /html/convert/xps | Converts the HTML document (in request content) to XPS and uploads resulting file to storage.
222220
*Asposehtmlcloud.ConversionApi* | [**PutConvertDocumentToImage**](docs/ConversionApi.md#PutConvertDocumentToImage) | **PUT** /html/{name}/convert/image/{outFormat} | Converts the HTML document (located on storage) to the specified image format and uploads resulting file to storage.
223221
*Asposehtmlcloud.ConversionApi* | [**PutConvertDocumentToPdf**](docs/ConversionApi.md#PutConvertDocumentToPdf) | **PUT** /html/{name}/convert/pdf | Converts the HTML document (located on storage) to PDF and uploads resulting file to storage.
224222
*Asposehtmlcloud.ConversionApi* | [**PutConvertDocumentToXps**](docs/ConversionApi.md#PutConvertDocumentToXps) | **PUT** /html/{name}/convert/xps | Converts the HTML document (located on storage) to XPS and uploads resulting file to storage.
225223
*Asposehtmlcloud.ConversionApi* | [**GetConvertDocumentToMHTMLByUrl**](docs/ConversionApi.md#GetConvertDocumentToMHTMLByUrl) | **GET** /html/convert/mhtml | Converts the HTML page from Web by its URL to MHTML returns resulting file in response content.
226224
*Asposehtmlcloud.ConversionApi* | [**GetConvertDocumentToMarkdown**](docs/ConversionApi.md#GetConvertDocumentToMarkdown) | **GET** /html/{name}/convert/md | Converts the HTML document (located on storage) to Markdown and returns resulting file in response content.
227-
*Asposehtmlcloud.ConversionApi* | [**PutConvertDocumentInRequestToMarkdown**](docs/ConversionApi.md#PutConvertDocumentInRequestToMarkdown) | **PUT** /html/convert/md | Converts the HTML document (in request content) to Markdown and uploads resulting file to storage by specified path.
225+
*Asposehtmlcloud.ConversionApi* | [**PostConvertDocumentInRequestToMarkdown**](docs/ConversionApi.md#PostConvertDocumentInRequestToMarkdown) | **POST** /html/convert/md | Converts the HTML document (in request content) to Markdown and uploads resulting file to storage by specified path.
228226
*Asposehtmlcloud.ConversionApi* | [**PutConvertDocumentToMarkdown**](docs/ConversionApi.md#PutConvertDocumentToMarkdown) | **PUT** /html/{name}/convert/md | Converts the HTML document (located on storage) to Markdown and uploads resulting file to storage by specified path.
229227
*Asposehtmlcloud.DocumentApi* | [**GetDocumentByUrl**](docs/DocumentApi.md#GetDocumentByUrl) | **GET** /html/download | Return all HTML page with linked resources packaged as a ZIP archive by the source page URL.
230228
*Asposehtmlcloud.DocumentApi* | [**GetDocumentFragmentByXPath**](docs/DocumentApi.md#GetDocumentFragmentByXPath) | **GET** /html/{name}/fragments/{outFormat} | Return list of HTML fragments matching the specified XPath query.
@@ -240,44 +238,40 @@ Class | Method | HTTP request | Description
240238
*Asposehtmlcloud.SummarizationApi* | [**GetDetectHtmlKeywords**](docs/SummarizationApi.md#GetDetectHtmlKeywords) | **GET** /html/{name}/summ/keywords | Get the HTML document keywords using the keyword detection service.
241239
*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
242240
*Asposehtmlcloud.TemplateMergeApi* | [**GetMergeHtmlTemplate**](docs/TemplateMergeApi.md#GetMergeHtmlTemplate) | **GET** /html/{templateName}/merge | Populate HTML document template with data located as a file in the storage.
243-
*Asposehtmlcloud.TemplateMergeApi* | [**PutMergeHtmlTemplate**](docs/TemplateMergeApi.md#PutMergeHtmlTemplate) | **PUT** /html/{templateName}/merge | Populate HTML document template with data from the request body. Result document will be saved to storage.
241+
*Asposehtmlcloud.TemplateMergeApi* | [**PostMergeHtmlTemplate**](docs/TemplateMergeApi.md#PostMergeHtmlTemplate) | **POST** /html/{templateName}/merge | Populate HTML document template with data from the request body. Result document will be saved to storage.
244242

245-
### STORAGE SDK
243+
<a name="storage_api"></a>
244+
### STORAGE API
246245

247246
Class | Method | HTTP request | Description
248247
------------ | ------------- | ------------- | -------------
249-
*Asposehtmlcloud.StorageApi* | [**deleteFile**](docs/FileApi.md#deleteFile) | **DELETE** /storage/file | Remove a specific file
250-
*Asposehtmlcloud.StorageApi* | [**getDownload**](docs/FileApi.md#getDownload) | **GET** /storage/file | Download a specific file
251-
*Asposehtmlcloud.StorageApi* | [**postMoveFile**](docs/FileApi.md#postMoveFile) | **POST** /storage/file | Move a specific file
252-
*Asposehtmlcloud.StorageApi* | [**putCreate**](docs/FileApi.md#putCreate) | **PUT** /storage/file | Upload a specific file
253-
*Asposehtmlcloud.StorageApi* | [**deleteFolder**](docs/FolderApi.md#deleteFolder) | **DELETE** /storage/folder | Remove a specific folder
254-
*Asposehtmlcloud.StorageApi* | [**getListFiles**](docs/FolderApi.md#getListFiles) | **GET** /storage/folder | Get the file listing of a specific folder
255-
*Asposehtmlcloud.StorageApi* | [**postMoveFolder**](docs/FolderApi.md#postMoveFolder) | **POST** /storage/folder | Move a specific folder
256-
*Asposehtmlcloud.StorageApi* | [**putCreateFolder**](docs/FolderApi.md#putCreateFolder) | **PUT** /storage/folder | Create the folder
257-
*Asposehtmlcloud.StorageApi* | [**getDiscUsage**](docs/StorageApi.md#getDiscUsage) | **GET** /storage/disc | Check the disk usage of the current account
258-
*Asposehtmlcloud.StorageApi* | [**getIsExist**](docs/StorageApi.md#getIsExist) | **GET** /storage/exist | Check if a specific file or folder exists
259-
*Asposehtmlcloud.StorageApi* | [**getIsStorageExist**](docs/StorageApi.md#getIsStorageExist) | **GET** /storage/{name}/exist | Check if storage exists
260-
*Asposehtmlcloud.StorageApi* | [**getListFileVersions**](docs/StorageApi.md#getListFileVersions) | **GET** /storage/version | Get the file&#39;s versions list
261-
248+
*Asposehtmlcloud.StorageApi* | [**copyFile**](docs/FileApi.md#copyFile) | **PUT** /html/storage/file/copy/{srcPath} | Copy file
249+
*Asposehtmlcloud.StorageApi* | [**deleteFile**](docs/FileApi.md#deleteFile) | **DELETE** /html/storage/file/{path} | Delete file
250+
*Asposehtmlcloud.StorageApi* | [**downloadFile**](docs/FileApi.md#downloadFile) | **GET** /html/storage/file/{path} | Download file
251+
*Asposehtmlcloud.StorageApi* | [**moveFile**](docs/FileApi.md#moveFile) | **PUT** /html/storage/file/move/{srcPath} | Move file
252+
*Asposehtmlcloud.StorageApi* | [**uploadFile**](docs/FileApi.md#uploadFile) | **PUT** /html/storage/file/{path} | Upload file
253+
*Asposehtmlcloud.StorageApi* | [**copyFolder**](docs/FolderApi.md#copyFolder) | **PUT** /html/storage/folder/copy/{srcPath} | Copy folder
254+
*Asposehtmlcloud.StorageApi* | [**createFolder**](docs/FolderApi.md#createFolder) | **PUT** /html/storage/folder/{path} | Create the folder
255+
*Asposehtmlcloud.StorageApi* | [**deleteFolder**](docs/FolderApi.md#deleteFolder) | **DELETE** /html/storage/folder/{path} | Delete folder
256+
*Asposehtmlcloud.StorageApi* | [**getFilesList**](docs/FolderApi.md#getFilesList) | **GET** /html/storage/folder/{path} | Get all files and folders within a folder
257+
*Asposehtmlcloud.StorageApi* | [**moveFolder**](docs/FolderApi.md#moveFolder) | **PUT** /html/storage/folder/move/{srcPath} | Move folder
258+
*Asposehtmlcloud.StorageApi* | [**getDiscUsage**](docs/StorageApi.md#getDiscUsage) | **GET** /html/storage/disc | Get disc usage
259+
*Asposehtmlcloud.StorageApi* | [**getFileVersions**](docs/StorageApi.md#getFileVersions) | **GET** /html/storage/version/{path} | Get file versions
260+
*Asposehtmlcloud.StorageApi* | [**objectExists**](docs/StorageApi.md#objectExists) | **GET** /html/storage/exist/{path} | Check if file or folder exists
261+
*Asposehtmlcloud.StorageApi* | [**storageExists**](docs/StorageApi.md#storageExists) | **GET** /html/storage/{storageName}/exist | Check if storage exists
262262

263263
## Documentation for Models
264264

265265
- [Asposehtmlcloud.DiscUsage](docs/DiscUsage.md)
266-
- [Asposehtmlcloud.FileDetail](docs/FileDetail.md)
267-
- [Asposehtmlcloud.FileDetailsResponse](docs/FileDetailsResponse.md)
268-
- [Asposehtmlcloud.FileExist](docs/FileExist.md)
269-
- [Asposehtmlcloud.MessageResponse](docs/MessageResponse.md)
270-
- [Asposehtmlcloud.DiscUsageResponse](docs/DiscUsageResponse.md)
271-
- [Asposehtmlcloud.FileExistResponse](docs/FileExistResponse.md)
266+
- [Asposehtmlcloud.Error](docs/Error.md)
267+
- [Asposehtmlcloud.ErrorDetails](docs/ErrorDetails.md)
272268
- [Asposehtmlcloud.FileVersion](docs/FileVersion.md)
273-
- [Asposehtmlcloud.FileVersionsResponse](docs/FileVersionsResponse.md)
274-
- [Asposehtmlcloud.MoveFileResponse](docs/MoveFileResponse.md)
275-
- [Asposehtmlcloud.MoveFolderResponse](docs/MoveFolderResponse.md)
276-
- [Asposehtmlcloud.RemoveFileResponse](docs/RemoveFileResponse.md)
277-
- [Asposehtmlcloud.RemoveFolderResponse](docs/RemoveFolderResponse.md)
278-
- [Asposehtmlcloud.StorageExistResponse](docs/StorageExistResponse.md)
279-
280-
269+
- [Asposehtmlcloud.FileVersions](docs/FileVersions.md)
270+
- [Asposehtmlcloud.FilesList](docs/FilesList.md)
271+
- [Asposehtmlcloud.FilesUploadResult](docs/FilesUploadResult.md)
272+
- [Asposehtmlcloud.ObjectExist](docs/ObjectExist.md)
273+
- [Asposehtmlcloud.StorageExist](docs/StorageExist.md)
274+
- [Asposehtmlcloud.StorageFile](docs/StorageFile.md)
281275

282276
## Run tests
283277
```shell

0 commit comments

Comments
 (0)