Skip to content

Commit 18bc196

Browse files
committed
Updated sources
1 parent 12e1b24 commit 18bc196

File tree

3 files changed

+51
-40
lines changed

3 files changed

+51
-40
lines changed

README.md

Lines changed: 49 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -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

2713
Add 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
6260
import com.groupdocs.cloud.conversion.client.*;
6361
import com.groupdocs.cloud.conversion.model.*;
64-
import com.groupdocs.cloud.conversion.model.requests.*;
6562
import com.groupdocs.cloud.conversion.api.InfoApi;
6663

6764
import 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

97108
All 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

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>groupdocs-conversion-cloud</artifactId>
66
<packaging>jar</packaging>
77
<name>groupdocs-conversion-cloud</name>
8-
<version>21.4</version>
8+
<version>21.9</version>
99
<url>https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java</url>
1010
<description>Java library for communicating with the GroupDocs.Conversion Cloud API</description>
1111
<scm>

src/main/java/com/groupdocs/cloud/conversion/client/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public ApiClient(Configuration configuration) {
9797
this.json = new JSON();
9898

9999
// Set default User-Agent.
100-
setUserAgent("java-sdk/21.4");
100+
setUserAgent("java-sdk/21.9");
101101

102102
// Set connection timeout
103103
setConnectTimeout(configuration.getTimeout());

0 commit comments

Comments
 (0)