lib/purecloud/api/analytics_api.rb in purecloud-0.58.1 vs lib/purecloud/api/analytics_api.rb in purecloud-0.59.1

- old
+ new

@@ -1176,9 +1176,69 @@ @api_client.config.logger.debug "API called: AnalyticsApi#post_users_aggregates_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end + # Query for user details + # + # @param body query + # @param [Hash] opts the optional parameters + # @return [AnalyticsUserDetailsQueryResponse] + def post_users_details_query(body, opts = {}) + data, status_code, headers = post_users_details_query_with_http_info(body, opts) + return data + end + + # Query for user details + # + # @param body query + # @param [Hash] opts the optional parameters + # @return [Array<(AnalyticsUserDetailsQueryResponse, Fixnum, Hash)>] AnalyticsUserDetailsQueryResponse data, response status code and response headers + def post_users_details_query_with_http_info(body, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: AnalyticsApi#post_users_details_query ..." + end + + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_users_details_query" if body.nil? + + # resource path + local_var_path = "/api/v2/analytics/users/details/query".sub('{format}','json') + + # query parameters + query_params = {} + + # header parameters + header_params = {} + + # HTTP header 'Accept' (if needed) + _header_accept = ['application/json'] + _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result + + # HTTP header 'Content-Type' + _header_content_type = ['application/json'] + header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(body) + + auth_names = ['PureCloud Auth'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'AnalyticsUserDetailsQueryResponse') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: AnalyticsApi#post_users_details_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Query for user observations # # @param body query # @param [Hash] opts the optional parameters # @return [ObservationQueryResponse]