Skip to content

Commit e948047

Browse files
committed
Updated sources
1 parent b3205fb commit e948047

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Please follow the [installation](#installation) instruction and execute the foll
6060
```java
6161
import com.groupdocs.cloud.conversion.client.*;
6262
import com.groupdocs.cloud.conversion.model.*;
63+
import com.groupdocs.cloud.conversion.model.requests.*;
6364
import com.groupdocs.cloud.conversion.api.ConversionApi;
6465

6566
import java.util.*;
@@ -76,9 +77,11 @@ public class ApiExample {
7677
ConversionApi conversionApi = new ConversionApi(configuration);
7778

7879
try {
79-
FormatsResult response = conversionApi.getSupportedFileFormats();
80-
for (Format format : response.getFormats()) {
81-
System.out.println(format.getFileFormat());
80+
GetSupportedCibversionTypesRequest request = new GetSupportedConversionTypesRequest();
81+
List<SupportedFormat> response = conversionApi.getSupportedConversionTypes(request);
82+
83+
for (SupportedFormat format : response) {
84+
System.out.println(format.getSourceFormat());
8285
}
8386
} catch (ApiException e) {
8487
System.err.println("Exception when calling FileApi#copyFile");

src/test/java/com/groupdocs/cloud/conversion/api/ConversionApiTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void convertDocumentTest() throws ApiException {
7272
* @throws ApiException if the Api call fails
7373
*/
7474
@Test
75-
public void getSupportedFileFormatsTest() throws ApiException {
75+
public void getSupportedConversionTypesTest() throws ApiException {
7676
List<SupportedFormat> response = conversionApi.getSupportedConversionTypes(new GetSupportedConversionTypesRequest());
7777

7878
assertTrue(response.size() > 0);

0 commit comments

Comments
 (0)