File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
src/test/java/com/groupdocs/cloud/conversion/api Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ Please follow the [installation](#installation) instruction and execute the foll
6060``` java
6161import com.groupdocs.cloud.conversion.client.* ;
6262import com.groupdocs.cloud.conversion.model.* ;
63+ import com.groupdocs.cloud.conversion.model.requests.* ;
6364import com.groupdocs.cloud.conversion.api.ConversionApi ;
6465
6566import 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" );
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments