|
1 | | -# groupdocs-viewer-cloud-java |
2 | | -Java library for communicating with the GroupDocs.Viewer Cloud API |
| 1 | +# GroupDocs.Viewer Cloud SDK for Java |
| 2 | +This repository contains GroupDocs.Viewer Cloud SDK for Java source code. This SDK allows you to work with GroupDocs.Viewer Cloud REST APIs in your Java applications. |
| 3 | + |
| 4 | +## Requirements |
| 5 | + |
| 6 | +Building the API client library requires [Maven](https://maven.apache.org/) to be installed. |
| 7 | + |
| 8 | +## Installation |
| 9 | + |
| 10 | +To install the API client library to your local Maven repository, simply execute: |
| 11 | + |
| 12 | +```shell |
| 13 | +mvn install |
| 14 | +``` |
| 15 | + |
| 16 | +To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: |
| 17 | + |
| 18 | +```shell |
| 19 | +mvn deploy |
| 20 | +``` |
| 21 | + |
| 22 | +Refer to the [official documentation](https://maven.apache.org/plugins/maven-deploy-plugin/usage.html) for more information. |
| 23 | + |
| 24 | +### Maven users |
| 25 | + |
| 26 | +Add this dependency to your project's POM: |
| 27 | + |
| 28 | +```xml |
| 29 | +<dependency> |
| 30 | + <groupId>com.groupdocs</groupId> |
| 31 | + <artifactId>groupdocs-viewer-cloud</artifactId> |
| 32 | + <version>18.5</version> |
| 33 | + <scope>compile</scope> |
| 34 | +</dependency> |
| 35 | +``` |
| 36 | + |
| 37 | +### Others |
| 38 | + |
| 39 | +At first generate the JAR by executing: |
| 40 | + |
| 41 | + mvn package |
| 42 | + |
| 43 | +Then manually install the following JARs: |
| 44 | + |
| 45 | +* target/groupdocs-viewer-cloud-18.5.jar |
| 46 | +* target/lib/*.jar |
| 47 | + |
| 48 | +## Getting Started |
| 49 | + |
| 50 | +Please follow the [installation](#installation) instruction and execute the following Java code: |
| 51 | + |
| 52 | +```java |
| 53 | + |
| 54 | +import com.groupdocs.cloud.viewer.client.*; |
| 55 | +import com.groupdocs.cloud.viewer.model.*; |
| 56 | +import com.groupdocs.cloud.viewer.api.ViewerApi; |
| 57 | + |
| 58 | +import java.io.File; |
| 59 | +import java.util.*; |
| 60 | + |
| 61 | +public class ViewerApiExample { |
| 62 | + |
| 63 | + public static void main(String[] args) { |
| 64 | + //TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). |
| 65 | + String appSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"; |
| 66 | + String appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; |
| 67 | + |
| 68 | + ViewerApi apiInstance = new ViewerApi(appSid, appKey); |
| 69 | + try { |
| 70 | + apiInstance.deleteFontsCache(); |
| 71 | + } catch (ApiException e) { |
| 72 | + System.err.println("Exception when calling ViewerApi#deleteFontsCache"); |
| 73 | + e.printStackTrace(); |
| 74 | + } |
| 75 | + } |
| 76 | +} |
| 77 | + |
| 78 | +``` |
| 79 | + |
| 80 | +## Licensing |
| 81 | +All GroupDocs.Viewer Cloud SDKs are licensed under [MIT License](LICENSE). |
| 82 | + |
| 83 | +## Resources |
| 84 | ++ [**Website**](https://www.groupdocs.cloud) |
| 85 | ++ [**Product Home**](https://products.groupdocs.cloud/viewer/cloud) |
| 86 | ++ [**Documentation**](https://docs.groupdocs.cloud/display/viewercloud/Home) |
| 87 | ++ [**Free Support Forum**](https://forum.groupdocs.cloud/c/viewer) |
| 88 | ++ [**Blog**](https://blog.groupdocs.cloud/category/groupdocs-viewer-cloud-product-family) |
| 89 | + |
| 90 | +## Contact Us |
| 91 | +Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/viewer). |
0 commit comments