|
| 1 | +# GroupDocs.Conversion Cloud SDK for Android |
| 2 | +This repository contains GroupDocs.Conversion Cloud SDK for Android source code. This SDK allows you to work with GroupDocs.Conversion Cloud REST APIs in your Android applications on Java language. |
| 3 | + |
| 4 | + |
| 5 | +## Installation |
| 6 | +Add Internet permission in the AndroidManifest.xml. Example: |
| 7 | +```xml |
| 8 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="<package name>"> |
| 9 | + <uses-permission android:name="android.permission.INTERNET" /> |
| 10 | + ... |
| 11 | +``` |
| 12 | + |
| 13 | +Add following repository and dependency to your android module's build.gradle |
| 14 | +after "apply plugin: 'com.android.application'" section: |
| 15 | +``` |
| 16 | +repositories { |
| 17 | + maven { |
| 18 | + url "https://repository.groupdocs.cloud/repo/" |
| 19 | + } |
| 20 | +} |
| 21 | +
|
| 22 | +... |
| 23 | +dependencies { |
| 24 | + ... |
| 25 | + implementation 'com.groupdocs:groupdocs-conversion-cloud:19.5' |
| 26 | +} |
| 27 | +``` |
| 28 | + |
| 29 | +## Getting Started |
| 30 | + |
| 31 | +Please follow the [installation](#installation) instruction and use the following Java code: |
| 32 | + |
| 33 | +```java |
| 34 | +import com.groupdocs.cloud.conversion.client.*; |
| 35 | +import com.groupdocs.cloud.conversion.model.*; |
| 36 | +import com.groupdocs.cloud.conversion.api.InfoApi; |
| 37 | + |
| 38 | + |
| 39 | +public class ApiExample { |
| 40 | + |
| 41 | + public static void getSupportedFormats() { |
| 42 | + |
| 43 | + //TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). |
| 44 | + String appSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"; |
| 45 | + String appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; |
| 46 | + |
| 47 | + Configuration configuration = new Configuration(appSid, appKey); |
| 48 | + |
| 49 | + InfoApi infoApi = new InfoApi(configuration); |
| 50 | + |
| 51 | + try { |
| 52 | + FormatsResult response = infoApi.getSupportedFileFormats(); |
| 53 | + for (Format format : response.getFormats()) { |
| 54 | + System.out.println(format.getFileFormat()); |
| 55 | + } |
| 56 | + |
| 57 | + } catch (ApiException e) { |
| 58 | + System.err.println("Failed to get supported file formats"); |
| 59 | + e.printStackTrace(); |
| 60 | + |
| 61 | + } |
| 62 | + |
| 63 | + } |
| 64 | +} |
| 65 | +``` |
| 66 | + |
| 67 | +## Licensing |
| 68 | +All GroupDocs.Conversion Cloud SDKs are licensed under [MIT License](LICENSE). |
| 69 | + |
| 70 | +## Resources |
| 71 | ++ [**Website**](https://www.groupdocs.cloud) |
| 72 | ++ [**Product Home**](https://products.groupdocs.cloud/conversion) |
| 73 | ++ [**Documentation**](https://docs.groupdocs.cloud/display/conversioncloud/Home) |
| 74 | ++ [**Free Support Forum**](https://forum.groupdocs.cloud/c/conversion) |
| 75 | ++ [**Blog**](https://blog.groupdocs.cloud/category/conversion) |
| 76 | + |
| 77 | +## Contact Us |
| 78 | +Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/conversion). |
0 commit comments