com.unblu.webapi.jersey.v3.api.WebhookCallLogsApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jersey-client-v3 Show documentation
Show all versions of jersey-client-v3 Show documentation
Client implemented using Jersey
package com.unblu.webapi.jersey.v3.api;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.ws.rs.core.GenericType;
import com.unblu.webapi.jersey.v3.invoker.ApiClient;
import com.unblu.webapi.jersey.v3.invoker.ApiException;
import com.unblu.webapi.jersey.v3.invoker.ApiResponse;
import com.unblu.webapi.jersey.v3.invoker.Configuration;
import com.unblu.webapi.jersey.v3.invoker.Pair;
import com.unblu.webapi.model.v3.WebhookCallLog;
import com.unblu.webapi.model.v3.WebhookCallLogQuery;
import com.unblu.webapi.model.v3.WebhookCallLogResult;
public class WebhookCallLogsApi {
private ApiClient apiClient;
public WebhookCallLogsApi() {
this(Configuration.getDefaultApiClient());
}
public WebhookCallLogsApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* read Returns the entity for the given ID<br>
*
* @param id ID of the entity which should be returned (optional)
* @return WebhookCallLog
* @throws ApiException if fails to make API call
*/
public WebhookCallLog webhookCallLogsRead(String id) throws ApiException {
return webhookCallLogsReadWithHttpInfo(id).getData();
}
/**
* read Returns the entity for the given ID<br>
*
* @param id ID of the entity which should be returned (optional)
* @return ApiResponse<WebhookCallLog>
* @throws ApiException if fails to make API call
*/
public ApiResponse webhookCallLogsReadWithHttpInfo(String id) throws ApiException {
Object localVarPostBody = new HashMap<>();
// create path and map variables
String localVarPath = "/webhookcalllogs/read";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "id", id));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "basicAuth" };
GenericType localVarReturnType = new GenericType() {
};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* readMultiple Gets a list of entities for the given ID's<br>
*
* @param requestBody The ID's for which the entities should be fetched (required)
* @return List<WebhookCallLog>
* @throws ApiException if fails to make API call
*/
public List webhookCallLogsReadMultiple(List requestBody) throws ApiException {
return webhookCallLogsReadMultipleWithHttpInfo(requestBody).getData();
}
/**
* readMultiple Gets a list of entities for the given ID's<br>
*
* @param requestBody The ID's for which the entities should be fetched (required)
* @return ApiResponse<List<WebhookCallLog>>
* @throws ApiException if fails to make API call
*/
public ApiResponse> webhookCallLogsReadMultipleWithHttpInfo(List requestBody) throws ApiException {
Object localVarPostBody = requestBody;
// verify the required parameter 'requestBody' is set
if (requestBody == null) {
throw new ApiException(400, "Missing the required parameter 'requestBody' when calling webhookCallLogsReadMultiple");
}
// create path and map variables
String localVarPath = "/webhookcalllogs/readMultiple";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "basicAuth" };
GenericType> localVarReturnType = new GenericType>() {
};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* search Search for call logs in the current account<br>
*
* @param webhookCallLogQuery (required)
* @return WebhookCallLogResult
* @throws ApiException if fails to make API call
*/
public WebhookCallLogResult webhookCallLogsSearch(WebhookCallLogQuery webhookCallLogQuery) throws ApiException {
return webhookCallLogsSearchWithHttpInfo(webhookCallLogQuery).getData();
}
/**
* search Search for call logs in the current account<br>
*
* @param webhookCallLogQuery (required)
* @return ApiResponse<WebhookCallLogResult>
* @throws ApiException if fails to make API call
*/
public ApiResponse webhookCallLogsSearchWithHttpInfo(WebhookCallLogQuery webhookCallLogQuery) throws ApiException {
Object localVarPostBody = webhookCallLogQuery;
// verify the required parameter 'webhookCallLogQuery' is set
if (webhookCallLogQuery == null) {
throw new ApiException(400, "Missing the required parameter 'webhookCallLogQuery' when calling webhookCallLogsSearch");
}
// create path and map variables
String localVarPath = "/webhookcalllogs/search";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "basicAuth" };
GenericType localVarReturnType = new GenericType() {
};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
}