Skip to contents

All functions

add_question_from_bank()
Add questions from a question bank to a quiz
answer_essay()
Answer for an essay question
answer_fill_in_multiple_blanks()
Answer for a fill-in-multiple-blanks question
answer_matching()
Answer for a matching question
answer_mcq()
Answer for a multiple choice question
answer_multiple()
Multiple answer question
answer_none()
A text-only question with no answers
answer_num() answer_num_precision() answer_num_range()
A numerical answer question with an exact answer
answer_single()
Create an answer object for a quiz question
answer_text()
A short answer question
answer_true_false()
True or False Question
answer_upload_file()
A file upload question
opt_show() opt_hide() opt_shuffle()
Options for showing quiz results or answers
attempt_options()
A quiz attempt options
set_canvas_course_id() get_canvas_course_id() set_canvas_url() get_canvas_url() set_canvas_token() get_canvas_token()
Set and get Canvas course, URL, and token
count_submissions()
Count the number of quiz submissions
create_question()
Create a Quiz Question
create_quiz()
Create a Quiz
delete_all_quizzes()
Delete all quizzes
delete_quiz()
Delete a quiz
delete_quiz_question()
Delete a quiz question
dropdown()
Create a dropdown answer for a fill-in-multiple-blanks question
fill_in_the_blank()
Create a fill-in-the-blank answer for a fill-in-multiple-blanks question
last_quiz_id() last_question_id()
Get the ID of the most recently created quiz in a course
list_attempted_questions()
List attempted questions for a quiz
list_files()
List files in a folder or course
list_folder()
List the folder in a course
list_pages()
List pages in a course
list_questions() list_question_groups()
List quiz questions in a course
list_quizzes()
List quizzes in a course
list_submissions()
List quiz submissions
md()
Convert Markdown to HTML
quiz_questions()
Get quiz questions
quiz_results()
Quiz results with user information
quiz_results_summary()
Quiz results summary
quiz_statistics()
Get quiz statistics
quiz_submissions()
Get quiz submissions with question-level answers
regrade_question()
Regrade quiz submissions based on answer
submission_info()
Get quiz submission details
submission_overview()
Get quiz submission overview
submission_questions()
List attempted questions for a quiz
submission_update()
Update a quiz submission
tag_file() upload_tag_file()
Generate an HTML link to download a file in a Canvas course This function creates an HTML link that allows users to download a file stored in a Canvas course. The link will point to the download URL for the specified file.
tag_img() upload_tag_img()
Generate an HTML image tag for a file in a Canvas course
update_question()
Update a quiz question
upload_file()
Upload a file to a folder