perlearnerOrgsUsersActivityRetrieveWithHttpInfo method

Future<Response> perlearnerOrgsUsersActivityRetrieveWithHttpInfo(
  1. String org,
  2. String userId, {
  3. String? format,
  4. int? groupId,
})

Provides information on user enrollments Params user_id e.g developer@ibleducation.com| developer

Note: This method returns the HTTP Response.

Parameters:

  • String org (required):

  • String userId (required):

  • String format: Format * json - json

  • int groupId: Cohort Group ID

Implementation

Future<Response> perlearnerOrgsUsersActivityRetrieveWithHttpInfo(String org, String userId, { String? format, int? groupId, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/perlearner/orgs/{org}/users/{user_id}/activity/'
    .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 (format != null) {
    queryParams.addAll(_queryParams('', 'format', format));
  }
  if (groupId != null) {
    queryParams.addAll(_queryParams('', 'group_id', groupId));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}