@@ -4,25 +4,11 @@ This repository contains GroupDocs.Conversion Cloud SDK for Java source code. Th
44
55## Requirements
66
7- Building the API client library requires [ Maven ] ( https://maven.apache.org/ ) to be installed.
7+ * Java SE Development Kit 8
88
99## Installation
1010
11- To install the API client library to your local Maven repository, simply execute:
12-
13- ``` shell
14- mvn install
15- ```
16-
17- To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
18-
19- ``` shell
20- mvn deploy
21- ```
22-
23- Refer to the [ official documentation] ( https://maven.apache.org/plugins/maven-deploy-plugin/usage.html ) for more information.
24-
25- ### Maven users
11+ ### Maven
2612
2713Add following repository and dependency to your project's POM
2814
@@ -38,30 +24,41 @@ Add following repository and dependency to your project's POM
3824<dependency >
3925 <groupId >com.groupdocs</groupId >
4026 <artifactId >groupdocs-conversion-cloud</artifactId >
41- <version >21.4 </version >
27+ <version >21.9 </version >
4228 <scope >compile</scope >
4329</dependency >
4430```
4531
46- ### Others
47-
48- At first generate the JAR by executing:
32+ ### Gradle
4933
50- mvn package
34+ Add following repository and dependency to your build.gradle:
5135
52- Then manually install the following JARs:
36+ ``` javascript
37+ repositories {
38+ maven {
39+ url " https://repository.groupdocs.cloud/repo/"
40+ }
41+ }
5342
54- * target/groupdocs-conversion-cloud-21.4.jar
55- * target/lib/* .jar
43+ ...
44+ dependencies {
45+ ...
46+ implementation ' com.groupdocs:groupdocs-conversion-cloud:21.9'
47+ }
48+ ```
5649
5750## Getting Started
5851
59- Please follow the [ installation] ( #installation ) instruction and execute the following Java code:
52+ * Please follow the [ installation] ( #installation ) instruction
53+ * Get your AppSID and AppKey at [ Dashboard] ( https://dashboard.groupdocs.cloud ) and use them in your code
54+ * Build and execute
55+ * Explore more samples at [ GitHub] ( https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java-samples )
56+
57+ Example:
6058
6159``` java
6260import com.groupdocs.cloud.conversion.client.* ;
6361import com.groupdocs.cloud.conversion.model.* ;
64- import com.groupdocs.cloud.conversion.model.requests.* ;
6562import com.groupdocs.cloud.conversion.api.InfoApi ;
6663
6764import java.util.* ;
@@ -75,34 +72,48 @@ public class ApiExample {
7572
7673 Configuration configuration = new Configuration (appSid, appKey);
7774
78- InfoApi api = new InfoApi (configuration);
75+ InfoApi infoApi = new InfoApi (configuration);
7976
8077 try {
81- GetSupportedCibversionTypesRequest request = new GetSupportedConversionTypesRequest ();
82- List<SupportedFormat > response = api. getSupportedConversionTypes(request);
83-
84- for (SupportedFormat format : response) {
85- System . out. println(format. getSourceFormat());
78+ FormatsResult response = infoApi. getSupportedFileFormats();
79+ for (Format format : response. getFormats()) {
80+ System . out. println(format. getFileFormat());
8681 }
8782 } catch (ApiException e) {
88- System . err. println(" Exception when calling FileApi#copyFile " );
83+ System . err. println(" Failed to get supported file formats " );
8984 e. printStackTrace();
9085 }
9186 }
9287}
9388```
9489
90+ ## Manual build and installation from sources
91+
92+ Building the API client library requires [ Maven] ( https://maven.apache.org/ ) to be installed.
93+ Refer to the [ official documentation] ( https://maven.apache.org/plugins/maven-deploy-plugin/usage.html ) for more information.
94+
95+ At first generate the JAR by executing following command in "/src" working directory:
96+
97+ ``` shell
98+ mvn package -D maven.test.skip=true
99+ ```
100+
101+ Then manually install the following JARs:
102+
103+ * target/groupdocs-conversion-cloud-21.9.jar
104+ * target/lib/* .jar
105+
95106## Licensing
96107
97108All GroupDocs.Conversion Cloud SDKs are licensed under [ MIT License] ( LICENSE ) .
98109
99110## Resources
100111
101- + [ ** Website** ] ( https://www.groupdocs.cloud )
102- + [ ** Product Home** ] ( https://products.groupdocs.cloud/conversion )
103- + [ ** Documentation** ] ( https://docs.groupdocs.cloud/conversion )
104- + [ ** Free Support Forum** ] ( https://forum.groupdocs.cloud/c/conversion )
105- + [ ** Blog** ] ( https://blog.groupdocs.cloud/category/conversion )
112+ * [ ** Website** ] ( https://www.groupdocs.cloud )
113+ * [ ** Product Home** ] ( https://products.groupdocs.cloud/conversion )
114+ * [ ** Documentation** ] ( https://docs.groupdocs.cloud/conversion/ )
115+ * [ ** Free Support Forum** ] ( https://forum.groupdocs.cloud/c/conversion )
116+ * [ ** Blog** ] ( https://blog.groupdocs.cloud/category/conversion )
106117
107118## Contact Us
108119
0 commit comments