engagementOrgsCourseCompletionPerCourseRetrieveWithHttpInfo method
Aggregated table of enrollments,and completed count on a per-course basis
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> engagementOrgsCourseCompletionPerCourseRetrieveWithHttpInfo(String org, { String? format, int? groupId, int? length, int? page, }) async {
// ignore: prefer_const_declarations
final path = r'/api/engagement/orgs/{org}/course_completion/per-course'
.replaceAll('{org}', org);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (format != null) {
queryParams.addAll(_queryParams('', 'format', format));
}
if (groupId != null) {
queryParams.addAll(_queryParams('', 'group_id', groupId));
}
if (length != null) {
queryParams.addAll(_queryParams('', 'length', length));
}
if (page != null) {
queryParams.addAll(_queryParams('', 'page', page));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}