public interface ConversionApi
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<ConversionResult> |
convert(ConversionRequest request,
String from,
String to)
Creating a conversion task on the backend.
|
retrofit2.Call<ConversionResult> |
getConversionStatus(String id)
Get status of the conversion.
|
@Headers(value="Content-Type:application/json") @POST(value="v4.0/html/conversion/{from}-{to}") retrofit2.Call<ConversionResult> convert(@Body ConversionRequest request, @Path(value="from") String from, @Path(value="to") String to)
request
- ConversionRequest object. (required)from
- Input format. (required)to
- Output format. (required)@Headers(value="Content-Type:application/json") @GET(value="v4.0/html/conversion/{id}") retrofit2.Call<ConversionResult> getConversionStatus(@Path(value="id") String id)
id
- Conversion ID. (required)Copyright © 2022. All rights reserved.