com.mypurecloud.sdk.api.AnalyticsApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-client Show documentation
Show all versions of platform-client Show documentation
The official Java SDK for the PureCloud Platform API SDK
The newest version!
package com.mypurecloud.sdk.api;
import com.fasterxml.jackson.core.type.TypeReference;
import com.mypurecloud.sdk.ApiException;
import com.mypurecloud.sdk.ApiClient;
import com.mypurecloud.sdk.ApiResponse;
import com.mypurecloud.sdk.Configuration;
import com.mypurecloud.sdk.model.*;
import com.mypurecloud.sdk.Pair;
import com.mypurecloud.sdk.model.ErrorBody;
import com.mypurecloud.sdk.model.AnalyticsConversation;
import com.mypurecloud.sdk.model.ReportMetaDataEntityListing;
import com.mypurecloud.sdk.model.ReportMetaData;
import com.mypurecloud.sdk.model.ReportScheduleEntityListing;
import com.mypurecloud.sdk.model.ReportSchedule;
import com.mypurecloud.sdk.model.ReportRunEntryEntityDomainListing;
import com.mypurecloud.sdk.model.ReportRunEntry;
import com.mypurecloud.sdk.model.AggregationQuery;
import com.mypurecloud.sdk.model.AggregateQueryResponse;
import com.mypurecloud.sdk.model.PropertyIndexRequest;
import com.mypurecloud.sdk.model.AnalyticsConversationQueryResponse;
import com.mypurecloud.sdk.model.ConversationQuery;
import com.mypurecloud.sdk.model.QualifierMappingObservationQueryResponse;
import com.mypurecloud.sdk.model.ObservationQuery;
import com.mypurecloud.sdk.model.RunNowResponse;
import com.mypurecloud.sdk.model.PresenceQueryResponse;
import com.mypurecloud.sdk.model.AnalyticsUserDetailsQueryResponse;
import com.mypurecloud.sdk.model.UserDetailsQuery;
import com.mypurecloud.sdk.model.ObservationQueryResponse;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class AnalyticsApi {
private ApiClient pcapiClient;
public AnalyticsApi() {
this(Configuration.getDefaultApiClient());
}
public AnalyticsApi(ApiClient apiClient) {
this.pcapiClient = apiClient;
}
public ApiClient getApiClient() {
return pcapiClient;
}
public void setApiClient(ApiClient apiClient) {
this.pcapiClient = apiClient;
}
/**
* Delete a scheduled report job.
*
* @param scheduleId Schedule ID (required)
* @return String
* @throws ApiException if fails to make API call
*/
public String deleteReportingSchedulesScheduleId(String scheduleId) throws ApiException {
return deleteReportingSchedulesScheduleIdWithHttpInfo(scheduleId).getResponseObject();
}
/**
* Delete a scheduled report job.
*
* @param scheduleId Schedule ID (required)
* @return String
* @throws ApiException if fails to make API call
*/
public ApiResponse deleteReportingSchedulesScheduleIdWithHttpInfo(String scheduleId) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'scheduleId' is set
if (scheduleId == null) {
throw new ApiException(400, "Missing the required parameter 'scheduleId' when calling deleteReportingSchedulesScheduleId");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/reporting/schedules/{scheduleId}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "scheduleId" + "\\}", pcapiClient.escapeString(scheduleId.toString()));
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "DELETE", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get a conversation by id
*
* @param conversationId conversationId (required)
* @return AnalyticsConversation
* @throws ApiException if fails to make API call
*/
public AnalyticsConversation getConversationsConversationIdDetails(String conversationId) throws ApiException {
return getConversationsConversationIdDetailsWithHttpInfo(conversationId).getResponseObject();
}
/**
* Get a conversation by id
*
* @param conversationId conversationId (required)
* @return AnalyticsConversation
* @throws ApiException if fails to make API call
*/
public ApiResponse getConversationsConversationIdDetailsWithHttpInfo(String conversationId) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'conversationId' is set
if (conversationId == null) {
throw new ApiException(400, "Missing the required parameter 'conversationId' when calling getConversationsConversationIdDetails");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/conversations/{conversationId}/details".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "conversationId" + "\\}", pcapiClient.escapeString(conversationId.toString()));
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get list of reporting metadata.
*
* @param pageNumber Page number (optional, default to 1)
* @param pageSize Page size (optional, default to 25)
* @param locale Locale (optional)
* @return ReportMetaDataEntityListing
* @throws ApiException if fails to make API call
*/
public ReportMetaDataEntityListing getReportingMetadata(Integer pageNumber, Integer pageSize, String locale) throws ApiException {
return getReportingMetadataWithHttpInfo(pageNumber, pageSize, locale).getResponseObject();
}
/**
* Get list of reporting metadata.
*
* @param pageNumber Page number (optional, default to 1)
* @param pageSize Page size (optional, default to 25)
* @param locale Locale (optional)
* @return ReportMetaDataEntityListing
* @throws ApiException if fails to make API call
*/
public ApiResponse getReportingMetadataWithHttpInfo(Integer pageNumber, Integer pageSize, String locale) throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/reporting/metadata".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "pageNumber", pageNumber));
pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "pageSize", pageSize));
pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "locale", locale));
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get a reporting metadata.
*
* @param reportId Report ID (required)
* @param locale Locale (optional)
* @return ReportMetaData
* @throws ApiException if fails to make API call
*/
public ReportMetaData getReportingReportIdMetadata(String reportId, String locale) throws ApiException {
return getReportingReportIdMetadataWithHttpInfo(reportId, locale).getResponseObject();
}
/**
* Get a reporting metadata.
*
* @param reportId Report ID (required)
* @param locale Locale (optional)
* @return ReportMetaData
* @throws ApiException if fails to make API call
*/
public ApiResponse getReportingReportIdMetadataWithHttpInfo(String reportId, String locale) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'reportId' is set
if (reportId == null) {
throw new ApiException(400, "Missing the required parameter 'reportId' when calling getReportingReportIdMetadata");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/reporting/{reportId}/metadata".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "reportId" + "\\}", pcapiClient.escapeString(reportId.toString()));
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "locale", locale));
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get a list of report formats
* Get a list of report formats.
* @return List
* @throws ApiException if fails to make API call
*/
public List getReportingReportformats() throws ApiException {
return getReportingReportformatsWithHttpInfo().getResponseObject();
}
/**
* Get a list of report formats
* Get a list of report formats.
* @return List
* @throws ApiException if fails to make API call
*/
public ApiResponse> getReportingReportformatsWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/reporting/reportformats".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference>() {});
}
/**
* Get a list of scheduled report jobs
* Get a list of scheduled report jobs.
* @param pageNumber Page number (optional, default to 1)
* @param pageSize Page size (optional, default to 25)
* @return ReportScheduleEntityListing
* @throws ApiException if fails to make API call
*/
public ReportScheduleEntityListing getReportingSchedules(Integer pageNumber, Integer pageSize) throws ApiException {
return getReportingSchedulesWithHttpInfo(pageNumber, pageSize).getResponseObject();
}
/**
* Get a list of scheduled report jobs
* Get a list of scheduled report jobs.
* @param pageNumber Page number (optional, default to 1)
* @param pageSize Page size (optional, default to 25)
* @return ReportScheduleEntityListing
* @throws ApiException if fails to make API call
*/
public ApiResponse getReportingSchedulesWithHttpInfo(Integer pageNumber, Integer pageSize) throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/reporting/schedules".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "pageNumber", pageNumber));
pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "pageSize", pageSize));
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get a scheduled report job.
*
* @param scheduleId Schedule ID (required)
* @return ReportSchedule
* @throws ApiException if fails to make API call
*/
public ReportSchedule getReportingSchedulesScheduleId(String scheduleId) throws ApiException {
return getReportingSchedulesScheduleIdWithHttpInfo(scheduleId).getResponseObject();
}
/**
* Get a scheduled report job.
*
* @param scheduleId Schedule ID (required)
* @return ReportSchedule
* @throws ApiException if fails to make API call
*/
public ApiResponse getReportingSchedulesScheduleIdWithHttpInfo(String scheduleId) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'scheduleId' is set
if (scheduleId == null) {
throw new ApiException(400, "Missing the required parameter 'scheduleId' when calling getReportingSchedulesScheduleId");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/reporting/schedules/{scheduleId}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "scheduleId" + "\\}", pcapiClient.escapeString(scheduleId.toString()));
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get list of completed scheduled report jobs.
*
* @param scheduleId Schedule ID (required)
* @param pageNumber (optional, default to 1)
* @param pageSize (optional, default to 25)
* @return ReportRunEntryEntityDomainListing
* @throws ApiException if fails to make API call
*/
public ReportRunEntryEntityDomainListing getReportingSchedulesScheduleIdHistory(String scheduleId, Integer pageNumber, Integer pageSize) throws ApiException {
return getReportingSchedulesScheduleIdHistoryWithHttpInfo(scheduleId, pageNumber, pageSize).getResponseObject();
}
/**
* Get list of completed scheduled report jobs.
*
* @param scheduleId Schedule ID (required)
* @param pageNumber (optional, default to 1)
* @param pageSize (optional, default to 25)
* @return ReportRunEntryEntityDomainListing
* @throws ApiException if fails to make API call
*/
public ApiResponse getReportingSchedulesScheduleIdHistoryWithHttpInfo(String scheduleId, Integer pageNumber, Integer pageSize) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'scheduleId' is set
if (scheduleId == null) {
throw new ApiException(400, "Missing the required parameter 'scheduleId' when calling getReportingSchedulesScheduleIdHistory");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/reporting/schedules/{scheduleId}/history".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "scheduleId" + "\\}", pcapiClient.escapeString(scheduleId.toString()));
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "pageNumber", pageNumber));
pclocalVarQueryParams.addAll(pcapiClient.parameterToPairs("", "pageSize", pageSize));
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get most recently completed scheduled report job.
*
* @param scheduleId Schedule ID (required)
* @return ReportRunEntry
* @throws ApiException if fails to make API call
*/
public ReportRunEntry getReportingSchedulesScheduleIdHistoryLatest(String scheduleId) throws ApiException {
return getReportingSchedulesScheduleIdHistoryLatestWithHttpInfo(scheduleId).getResponseObject();
}
/**
* Get most recently completed scheduled report job.
*
* @param scheduleId Schedule ID (required)
* @return ReportRunEntry
* @throws ApiException if fails to make API call
*/
public ApiResponse getReportingSchedulesScheduleIdHistoryLatestWithHttpInfo(String scheduleId) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'scheduleId' is set
if (scheduleId == null) {
throw new ApiException(400, "Missing the required parameter 'scheduleId' when calling getReportingSchedulesScheduleIdHistoryLatest");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/reporting/schedules/{scheduleId}/history/latest".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "scheduleId" + "\\}", pcapiClient.escapeString(scheduleId.toString()));
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* A completed scheduled report job
* A completed scheduled report job.
* @param runId Run ID (required)
* @param scheduleId Schedule ID (required)
* @return ReportRunEntry
* @throws ApiException if fails to make API call
*/
public ReportRunEntry getReportingSchedulesScheduleIdHistoryRunId(String runId, String scheduleId) throws ApiException {
return getReportingSchedulesScheduleIdHistoryRunIdWithHttpInfo(runId, scheduleId).getResponseObject();
}
/**
* A completed scheduled report job
* A completed scheduled report job.
* @param runId Run ID (required)
* @param scheduleId Schedule ID (required)
* @return ReportRunEntry
* @throws ApiException if fails to make API call
*/
public ApiResponse getReportingSchedulesScheduleIdHistoryRunIdWithHttpInfo(String runId, String scheduleId) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'runId' is set
if (runId == null) {
throw new ApiException(400, "Missing the required parameter 'runId' when calling getReportingSchedulesScheduleIdHistoryRunId");
}
// verify the required parameter 'scheduleId' is set
if (scheduleId == null) {
throw new ApiException(400, "Missing the required parameter 'scheduleId' when calling getReportingSchedulesScheduleIdHistoryRunId");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/reporting/schedules/{scheduleId}/history/{runId}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "runId" + "\\}", pcapiClient.escapeString(runId.toString()))
.replaceAll("\\{" + "scheduleId" + "\\}", pcapiClient.escapeString(scheduleId.toString()));
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Get a list of report time periods.
*
* @return List
* @throws ApiException if fails to make API call
*/
public List getReportingTimeperiods() throws ApiException {
return getReportingTimeperiodsWithHttpInfo().getResponseObject();
}
/**
* Get a list of report time periods.
*
* @return List
* @throws ApiException if fails to make API call
*/
public ApiResponse> getReportingTimeperiodsWithHttpInfo() throws ApiException {
Object pclocalVarPostBody = null;
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/reporting/timeperiods".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "GET", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference>() {});
}
/**
* Query for conversation aggregates
*
* @param body query (required)
* @return AggregateQueryResponse
* @throws ApiException if fails to make API call
*/
public AggregateQueryResponse postConversationsAggregatesQuery(AggregationQuery body) throws ApiException {
return postConversationsAggregatesQueryWithHttpInfo(body).getResponseObject();
}
/**
* Query for conversation aggregates
*
* @param body query (required)
* @return AggregateQueryResponse
* @throws ApiException if fails to make API call
*/
public ApiResponse postConversationsAggregatesQueryWithHttpInfo(AggregationQuery body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling postConversationsAggregatesQuery");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/conversations/aggregates/query".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "POST", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Index conversation properties
*
* @param conversationId conversationId (required)
* @param body request (required)
* @return PropertyIndexRequest
* @throws ApiException if fails to make API call
*/
public PropertyIndexRequest postConversationsConversationIdDetailsProperties(String conversationId, PropertyIndexRequest body) throws ApiException {
return postConversationsConversationIdDetailsPropertiesWithHttpInfo(conversationId, body).getResponseObject();
}
/**
* Index conversation properties
*
* @param conversationId conversationId (required)
* @param body request (required)
* @return PropertyIndexRequest
* @throws ApiException if fails to make API call
*/
public ApiResponse postConversationsConversationIdDetailsPropertiesWithHttpInfo(String conversationId, PropertyIndexRequest body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'conversationId' is set
if (conversationId == null) {
throw new ApiException(400, "Missing the required parameter 'conversationId' when calling postConversationsConversationIdDetailsProperties");
}
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling postConversationsConversationIdDetailsProperties");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/conversations/{conversationId}/details/properties".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "conversationId" + "\\}", pcapiClient.escapeString(conversationId.toString()));
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "POST", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Query for conversation details
*
* @param body query (required)
* @return AnalyticsConversationQueryResponse
* @throws ApiException if fails to make API call
*/
public AnalyticsConversationQueryResponse postConversationsDetailsQuery(ConversationQuery body) throws ApiException {
return postConversationsDetailsQueryWithHttpInfo(body).getResponseObject();
}
/**
* Query for conversation details
*
* @param body query (required)
* @return AnalyticsConversationQueryResponse
* @throws ApiException if fails to make API call
*/
public ApiResponse postConversationsDetailsQueryWithHttpInfo(ConversationQuery body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling postConversationsDetailsQuery");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/conversations/details/query".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "POST", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Query for evaluation aggregates
*
* @param body query (required)
* @return AggregateQueryResponse
* @throws ApiException if fails to make API call
*/
public AggregateQueryResponse postEvaluationsAggregatesQuery(AggregationQuery body) throws ApiException {
return postEvaluationsAggregatesQueryWithHttpInfo(body).getResponseObject();
}
/**
* Query for evaluation aggregates
*
* @param body query (required)
* @return AggregateQueryResponse
* @throws ApiException if fails to make API call
*/
public ApiResponse postEvaluationsAggregatesQueryWithHttpInfo(AggregationQuery body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling postEvaluationsAggregatesQuery");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/evaluations/aggregates/query".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "POST", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Query for queue observations
*
* @param body query (required)
* @return QualifierMappingObservationQueryResponse
* @throws ApiException if fails to make API call
*/
public QualifierMappingObservationQueryResponse postQueuesObservationsQuery(ObservationQuery body) throws ApiException {
return postQueuesObservationsQueryWithHttpInfo(body).getResponseObject();
}
/**
* Query for queue observations
*
* @param body query (required)
* @return QualifierMappingObservationQueryResponse
* @throws ApiException if fails to make API call
*/
public ApiResponse postQueuesObservationsQueryWithHttpInfo(ObservationQuery body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling postQueuesObservationsQuery");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/queues/observations/query".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "POST", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Create a scheduled report job
* Create a scheduled report job.
* @param body ReportSchedule (required)
* @return ReportSchedule
* @throws ApiException if fails to make API call
*/
public ReportSchedule postReportingSchedules(ReportSchedule body) throws ApiException {
return postReportingSchedulesWithHttpInfo(body).getResponseObject();
}
/**
* Create a scheduled report job
* Create a scheduled report job.
* @param body ReportSchedule (required)
* @return ReportSchedule
* @throws ApiException if fails to make API call
*/
public ApiResponse postReportingSchedulesWithHttpInfo(ReportSchedule body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling postReportingSchedules");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/reporting/schedules".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "POST", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Place a scheduled report immediately into the reporting queue
*
* @param scheduleId Schedule ID (required)
* @return RunNowResponse
* @throws ApiException if fails to make API call
*/
public RunNowResponse postReportingSchedulesScheduleIdRunreport(String scheduleId) throws ApiException {
return postReportingSchedulesScheduleIdRunreportWithHttpInfo(scheduleId).getResponseObject();
}
/**
* Place a scheduled report immediately into the reporting queue
*
* @param scheduleId Schedule ID (required)
* @return RunNowResponse
* @throws ApiException if fails to make API call
*/
public ApiResponse postReportingSchedulesScheduleIdRunreportWithHttpInfo(String scheduleId) throws ApiException {
Object pclocalVarPostBody = null;
// verify the required parameter 'scheduleId' is set
if (scheduleId == null) {
throw new ApiException(400, "Missing the required parameter 'scheduleId' when calling postReportingSchedulesScheduleIdRunreport");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/reporting/schedules/{scheduleId}/runreport".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "scheduleId" + "\\}", pcapiClient.escapeString(scheduleId.toString()));
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "POST", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Query for user aggregates
*
* @param body query (required)
* @return PresenceQueryResponse
* @throws ApiException if fails to make API call
*/
public PresenceQueryResponse postUsersAggregatesQuery(AggregationQuery body) throws ApiException {
return postUsersAggregatesQueryWithHttpInfo(body).getResponseObject();
}
/**
* Query for user aggregates
*
* @param body query (required)
* @return PresenceQueryResponse
* @throws ApiException if fails to make API call
*/
public ApiResponse postUsersAggregatesQueryWithHttpInfo(AggregationQuery body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling postUsersAggregatesQuery");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/users/aggregates/query".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "POST", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Query for user details
*
* @param body query (required)
* @return AnalyticsUserDetailsQueryResponse
* @throws ApiException if fails to make API call
*/
public AnalyticsUserDetailsQueryResponse postUsersDetailsQuery(UserDetailsQuery body) throws ApiException {
return postUsersDetailsQueryWithHttpInfo(body).getResponseObject();
}
/**
* Query for user details
*
* @param body query (required)
* @return AnalyticsUserDetailsQueryResponse
* @throws ApiException if fails to make API call
*/
public ApiResponse postUsersDetailsQueryWithHttpInfo(UserDetailsQuery body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling postUsersDetailsQuery");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/users/details/query".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "POST", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Query for user observations
*
* @param body query (required)
* @return ObservationQueryResponse
* @throws ApiException if fails to make API call
*/
public ObservationQueryResponse postUsersObservationsQuery(ObservationQuery body) throws ApiException {
return postUsersObservationsQueryWithHttpInfo(body).getResponseObject();
}
/**
* Query for user observations
*
* @param body query (required)
* @return ObservationQueryResponse
* @throws ApiException if fails to make API call
*/
public ApiResponse postUsersObservationsQueryWithHttpInfo(ObservationQuery body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling postUsersObservationsQuery");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/users/observations/query".replaceAll("\\{format\\}","json");
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "POST", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
/**
* Update a scheduled report job.
*
* @param scheduleId Schedule ID (required)
* @param body ReportSchedule (required)
* @return ReportSchedule
* @throws ApiException if fails to make API call
*/
public ReportSchedule putReportingSchedulesScheduleId(String scheduleId, ReportSchedule body) throws ApiException {
return putReportingSchedulesScheduleIdWithHttpInfo(scheduleId, body).getResponseObject();
}
/**
* Update a scheduled report job.
*
* @param scheduleId Schedule ID (required)
* @param body ReportSchedule (required)
* @return ReportSchedule
* @throws ApiException if fails to make API call
*/
public ApiResponse putReportingSchedulesScheduleIdWithHttpInfo(String scheduleId, ReportSchedule body) throws ApiException {
Object pclocalVarPostBody = body;
// verify the required parameter 'scheduleId' is set
if (scheduleId == null) {
throw new ApiException(400, "Missing the required parameter 'scheduleId' when calling putReportingSchedulesScheduleId");
}
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling putReportingSchedulesScheduleId");
}
// create path and map variables
String pclocalVarPath = "/api/v2/analytics/reporting/schedules/{scheduleId}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "scheduleId" + "\\}", pcapiClient.escapeString(scheduleId.toString()));
// query params
List pclocalVarQueryParams = new ArrayList();
Map pclocalVarHeaderParams = new HashMap();
Map pclocalVarFormParams = new HashMap();
final String[] pclocalVarAccepts = {
"application/json"
};
final String pclocalVarAccept = pcapiClient.selectHeaderAccept(pclocalVarAccepts);
final String[] pclocalVarContentTypes = {
"application/json"
};
final String pclocalVarContentType = pcapiClient.selectHeaderContentType(pclocalVarContentTypes);
String[] pclocalVarAuthNames = new String[] { "PureCloud Auth" };
return pcapiClient.invokeAPIVerbose(pclocalVarPath, "PUT", pclocalVarQueryParams, pclocalVarPostBody, pclocalVarHeaderParams, pclocalVarFormParams, pclocalVarAccept, pclocalVarContentType, pclocalVarAuthNames, new TypeReference() {});
}
}