Skip to content

Downloads quiz logs from old Canvas quizzes (not new!)

License

Notifications You must be signed in to change notification settings

ubc/canvas-quiz-logs

Repository files navigation

Canvas Quiz Logs

This project extracts the Canvas quiz events from a specific course and quiz and outputs a CSV. It returns a CSV with the following headers:

  • student_name
  • student_number
  • canvas_user_id
  • quiz_attempt
  • event_type
  • created_at
  • question_name(s)

Getting Started

These instructions will get you a copy of the project up and running on your local machine for use with your own API tokens and Canvas domains.

Prerequisites

  1. Install Node 8.0.0 or greater.
  2. Install Git.

Host URL and Token setup

  1. Create a .env file.
  2. Add the following: CANVAS_API_TOKEN={YOUR API TOKEN} and CANVAS_API_DOMAIN={YOUR API DOMAIN}. An example CANVAS_API_DOMAIN is https://{school}.instructure.com/api/v1

Installation and starting application

  1. Clone this repo. git clone https://github.com/ubccapico/canvas-quiz-logs.git
  2. Then cd into the repo. cd canvas-quiz-logs
  3. Run the installation script. npm install (If you see babel-node: command not found, you've missed this step.)
  4. Open index.js and supply the Canvas course id and quiz id to the getQuizEvents({canvas_id}, {quiz_id})
  5. Run the application. npm start
  6. The data will be output in output folder.

About

Downloads quiz logs from old Canvas quizzes (not new!)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published