Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Method: getEnrollments

info
Panel
bgColor#eaf4fd

You can get a list of enrollments for the entire account, for certain learners, for certain courses, or for both latter parameters.

...

ParameterTypeDescription
token (required)stringAccess token. You can obtain a token by making a request
courseIds  (optional)arrayThe IDs of the courses which enrollments you would like to get
learnerIds  (optional)arrayThe IDs of the users whose enrollments you would like to get

...

ParameterTypeDescription
enrollmentarray

An array containing the xml data with the following values: enrollmentId, courseId, accessDate, dueDate, expirationDate, shouldLockAfterDueDate

enrollmentId
The ID of the enrollment
courseId
The ID of the course
learnerId
The ID of the user enrolled in the course
accessDate
The date the learner is supposed to start studying the course
dueDate
Course completion date. This parameter appears in the response if a due date is specified
expirationDate

Course completion date. This parameter appears in the response if a due date is specified and shouldLockAfterDueDate is equal to 1

shouldLockAfterDueDate

Possible values:

0 means that access is granted

1 means that access is denied

issuedCertificateId
The certificate ID (token) from the list of enrollments
certIssueDatedateThe date the certificate was issued
certExpiryDatedateThe certificate’s expiration date
enrollmentTypeGroupint32Possible values:

0 — assigned by an administrator

1 — added from the catalog


info
Panel
bgColor
#eaf4fd

The date of issue and expiration of the certificate can only be received for active enrollments. When using this method, you cannot get the data for archived or deleted enrollments.

...