You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -13,87 +13,153 @@ Building the API client library requires [Maven](https://maven.apache.org/) to b
13
13
To use Aspose HTML for Cloud SDK you need to register an account with [Aspose Cloud](https://www.aspose.cloud/) and lookup/create App Key and SID at [Cloud Dashboard](https://dashboard.aspose.cloud/#/apps). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/pricing).
14
14
15
15
## Installation
16
-
To install the API client library to your local Maven repository, simply execute:
17
-
18
-
```shell
19
-
mvn install
20
-
```
21
-
22
-
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
23
-
24
-
```shell
25
-
mvn deploy
26
-
```
27
-
28
-
Refer to the [official documentation](https://maven.apache.org/plugins/maven-deploy-plugin/usage.html) for more information.
29
16
17
+
Get ready package or build from source.
30
18
### Maven users
31
19
Add this dependency to your project's POM:
32
20
33
21
```xml
34
-
<dependency>
35
-
<groupId>com.aspose</groupId>
36
-
<artifactId>aspose-html-cloud</artifactId>
37
-
<version>19.5.0</version>
38
-
<scope>compile</scope>
39
-
</dependency>
22
+
<repositories>
23
+
...
24
+
<repository>
25
+
<id>AsposeJavaAPI</id>
26
+
<name>Aspose Java API</name>
27
+
<url>https://repository.aspose.cloud/repo/</url>
28
+
</repository>
29
+
...
30
+
</repositories>
31
+
32
+
<dependencies>
33
+
...
34
+
<dependency>
35
+
<groupId>com.aspose</groupId>
36
+
<artifactId>aspose-html-cloud</artifactId>
37
+
<version>20.7.0</version>
38
+
<scope>compile</scope>
39
+
</dependency>
40
+
...
41
+
</dependencies>
40
42
```
41
43
42
-
### Others
43
-
44
-
At first generate the JAR by executing:
45
-
46
-
mvn package -DskipTests
47
-
48
-
Then manually install the following JARs:
49
-
50
-
* target/aspose-html-cloud-19.5.0.jar
51
-
* target/lib/*.jar
52
44
53
45
### Sample usage
54
46
```java
55
-
importcom.aspose.html.client.invoker.*;
56
-
importcom.aspose.html.client.invoker.auth.*;
57
-
importcom.aspose.html.client.api.ConversionApi;
47
+
packagecom.aspose.test_package;
58
48
59
49
importjava.io.File;
60
-
importjava.util.*;
50
+
importjava.io.FileOutputStream;
51
+
importjava.io.IOException;
52
+
importjava.io.InputStream;
53
+
importjava.io.OutputStream;
54
+
importcom.aspose.html.ApiClient;
55
+
importcom.aspose.html.Configuration;
56
+
importcom.aspose.html.api.ConversionApi;
57
+
importcom.aspose.html.api.StorageApi;
58
+
importcom.aspose.html.model.FilesUploadResult;
59
+
importokhttp3.MediaType;
60
+
importokhttp3.MultipartBody;
61
+
importokhttp3.RequestBody;
62
+
importokhttp3.ResponseBody;
63
+
importretrofit2.Call;
64
+
importretrofit2.Response;
65
+
66
+
publicclassApp {
67
+
68
+
// Helper method save the response body to the destination directory
**PostConvertDocumentInRequestToMarkdown** | **POST** /html/convert/md | Converts the HTML document (in request content) to Markdown and uploads resulting file to storage by specified path.
125
191
**PutConvertDocumentToMarkdown** | **PUT** /html/{name}/convert/md | Converts the HTML document (located on storage) to Markdown and uploads resulting file to storage by specified path.
126
192
193
+
127
194
## ImportApi
128
195
Method | HTTP request | Description
129
196
------------- | ------------- | -------------
130
197
**GetConvertMarkdownToHtml** | **GET** /html/{name}/import/md | Converts the Markdown document (located on storage) to HTML and returns resulting file in response content.
131
198
**PostConvertMarkdownInRequestToHtml** | **POST** /html/{name}/import/md | Converts the Markdown document (in request content) to HTML and uploads resulting file to storage by specified path.
132
199
**PutConvertMarkdownToHtml** | **PUT** /html/import/md | Converts the Markdown document (located on storage) to HTML and uploads resulting file to storage by specified path.
**GetDocumentImages** | **GET** html/{name}/images/all | Return all HTML document images packaged as a ZIP archive.
143
211
**GetDocumentImagesByUrl** | **GET** html/images/all | Return all HTML page images packaged as a ZIP archive by the source page URL.
144
212
213
+
145
214
## TemplateMergeApi
146
215
Method | HTTP request | Description
147
216
------------- | ------------- | -------------
148
217
**GetMergeHtmlTemplate** | **GET** /html/{templateName}/merge | Populate HTML document template with data located as a file in the storage.
149
218
**PostMergeHtmlTemplate** | **POST** /html/{templateName}/merge | Populate HTML document template with data from the request body. Result document will be saved to storage.
150
219
151
220
221
+
## SeoApi
222
+
Method | HTTP request | Description
223
+
------------- | ------------- | -------------
224
+
**GetSeoWarning** | **GET** /html/seo | Page analysis and return of SEO warnings.
225
+
**GetHtmlWarning** | **GET** /html/validator | Checks the markup validity of Web documents in HTML, XHTML, etc.
226
+
227
+
228
+
## StorageApi
229
+
Method | HTTP request | Description
230
+
------------- | ------------- | -------------
231
+
**downloadFile** | **GET** /html/storage/file/{path} | Download file from storage.
232
+
**uploadFile** | **PUT** /html/storage/file/{path} | Upload file to storage.
233
+
**moveFile** | **PUT** /html/storage/file/move/{srcPath} | Move file in storage.
234
+
**deleteFile** | **DELETE** /html/storage/file/{path} | Delete file in the storage.
235
+
**createFolder** | **PUT** /html/storage/folder/{path} | Create the folder in the storage.
236
+
**moveFolder** | **PUT** /html/storage/folder/move/{srcPath} | Move folder in the storage.
237
+
**deleteFolder** | **DELETE** /html/storage/folder/{path} | Delete folder in the storage.
238
+
**getFilesList** | **GET** /html/storage/folder/{path} | Get all files and folders within a folder.
239
+
**getDiscUsage** | **GET** /html/storage/disc | Get disc usage in the storage.
240
+
**objectExists** | **GET** /html/storage/exist/{path} | Check if file or folder exists.
241
+
**storageExists** | **GET** /html/storage/{storageName}/exist | Check if storage exists.
242
+
**getFileVersions** | **GET** /html/storage/version/{path} | Get file versions in the storage.
243
+
244
+
245
+
## Build from source
246
+
To install the API client library to your local Maven repository, simply execute from root of the git folder:
247
+
248
+
```shell
249
+
mvn install -DskipTests
250
+
```
251
+
252
+
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
253
+
254
+
```shell
255
+
mvn deploy
256
+
```
257
+
258
+
Refer to the [official documentation](https://maven.apache.org/plugins/maven-deploy-plugin/usage.html) for more information.
259
+
260
+
### Others
261
+
262
+
At first generate the JAR by executing:
263
+
264
+
mvn package -DskipTests
265
+
266
+
Then manually install the following JARs:
267
+
268
+
* target/aspose-html-cloud-20.7.0.jar
269
+
* target/lib/*.jar
270
+
152
271
## Recommendation
153
272
It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.
154
273
274
+
155
275
### Examples
156
276
[Tests](./src/test/java/com/aspose/html/client/api) contain various examples of using the Aspose.HTML SDK.
157
277
158
-
[Docs](./doc/) Full javadoc for Aspose.HTML Api SDK
278
+
[Docs](./doc/) Full javadoc for Aspose.HTML Api SDK in html format.
0 commit comments