public class ApiClient extends Object
Constructor and Description |
---|
ApiClient(String apiUrl,
String apiToken) |
Modifier and Type | Method and Description |
---|---|
com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> |
getTaskResults(String taskID) |
com.mashape.unirest.http.HttpResponse<String> |
getTaskResultsString(String taskID) |
com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> |
getTaskStatus(String taskID) |
com.mashape.unirest.http.HttpResponse<String> |
getTaskStatusString(String taskID) |
com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> |
post(String apiEndpoint,
Map<String,Object> requestBody) |
public com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> post(String apiEndpoint, Map<String,Object> requestBody)
public com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> getTaskStatus(String taskID)
public com.mashape.unirest.http.HttpResponse<String> getTaskStatusString(String taskID)
public com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> getTaskResults(String taskID)
Copyright © 2016–2019. All rights reserved.