Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Onfido API v3.6
* The Onfido API (v3.6)
*
* The version of the OpenAPI document: v3.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.onfido.api;
import com.onfido.ApiCallback;
import com.onfido.ApiClient;
import com.onfido.ApiException;
import com.onfido.ApiResponse;
import com.onfido.Configuration;
import com.onfido.Pair;
import com.onfido.ProgressRequestBody;
import com.onfido.ProgressResponseBody;
import com.onfido.FileTransfer;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import com.onfido.model.AddressesList;
import com.onfido.model.Applicant;
import com.onfido.model.ApplicantBuilder;
import com.onfido.model.ApplicantUpdater;
import com.onfido.model.ApplicantsList;
import com.onfido.model.Check;
import com.onfido.model.CheckBuilder;
import com.onfido.model.ChecksList;
import com.onfido.model.CompleteTaskBuilder;
import com.onfido.model.CountryCodes;
import com.onfido.model.Document;
import com.onfido.model.DocumentsList;
import com.onfido.model.Error;
import com.onfido.model.Error1;
import com.onfido.model.ExtractRequest;
import com.onfido.model.Extraction;
import java.io.File;
import com.onfido.model.IdPhoto;
import com.onfido.model.IdPhotosList;
import com.onfido.model.LivePhoto;
import com.onfido.model.LivePhotosList;
import com.onfido.model.LiveVideo;
import com.onfido.model.LiveVideosList;
import com.onfido.model.LocationBuilder;
import com.onfido.model.MotionCapture;
import com.onfido.model.MotionCapturesList;
import java.time.OffsetDateTime;
import com.onfido.model.RepeatAttemptsList;
import com.onfido.model.Report;
import com.onfido.model.ReportsList;
import com.onfido.model.ResultsFeedback;
import com.onfido.model.SdkToken;
import com.onfido.model.SdkTokenBuilder;
import com.onfido.model.Task;
import com.onfido.model.TaskItem;
import com.onfido.model.TimelineFileReference;
import java.net.URI;
import java.util.UUID;
import com.onfido.model.WatchlistMonitor;
import com.onfido.model.WatchlistMonitorBuilder;
import com.onfido.model.WatchlistMonitorMatchesList;
import com.onfido.model.WatchlistMonitorMatchesUpdater;
import com.onfido.model.WatchlistMonitorsList;
import com.onfido.model.Webhook;
import com.onfido.model.WebhookBuilder;
import com.onfido.model.WebhookResend;
import com.onfido.model.WebhookUpdater;
import com.onfido.model.WebhooksList;
import com.onfido.model.WorkflowRun;
import com.onfido.model.WorkflowRunBuilder;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class DefaultApi {
private ApiClient localVarApiClient;
private int localHostIndex;
private String localCustomBaseUrl;
public DefaultApi() {
this(Configuration.getDefaultApiClient());
}
public DefaultApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public int getHostIndex() {
return localHostIndex;
}
public void setHostIndex(int hostIndex) {
this.localHostIndex = hostIndex;
}
public String getCustomBaseUrl() {
return localCustomBaseUrl;
}
public void setCustomBaseUrl(String customBaseUrl) {
this.localCustomBaseUrl = customBaseUrl;
}
/**
* Build call for cancelReport
* @param reportId (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
0
Unexpected error
-
*/
public okhttp3.Call cancelReportCall(UUID reportId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/reports/{report_id}/cancel"
.replace("{" + "report_id" + "}", localVarApiClient.escapeString(reportId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call cancelReportValidateBeforeCall(UUID reportId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'reportId' is set
if (reportId == null) {
throw new ApiException("Missing the required parameter 'reportId' when calling cancelReport(Async)");
}
return cancelReportCall(reportId, _callback);
}
/**
* Cancel report
* Cancels single paused reports.
* @param reportId (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
0
Unexpected error
-
*/
public void cancelReport(UUID reportId) throws ApiException {
cancelReportWithHttpInfo(reportId);
}
/**
* Cancel report
* Cancels single paused reports.
* @param reportId (required)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
0
Unexpected error
-
*/
public ApiResponse cancelReportWithHttpInfo(UUID reportId) throws ApiException {
okhttp3.Call localVarCall = cancelReportValidateBeforeCall(reportId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* Cancel report (asynchronously)
* Cancels single paused reports.
* @param reportId (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
0
Unexpected error
-
*/
public okhttp3.Call cancelReportAsync(UUID reportId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = cancelReportValidateBeforeCall(reportId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for completeTask
* @param workflowRunId The unique identifier of the Workflow Run to which the Task belongs. (required)
* @param taskId The identifier of the Task you want to complete. (required)
* @param completeTaskBuilder (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
An empty response body.
-
0
Unexpected error
-
*/
public okhttp3.Call completeTaskCall(UUID workflowRunId, String taskId, CompleteTaskBuilder completeTaskBuilder, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = completeTaskBuilder;
// create path and map variables
String localVarPath = "/workflow_runs/{workflow_run_id}/tasks/{task_id}/complete"
.replace("{" + "workflow_run_id" + "}", localVarApiClient.escapeString(workflowRunId.toString()))
.replace("{" + "task_id" + "}", localVarApiClient.escapeString(taskId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call completeTaskValidateBeforeCall(UUID workflowRunId, String taskId, CompleteTaskBuilder completeTaskBuilder, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'workflowRunId' is set
if (workflowRunId == null) {
throw new ApiException("Missing the required parameter 'workflowRunId' when calling completeTask(Async)");
}
// verify the required parameter 'taskId' is set
if (taskId == null) {
throw new ApiException("Missing the required parameter 'taskId' when calling completeTask(Async)");
}
// verify the required parameter 'completeTaskBuilder' is set
if (completeTaskBuilder == null) {
throw new ApiException("Missing the required parameter 'completeTaskBuilder' when calling completeTask(Async)");
}
return completeTaskCall(workflowRunId, taskId, completeTaskBuilder, _callback);
}
/**
* Complete Task
* Completes a Send / Receive Data Task.
* @param workflowRunId The unique identifier of the Workflow Run to which the Task belongs. (required)
* @param taskId The identifier of the Task you want to complete. (required)
* @param completeTaskBuilder (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
An empty response body.
-
0
Unexpected error
-
*/
public void completeTask(UUID workflowRunId, String taskId, CompleteTaskBuilder completeTaskBuilder) throws ApiException {
completeTaskWithHttpInfo(workflowRunId, taskId, completeTaskBuilder);
}
/**
* Complete Task
* Completes a Send / Receive Data Task.
* @param workflowRunId The unique identifier of the Workflow Run to which the Task belongs. (required)
* @param taskId The identifier of the Task you want to complete. (required)
* @param completeTaskBuilder (required)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
An empty response body.
-
0
Unexpected error
-
*/
public ApiResponse completeTaskWithHttpInfo(UUID workflowRunId, String taskId, CompleteTaskBuilder completeTaskBuilder) throws ApiException {
okhttp3.Call localVarCall = completeTaskValidateBeforeCall(workflowRunId, taskId, completeTaskBuilder, null);
return localVarApiClient.execute(localVarCall);
}
/**
* Complete Task (asynchronously)
* Completes a Send / Receive Data Task.
* @param workflowRunId The unique identifier of the Workflow Run to which the Task belongs. (required)
* @param taskId The identifier of the Task you want to complete. (required)
* @param completeTaskBuilder (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
An empty response body.
-
0
Unexpected error
-
*/
public okhttp3.Call completeTaskAsync(UUID workflowRunId, String taskId, CompleteTaskBuilder completeTaskBuilder, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = completeTaskValidateBeforeCall(workflowRunId, taskId, completeTaskBuilder, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for createApplicant
* @param applicantBuilder (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
0
Unexpected error
-
*/
public okhttp3.Call createApplicantCall(ApplicantBuilder applicantBuilder, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = applicantBuilder;
// create path and map variables
String localVarPath = "/applicants";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createApplicantValidateBeforeCall(ApplicantBuilder applicantBuilder, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'applicantBuilder' is set
if (applicantBuilder == null) {
throw new ApiException("Missing the required parameter 'applicantBuilder' when calling createApplicant(Async)");
}
return createApplicantCall(applicantBuilder, _callback);
}
/**
* Create Applicant
* Creates a single applicant. Returns an applicant object.
* @param applicantBuilder (required)
* @return Applicant
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
0
Unexpected error
-
*/
public Applicant createApplicant(ApplicantBuilder applicantBuilder) throws ApiException {
ApiResponse localVarResp = createApplicantWithHttpInfo(applicantBuilder);
return localVarResp.getData();
}
/**
* Create Applicant
* Creates a single applicant. Returns an applicant object.
* @param applicantBuilder (required)
* @return ApiResponse<Applicant>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
0
Unexpected error
-
*/
public ApiResponse createApplicantWithHttpInfo(ApplicantBuilder applicantBuilder) throws ApiException {
okhttp3.Call localVarCall = createApplicantValidateBeforeCall(applicantBuilder, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Create Applicant (asynchronously)
* Creates a single applicant. Returns an applicant object.
* @param applicantBuilder (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
0
Unexpected error
-
*/
public okhttp3.Call createApplicantAsync(ApplicantBuilder applicantBuilder, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createApplicantValidateBeforeCall(applicantBuilder, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for createCheck
* @param checkBuilder (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
0
Unexpected error
-
*/
public okhttp3.Call createCheckCall(CheckBuilder checkBuilder, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = checkBuilder;
// create path and map variables
String localVarPath = "/checks";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createCheckValidateBeforeCall(CheckBuilder checkBuilder, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'checkBuilder' is set
if (checkBuilder == null) {
throw new ApiException("Missing the required parameter 'checkBuilder' when calling createCheck(Async)");
}
return createCheckCall(checkBuilder, _callback);
}
/**
* Create a check
* Initiates a check for an applicant, which can contain one or more reports. Returns a check object.
* @param checkBuilder (required)
* @return Check
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
0
Unexpected error
-
*/
public Check createCheck(CheckBuilder checkBuilder) throws ApiException {
ApiResponse localVarResp = createCheckWithHttpInfo(checkBuilder);
return localVarResp.getData();
}
/**
* Create a check
* Initiates a check for an applicant, which can contain one or more reports. Returns a check object.
* @param checkBuilder (required)
* @return ApiResponse<Check>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
0
Unexpected error
-
*/
public ApiResponse createCheckWithHttpInfo(CheckBuilder checkBuilder) throws ApiException {
okhttp3.Call localVarCall = createCheckValidateBeforeCall(checkBuilder, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Create a check (asynchronously)
* Initiates a check for an applicant, which can contain one or more reports. Returns a check object.
* @param checkBuilder (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
0
Unexpected error
-
*/
public okhttp3.Call createCheckAsync(CheckBuilder checkBuilder, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createCheckValidateBeforeCall(checkBuilder, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for createTimelineFile
* @param workflowRunId The unique identifier of the Workflow Run. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
202
A Timeline File reference.
-
0
Unexpected error
-
*/
public okhttp3.Call createTimelineFileCall(UUID workflowRunId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/workflow_runs/{workflow_run_id}/timeline_file"
.replace("{" + "workflow_run_id" + "}", localVarApiClient.escapeString(workflowRunId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createTimelineFileValidateBeforeCall(UUID workflowRunId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'workflowRunId' is set
if (workflowRunId == null) {
throw new ApiException("Missing the required parameter 'workflowRunId' when calling createTimelineFile(Async)");
}
return createTimelineFileCall(workflowRunId, _callback);
}
/**
* Create Timeline File for Workflow Run
* Triggers the generation of the Timeline File for the designated Workflow Run.
* @param workflowRunId The unique identifier of the Workflow Run. (required)
* @return TimelineFileReference
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
202
A Timeline File reference.
-
0
Unexpected error
-
*/
public TimelineFileReference createTimelineFile(UUID workflowRunId) throws ApiException {
ApiResponse localVarResp = createTimelineFileWithHttpInfo(workflowRunId);
return localVarResp.getData();
}
/**
* Create Timeline File for Workflow Run
* Triggers the generation of the Timeline File for the designated Workflow Run.
* @param workflowRunId The unique identifier of the Workflow Run. (required)
* @return ApiResponse<TimelineFileReference>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
202
A Timeline File reference.
-
0
Unexpected error
-
*/
public ApiResponse createTimelineFileWithHttpInfo(UUID workflowRunId) throws ApiException {
okhttp3.Call localVarCall = createTimelineFileValidateBeforeCall(workflowRunId, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Create Timeline File for Workflow Run (asynchronously)
* Triggers the generation of the Timeline File for the designated Workflow Run.
* @param workflowRunId The unique identifier of the Workflow Run. (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
202
A Timeline File reference.
-
0
Unexpected error
-
*/
public okhttp3.Call createTimelineFileAsync(UUID workflowRunId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createTimelineFileValidateBeforeCall(workflowRunId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for createWatchlistMonitor
* @param watchlistMonitorBuilder (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
0
Unexpected error
-
*/
public okhttp3.Call createWatchlistMonitorCall(WatchlistMonitorBuilder watchlistMonitorBuilder, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = watchlistMonitorBuilder;
// create path and map variables
String localVarPath = "/watchlist_monitors";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createWatchlistMonitorValidateBeforeCall(WatchlistMonitorBuilder watchlistMonitorBuilder, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'watchlistMonitorBuilder' is set
if (watchlistMonitorBuilder == null) {
throw new ApiException("Missing the required parameter 'watchlistMonitorBuilder' when calling createWatchlistMonitor(Async)");
}
return createWatchlistMonitorCall(watchlistMonitorBuilder, _callback);
}
/**
* Create monitor
* Creates a new monitor for the applicant
* @param watchlistMonitorBuilder (required)
* @return WatchlistMonitor
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
0
Unexpected error
-
*/
public WatchlistMonitor createWatchlistMonitor(WatchlistMonitorBuilder watchlistMonitorBuilder) throws ApiException {
ApiResponse localVarResp = createWatchlistMonitorWithHttpInfo(watchlistMonitorBuilder);
return localVarResp.getData();
}
/**
* Create monitor
* Creates a new monitor for the applicant
* @param watchlistMonitorBuilder (required)
* @return ApiResponse<WatchlistMonitor>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
0
Unexpected error
-
*/
public ApiResponse createWatchlistMonitorWithHttpInfo(WatchlistMonitorBuilder watchlistMonitorBuilder) throws ApiException {
okhttp3.Call localVarCall = createWatchlistMonitorValidateBeforeCall(watchlistMonitorBuilder, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Create monitor (asynchronously)
* Creates a new monitor for the applicant
* @param watchlistMonitorBuilder (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
0
Unexpected error
-
*/
public okhttp3.Call createWatchlistMonitorAsync(WatchlistMonitorBuilder watchlistMonitorBuilder, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createWatchlistMonitorValidateBeforeCall(watchlistMonitorBuilder, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for createWebhook
* @param webhookBuilder (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
0
Unexpected error
-
*/
public okhttp3.Call createWebhookCall(WebhookBuilder webhookBuilder, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = webhookBuilder;
// create path and map variables
String localVarPath = "/webhooks";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createWebhookValidateBeforeCall(WebhookBuilder webhookBuilder, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'webhookBuilder' is set
if (webhookBuilder == null) {
throw new ApiException("Missing the required parameter 'webhookBuilder' when calling createWebhook(Async)");
}
return createWebhookCall(webhookBuilder, _callback);
}
/**
* Register webhook
* Registers a webhook. Returns a webhook object.
* @param webhookBuilder (required)
* @return Webhook
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
0
Unexpected error
-
*/
public Webhook createWebhook(WebhookBuilder webhookBuilder) throws ApiException {
ApiResponse localVarResp = createWebhookWithHttpInfo(webhookBuilder);
return localVarResp.getData();
}
/**
* Register webhook
* Registers a webhook. Returns a webhook object.
* @param webhookBuilder (required)
* @return ApiResponse<Webhook>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
0
Unexpected error
-
*/
public ApiResponse createWebhookWithHttpInfo(WebhookBuilder webhookBuilder) throws ApiException {
okhttp3.Call localVarCall = createWebhookValidateBeforeCall(webhookBuilder, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Register webhook (asynchronously)
* Registers a webhook. Returns a webhook object.
* @param webhookBuilder (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
0
Unexpected error
-
*/
public okhttp3.Call createWebhookAsync(WebhookBuilder webhookBuilder, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createWebhookValidateBeforeCall(webhookBuilder, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for createWorkflowRun
* @param workflowRunBuilder (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
201
A Workflow Run object.
-
0
Unexpected error
-
*/
public okhttp3.Call createWorkflowRunCall(WorkflowRunBuilder workflowRunBuilder, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = workflowRunBuilder;
// create path and map variables
String localVarPath = "/workflow_runs";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createWorkflowRunValidateBeforeCall(WorkflowRunBuilder workflowRunBuilder, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'workflowRunBuilder' is set
if (workflowRunBuilder == null) {
throw new ApiException("Missing the required parameter 'workflowRunBuilder' when calling createWorkflowRun(Async)");
}
return createWorkflowRunCall(workflowRunBuilder, _callback);
}
/**
* Create a Workflow Run
* Creates and starts a Workflow Run. Returns a Workflow Run object.
* @param workflowRunBuilder (required)
* @return WorkflowRun
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
201
A Workflow Run object.
-
0
Unexpected error
-
*/
public WorkflowRun createWorkflowRun(WorkflowRunBuilder workflowRunBuilder) throws ApiException {
ApiResponse localVarResp = createWorkflowRunWithHttpInfo(workflowRunBuilder);
return localVarResp.getData();
}
/**
* Create a Workflow Run
* Creates and starts a Workflow Run. Returns a Workflow Run object.
* @param workflowRunBuilder (required)
* @return ApiResponse<WorkflowRun>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
201
A Workflow Run object.
-
0
Unexpected error
-
*/
public ApiResponse createWorkflowRunWithHttpInfo(WorkflowRunBuilder workflowRunBuilder) throws ApiException {
okhttp3.Call localVarCall = createWorkflowRunValidateBeforeCall(workflowRunBuilder, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Create a Workflow Run (asynchronously)
* Creates and starts a Workflow Run. Returns a Workflow Run object.
* @param workflowRunBuilder (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
201
A Workflow Run object.
-
0
Unexpected error
-
*/
public okhttp3.Call createWorkflowRunAsync(WorkflowRunBuilder workflowRunBuilder, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createWorkflowRunValidateBeforeCall(workflowRunBuilder, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for deleteApplicant
* @param applicantId (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
0
Unexpected error
-
*/
public okhttp3.Call deleteApplicantCall(UUID applicantId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/applicants/{applicant_id}"
.replace("{" + "applicant_id" + "}", localVarApiClient.escapeString(applicantId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteApplicantValidateBeforeCall(UUID applicantId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'applicantId' is set
if (applicantId == null) {
throw new ApiException("Missing the required parameter 'applicantId' when calling deleteApplicant(Async)");
}
return deleteApplicantCall(applicantId, _callback);
}
/**
* Delete Applicant
* Deletes a single applicant.
* @param applicantId (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
0
Unexpected error
-
*/
public void deleteApplicant(UUID applicantId) throws ApiException {
deleteApplicantWithHttpInfo(applicantId);
}
/**
* Delete Applicant
* Deletes a single applicant.
* @param applicantId (required)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
0
Unexpected error
-
*/
public ApiResponse deleteApplicantWithHttpInfo(UUID applicantId) throws ApiException {
okhttp3.Call localVarCall = deleteApplicantValidateBeforeCall(applicantId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* Delete Applicant (asynchronously)
* Deletes a single applicant.
* @param applicantId (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
0
Unexpected error
-
*/
public okhttp3.Call deleteApplicantAsync(UUID applicantId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteApplicantValidateBeforeCall(applicantId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for deleteWatchlistMonitor
* @param monitorId (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
0
Unexpected error
-
*/
public okhttp3.Call deleteWatchlistMonitorCall(UUID monitorId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/watchlist_monitors/{monitor_id}"
.replace("{" + "monitor_id" + "}", localVarApiClient.escapeString(monitorId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteWatchlistMonitorValidateBeforeCall(UUID monitorId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'monitorId' is set
if (monitorId == null) {
throw new ApiException("Missing the required parameter 'monitorId' when calling deleteWatchlistMonitor(Async)");
}
return deleteWatchlistMonitorCall(monitorId, _callback);
}
/**
* Delete monitor
* Deactivates the given monitor
* @param monitorId (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
0
Unexpected error
-
*/
public void deleteWatchlistMonitor(UUID monitorId) throws ApiException {
deleteWatchlistMonitorWithHttpInfo(monitorId);
}
/**
* Delete monitor
* Deactivates the given monitor
* @param monitorId (required)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
0
Unexpected error
-
*/
public ApiResponse deleteWatchlistMonitorWithHttpInfo(UUID monitorId) throws ApiException {
okhttp3.Call localVarCall = deleteWatchlistMonitorValidateBeforeCall(monitorId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* Delete monitor (asynchronously)
* Deactivates the given monitor
* @param monitorId (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
0
Unexpected error
-
*/
public okhttp3.Call deleteWatchlistMonitorAsync(UUID monitorId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteWatchlistMonitorValidateBeforeCall(monitorId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for deleteWebhook
* @param webhookId (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
Webhook deleted
-
0
Unexpected error
-
*/
public okhttp3.Call deleteWebhookCall(UUID webhookId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/webhooks/{webhook_id}"
.replace("{" + "webhook_id" + "}", localVarApiClient.escapeString(webhookId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteWebhookValidateBeforeCall(UUID webhookId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'webhookId' is set
if (webhookId == null) {
throw new ApiException("Missing the required parameter 'webhookId' when calling deleteWebhook(Async)");
}
return deleteWebhookCall(webhookId, _callback);
}
/**
* Delete a webhook
* Deletes a webhook.
* @param webhookId (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
Webhook deleted
-
0
Unexpected error
-
*/
public void deleteWebhook(UUID webhookId) throws ApiException {
deleteWebhookWithHttpInfo(webhookId);
}
/**
* Delete a webhook
* Deletes a webhook.
* @param webhookId (required)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
Webhook deleted
-
0
Unexpected error
-
*/
public ApiResponse deleteWebhookWithHttpInfo(UUID webhookId) throws ApiException {
okhttp3.Call localVarCall = deleteWebhookValidateBeforeCall(webhookId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* Delete a webhook (asynchronously)
* Deletes a webhook.
* @param webhookId (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
Webhook deleted
-
0
Unexpected error
-
*/
public okhttp3.Call deleteWebhookAsync(UUID webhookId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteWebhookValidateBeforeCall(webhookId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for downloadCheck
* @param checkId (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The check PDF binary data
-
0
Unexpected error
-
*/
public okhttp3.Call downloadCheckCall(UUID checkId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/checks/{check_id}/download"
.replace("{" + "check_id" + "}", localVarApiClient.escapeString(checkId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/pdf",
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call downloadCheckValidateBeforeCall(UUID checkId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'checkId' is set
if (checkId == null) {
throw new ApiException("Missing the required parameter 'checkId' when calling downloadCheck(Async)");
}
return downloadCheckCall(checkId, _callback);
}
/**
* Download check
* Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
* @param checkId (required)
* @return FileTransfer
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The check PDF binary data
-
0
Unexpected error
-
*/
public FileTransfer downloadCheck(UUID checkId) throws ApiException {
ApiResponse localVarResp = downloadCheckWithHttpInfo(checkId);
return localVarResp.getData();
}
/**
* Download check
* Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
* @param checkId (required)
* @return ApiResponse<FileTransfer>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The check PDF binary data
-
0
Unexpected error
-
*/
public ApiResponse downloadCheckWithHttpInfo(UUID checkId) throws ApiException {
okhttp3.Call localVarCall = downloadCheckValidateBeforeCall(checkId, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Download check (asynchronously)
* Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
* @param checkId (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The check PDF binary data
-
0
Unexpected error
-
*/
public okhttp3.Call downloadCheckAsync(UUID checkId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = downloadCheckValidateBeforeCall(checkId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for downloadDocument
* @param documentId (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The document binary data
-
0
Unexpected error
-
*/
public okhttp3.Call downloadDocumentCall(UUID documentId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/documents/{document_id}/download"
.replace("{" + "document_id" + "}", localVarApiClient.escapeString(documentId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*",
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call downloadDocumentValidateBeforeCall(UUID documentId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'documentId' is set
if (documentId == null) {
throw new ApiException("Missing the required parameter 'documentId' when calling downloadDocument(Async)");
}
return downloadDocumentCall(documentId, _callback);
}
/**
* Download document
* Downloads specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
* @param documentId (required)
* @return FileTransfer
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The document binary data
-
0
Unexpected error
-
*/
public FileTransfer downloadDocument(UUID documentId) throws ApiException {
ApiResponse localVarResp = downloadDocumentWithHttpInfo(documentId);
return localVarResp.getData();
}
/**
* Download document
* Downloads specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
* @param documentId (required)
* @return ApiResponse<FileTransfer>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The document binary data
-
0
Unexpected error
-
*/
public ApiResponse downloadDocumentWithHttpInfo(UUID documentId) throws ApiException {
okhttp3.Call localVarCall = downloadDocumentValidateBeforeCall(documentId, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Download document (asynchronously)
* Downloads specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
* @param documentId (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The document binary data
-
0
Unexpected error
-
*/
public okhttp3.Call downloadDocumentAsync(UUID documentId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = downloadDocumentValidateBeforeCall(documentId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for downloadDocumentVideo
* @param documentId (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The document's video binary data
-
0
Unexpected error
-
*/
public okhttp3.Call downloadDocumentVideoCall(String documentId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/documents/{document_id}/video/download"
.replace("{" + "document_id" + "}", localVarApiClient.escapeString(documentId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*",
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call downloadDocumentVideoValidateBeforeCall(String documentId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'documentId' is set
if (documentId == null) {
throw new ApiException("Missing the required parameter 'documentId' when calling downloadDocumentVideo(Async)");
}
return downloadDocumentVideoCall(documentId, _callback);
}
/**
* Download document video
* Downloads a document video. If successful, the response will be the binary data representing the video.
* @param documentId (required)
* @return FileTransfer
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The document's video binary data
-
0
Unexpected error
-
*/
public FileTransfer downloadDocumentVideo(String documentId) throws ApiException {
ApiResponse localVarResp = downloadDocumentVideoWithHttpInfo(documentId);
return localVarResp.getData();
}
/**
* Download document video
* Downloads a document video. If successful, the response will be the binary data representing the video.
* @param documentId (required)
* @return ApiResponse<FileTransfer>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The document's video binary data
-
0
Unexpected error
-
*/
public ApiResponse downloadDocumentVideoWithHttpInfo(String documentId) throws ApiException {
okhttp3.Call localVarCall = downloadDocumentVideoValidateBeforeCall(documentId, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Download document video (asynchronously)
* Downloads a document video. If successful, the response will be the binary data representing the video.
* @param documentId (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The document's video binary data
-
0
Unexpected error
-
*/
public okhttp3.Call downloadDocumentVideoAsync(String documentId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = downloadDocumentVideoValidateBeforeCall(documentId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for downloadIdPhoto
* @param idPhotoId The ID photo's unique identifier. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The ID photo's binary data.
-
0
Unexpected error
-
*/
public okhttp3.Call downloadIdPhotoCall(UUID idPhotoId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/id_photos/{id_photo_id}/download"
.replace("{" + "id_photo_id" + "}", localVarApiClient.escapeString(idPhotoId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*",
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call downloadIdPhotoValidateBeforeCall(UUID idPhotoId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'idPhotoId' is set
if (idPhotoId == null) {
throw new ApiException("Missing the required parameter 'idPhotoId' when calling downloadIdPhoto(Async)");
}
return downloadIdPhotoCall(idPhotoId, _callback);
}
/**
* Download ID photo
* ID photos are downloaded using this endpoint.
* @param idPhotoId The ID photo's unique identifier. (required)
* @return FileTransfer
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The ID photo's binary data.
-
0
Unexpected error
-
*/
public FileTransfer downloadIdPhoto(UUID idPhotoId) throws ApiException {
ApiResponse localVarResp = downloadIdPhotoWithHttpInfo(idPhotoId);
return localVarResp.getData();
}
/**
* Download ID photo
* ID photos are downloaded using this endpoint.
* @param idPhotoId The ID photo's unique identifier. (required)
* @return ApiResponse<FileTransfer>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The ID photo's binary data.
-
0
Unexpected error
-
*/
public ApiResponse downloadIdPhotoWithHttpInfo(UUID idPhotoId) throws ApiException {
okhttp3.Call localVarCall = downloadIdPhotoValidateBeforeCall(idPhotoId, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Download ID photo (asynchronously)
* ID photos are downloaded using this endpoint.
* @param idPhotoId The ID photo's unique identifier. (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The ID photo's binary data.
-
0
Unexpected error
-
*/
public okhttp3.Call downloadIdPhotoAsync(UUID idPhotoId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = downloadIdPhotoValidateBeforeCall(idPhotoId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for downloadLivePhoto
* @param livePhotoId The live photo's unique identifier. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The live photo's binary data.
-
0
Unexpected error
-
*/
public okhttp3.Call downloadLivePhotoCall(UUID livePhotoId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/live_photos/{live_photo_id}/download"
.replace("{" + "live_photo_id" + "}", localVarApiClient.escapeString(livePhotoId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*",
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call downloadLivePhotoValidateBeforeCall(UUID livePhotoId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'livePhotoId' is set
if (livePhotoId == null) {
throw new ApiException("Missing the required parameter 'livePhotoId' when calling downloadLivePhoto(Async)");
}
return downloadLivePhotoCall(livePhotoId, _callback);
}
/**
* Download live photo
* Live photos are downloaded using this endpoint.
* @param livePhotoId The live photo's unique identifier. (required)
* @return FileTransfer
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The live photo's binary data.
-
0
Unexpected error
-
*/
public FileTransfer downloadLivePhoto(UUID livePhotoId) throws ApiException {
ApiResponse localVarResp = downloadLivePhotoWithHttpInfo(livePhotoId);
return localVarResp.getData();
}
/**
* Download live photo
* Live photos are downloaded using this endpoint.
* @param livePhotoId The live photo's unique identifier. (required)
* @return ApiResponse<FileTransfer>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The live photo's binary data.
-
0
Unexpected error
-
*/
public ApiResponse downloadLivePhotoWithHttpInfo(UUID livePhotoId) throws ApiException {
okhttp3.Call localVarCall = downloadLivePhotoValidateBeforeCall(livePhotoId, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Download live photo (asynchronously)
* Live photos are downloaded using this endpoint.
* @param livePhotoId The live photo's unique identifier. (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The live photo's binary data.
-
0
Unexpected error
-
*/
public okhttp3.Call downloadLivePhotoAsync(UUID livePhotoId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = downloadLivePhotoValidateBeforeCall(livePhotoId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for downloadLiveVideo
* @param liveVideoId The live video's unique identifier. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The live video's binary data.
-
0
Unexpected error
-
*/
public okhttp3.Call downloadLiveVideoCall(UUID liveVideoId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/live_videos/{live_video_id}/download"
.replace("{" + "live_video_id" + "}", localVarApiClient.escapeString(liveVideoId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*",
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call downloadLiveVideoValidateBeforeCall(UUID liveVideoId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'liveVideoId' is set
if (liveVideoId == null) {
throw new ApiException("Missing the required parameter 'liveVideoId' when calling downloadLiveVideo(Async)");
}
return downloadLiveVideoCall(liveVideoId, _callback);
}
/**
* Download live video
* Live videos are downloaded using this endpoint.
* @param liveVideoId The live video's unique identifier. (required)
* @return FileTransfer
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The live video's binary data.
-
0
Unexpected error
-
*/
public FileTransfer downloadLiveVideo(UUID liveVideoId) throws ApiException {
ApiResponse localVarResp = downloadLiveVideoWithHttpInfo(liveVideoId);
return localVarResp.getData();
}
/**
* Download live video
* Live videos are downloaded using this endpoint.
* @param liveVideoId The live video's unique identifier. (required)
* @return ApiResponse<FileTransfer>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The live video's binary data.
-
0
Unexpected error
-
*/
public ApiResponse downloadLiveVideoWithHttpInfo(UUID liveVideoId) throws ApiException {
okhttp3.Call localVarCall = downloadLiveVideoValidateBeforeCall(liveVideoId, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Download live video (asynchronously)
* Live videos are downloaded using this endpoint.
* @param liveVideoId The live video's unique identifier. (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The live video's binary data.
-
0
Unexpected error
-
*/
public okhttp3.Call downloadLiveVideoAsync(UUID liveVideoId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = downloadLiveVideoValidateBeforeCall(liveVideoId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for downloadLiveVideoFrame
* @param liveVideoId The live video's unique identifier. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The live video frame's binary data.
-
0
Unexpected error
-
*/
public okhttp3.Call downloadLiveVideoFrameCall(UUID liveVideoId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/live_videos/{live_video_id}/frame"
.replace("{" + "live_video_id" + "}", localVarApiClient.escapeString(liveVideoId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*",
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call downloadLiveVideoFrameValidateBeforeCall(UUID liveVideoId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'liveVideoId' is set
if (liveVideoId == null) {
throw new ApiException("Missing the required parameter 'liveVideoId' when calling downloadLiveVideoFrame(Async)");
}
return downloadLiveVideoFrameCall(liveVideoId, _callback);
}
/**
* Download live video frame
* Returns the binary data representing a single frame from a live video.
* @param liveVideoId The live video's unique identifier. (required)
* @return FileTransfer
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details