All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.unblu.webapi.jersey.v3.api.WebhookCallLogsApi Maven / Gradle / Ivy

There is a newer version: 7.51.0
Show newest version
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 the entities with the given IDs. IDs that can't be found are ignored<br>
	 * 
	 * @param requestBody The IDs for which to fetch the entities (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 the entities with the given IDs. IDs that can't be found are ignored<br>
	 * 
	 * @param requestBody The IDs for which to fetch the entities (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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy