lib/purecloud/api/workforce_management_api.rb in purecloud-0.66.1 vs lib/purecloud/api/workforce_management_api.rb in purecloud-0.67.1
- old
+ new
@@ -24,23 +24,23 @@
@api_client = api_client
end
# Get a list of UserScheduleAdherence records for the requested users
#
- # @param user_id User Id(s) for which to fetch current schedule adherence information. Max of 100 userIds per request
+ # @param user_id User Id(s) for which to fetch current schedule adherence information. Min 1, Max of 100 userIds per request
# @param [Hash] opts the optional parameters
- # @return [UserScheduleAdherence]
+ # @return [Array<UserScheduleAdherence>]
def get_adherence(user_id, opts = {})
data, status_code, headers = get_adherence_with_http_info(user_id, opts)
return data
end
# Get a list of UserScheduleAdherence records for the requested users
#
- # @param user_id User Id(s) for which to fetch current schedule adherence information. Max of 100 userIds per request
+ # @param user_id User Id(s) for which to fetch current schedule adherence information. Min 1, Max of 100 userIds per request
# @param [Hash] opts the optional parameters
- # @return [Array<(UserScheduleAdherence, Fixnum, Hash)>] UserScheduleAdherence data, response status code and response headers
+ # @return [Array<(Array<UserScheduleAdherence>, Fixnum, Hash)>] Array<UserScheduleAdherence> data, response status code and response headers
def get_adherence_with_http_info(user_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: WorkforceManagementApi#get_adherence ..."
end
@@ -76,10 +76,10 @@
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
- :return_type => 'UserScheduleAdherence')
+ :return_type => 'Array<UserScheduleAdherence>')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: WorkforceManagementApi#get_adherence\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end