perlearnerOrgsUsersVideosPerCourseRetrieveWithHttpInfo method
Summary Videos watched data for a learner per enrollment Query Params 1. user_id e.g developer@ibleducation.com or dev123 (username|email)
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> perlearnerOrgsUsersVideosPerCourseRetrieveWithHttpInfo(String org, String userId, { String? endDate, String? format, int? groupId, String? startDate, }) async {
// ignore: prefer_const_declarations
final path = r'/api/perlearner/orgs/{org}/users/{user_id}/videos/per-course'
.replaceAll('{org}', org)
.replaceAll('{user_id}', userId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (endDate != null) {
queryParams.addAll(_queryParams('', 'end_date', endDate));
}
if (format != null) {
queryParams.addAll(_queryParams('', 'format', format));
}
if (groupId != null) {
queryParams.addAll(_queryParams('', 'group_id', groupId));
}
if (startDate != null) {
queryParams.addAll(_queryParams('', 'start_date', startDate));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}