add_enrollment | R Documentation |
Enroll a user into the course
add_enrollment(course_id, user_id, type, state, section = F, ...)
course_id |
ID of the course (or section, see below) |
user_id |
ID of the user |
type |
enrollment type |
state |
enrollment state |
section |
if TRUE, course_id should be a section_id instead of a course_id and students will be enrolled into this section |
... |
any other arguments passed to the API |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.