Interface ApiInterface


  • public interface ApiInterface
    The ApiInterface is a type-safe Retrofit interface that presents all the endpoints that are made to communicate with the Rev AI async API.
    • Method Detail

      • getAccount

        @GET("account")
        retrofit2.Call<RevAiAccount> getAccount()
      • getJobDetails

        @GET("jobs/{id}")
        retrofit2.Call<RevAiJob> getJobDetails​(@Path("id")
                                               String jobID)
      • getTranscriptObject

        @Headers("Accept: application/vnd.rev.transcript.v1.0+json")
        @GET("jobs/{id}/transcript")
        retrofit2.Call<RevAiTranscript> getTranscriptObject​(@Path("id")
                                                            String jobID)
      • getTranscriptText

        @Headers("Accept: text/plain")
        @GET("jobs/{id}/transcript")
        retrofit2.Call<String> getTranscriptText​(@Path("id")
                                                 String jobID)
      • deleteJob

        @DELETE("jobs/{id}")
        retrofit2.Call<Void> deleteJob​(@Path("id")
                                       String jobID)
      • submitJobLocalFile

        @Multipart
        @POST("jobs")
        retrofit2.Call<RevAiJob> submitJobLocalFile​(@Part
                                                    okhttp3.MultipartBody.Part file,
                                                    @Part("options")
                                                    RevAiJobOptions options)
      • getCaptionText

        @GET("jobs/{id}/captions")
        retrofit2.Call<okhttp3.ResponseBody> getCaptionText​(@Path("id")
                                                            String jobID,
                                                            @QueryMap
                                                            Map<String,​String> query,
                                                            @HeaderMap
                                                            Map<String,​String> contentType)