Package ai.rev.sentimentanalysis
Interface SentimentAnalysisInterface
-
public interface SentimentAnalysisInterfaceThe SentimentAnalysisInterface is a type-safe Retrofit interface that presents all the endpoints that are made to communicate with the Rev AI Sentiment Analysis API.
-
-
Field Summary
Fields Modifier and Type Field Description static StringREV_SENTIMENT_CONTENT_TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description retrofit2.Call<Void>deleteJob(String jobID)retrofit2.Call<SentimentAnalysisJob>getJobDetails(String jobID)retrofit2.Call<List<SentimentAnalysisJob>>getListOfJobs(Map<String,String> options)retrofit2.Call<SentimentAnalysisResult>getResultObject(String jobID, Map<String,Object> options)retrofit2.Call<SentimentAnalysisJob>submitJob(SentimentAnalysisJobOptions options)
-
-
-
Field Detail
-
REV_SENTIMENT_CONTENT_TYPE
static final String REV_SENTIMENT_CONTENT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getJobDetails
@GET("jobs/{id}") retrofit2.Call<SentimentAnalysisJob> getJobDetails(@Path("id") String jobID)
-
getListOfJobs
@GET("jobs") retrofit2.Call<List<SentimentAnalysisJob>> getListOfJobs(@QueryMap Map<String,String> options)
-
getResultObject
@Headers("Accept: application/vnd.rev.sentiment.v1.0+json") @GET("jobs/{id}/result") retrofit2.Call<SentimentAnalysisResult> getResultObject(@Path("id") String jobID, @QueryMap Map<String,Object> options)
-
submitJob
@POST("jobs") retrofit2.Call<SentimentAnalysisJob> submitJob(@Body SentimentAnalysisJobOptions options)
-
-