@@ -4,33 +4,19 @@ This repository contains GroupDocs.Annotation 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
2915``` xml
3016<repository >
3117 <id >groupdocs-artifact-repository</id >
3218 <name >GroupDocs Artifact Repository</name >
33- <url >http ://artifact .groupdocs.cloud/repo</url >
19+ <url >https ://repository .groupdocs.cloud/repo</url >
3420</repository >
3521```
3622
@@ -43,64 +29,91 @@ Add following repository and dependency to your project's POM
4329</dependency >
4430```
4531
46- ### Others
47-
48- At first generate the JAR by executing:
32+ ### Gradle
4933
50- ``` shell
51- mvn package
52- ```
34+ Add following repository and dependency to your build.gradle:
5335
54- Then manually install the following JARs:
36+ ``` javascript
37+ repositories {
38+ maven {
39+ url " https://repository.groupdocs.cloud/repo/"
40+ }
41+ }
5542
56- * target/groupdocs-annotation-cloud-21.6.jar
57- * target/lib/* .jar
43+ ...
44+ dependencies {
45+ ...
46+ implementation ' com.groupdocs:groupdocs-annotation-cloud:21.6'
47+ }
48+ ```
5849
5950## Getting Started
6051
61- 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-annotation-cloud/groupdocs-annotation-cloud-java-samples )
6256
63- ``` java
57+ Example:
6458
59+ ``` java
6560import com.groupdocs.cloud.annotation.client.* ;
6661import com.groupdocs.cloud.annotation.model.* ;
67- import com.groupdocs.cloud.annotation.api.AnnotateApi ;
62+ import com.groupdocs.cloud.annotation.api.InfoApi ;
6863
69- import java.io.File ;
7064import java.util.* ;
7165
72- public class AnnotateApiExample {
66+ public class ApiExample {
7367
7468 public static void main (String [] args ) {
7569 // TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
7670 String appSid = " XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" ;
7771 String appKey = " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ;
7872
79- AnnotateApi apiInstance = new AnnotateApi (appSid, appKey);
80- AnnotateOptions options = new AnnotateOptions (); // AnnotateOptions | Annotation options
73+ Configuration configuration = new Configuration (appSid, appKey);
74+
75+ InfoApi infoApi = new InfoApi (configuration);
76+
8177 try {
82- AnnotationApiLink result = apiInstance. annotate(options);
83- System . out. println(result);
78+ FormatsResult response = infoApi. getSupportedFileFormats();
79+ for (Format format : response. getFormats()) {
80+ System . out. println(format. getFileFormat());
81+ }
8482 } catch (ApiException e) {
85- System . err. println(" Exception when calling AnnotateApi#annotate " );
83+ System . err. println(" Failed to get supported file formats " );
8684 e. printStackTrace();
8785 }
8886 }
8987}
88+ ```
89+
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:
9096
97+ ``` shell
98+ mvn package -D maven.test.skip=true
9199```
92100
101+ Then manually install the following JARs:
102+
103+ * target/groupdocs-annotation-cloud-21.6.jar
104+ * target/lib/* .jar
105+
93106## Licensing
94107
95108All GroupDocs.Annotation Cloud SDKs are licensed under [ MIT License] ( LICENSE ) .
96109
97110## Resources
98111
99- + [ ** Website** ] ( https://www.groupdocs.cloud )
100- + [ ** Product Home** ] ( https://products.groupdocs.cloud/annotation/cloud )
101- + [ ** Documentation** ] ( https://docs.groupdocs.cloud/annotation/ )
102- + [ ** Free Support Forum** ] ( https://forum.groupdocs.cloud/c/annotation )
103- + [ ** Blog** ] ( https://blog.groupdocs.cloud/category/groupdocs- annotation-cloud-product-family )
112+ * [ ** Website** ] ( https://www.groupdocs.cloud )
113+ * [ ** Product Home** ] ( https://products.groupdocs.cloud/annotation )
114+ * [ ** Documentation** ] ( https://docs.groupdocs.cloud/annotation/ )
115+ * [ ** Free Support Forum** ] ( https://forum.groupdocs.cloud/c/annotation )
116+ * [ ** Blog** ] ( https://blog.groupdocs.cloud/category/annotation )
104117
105118## Contact Us
106119
0 commit comments