gclass
v0.4.1
Published
Fetches courses, students, assignments and student-submitted URLs from Google Classroom API.
Downloads
2
Readme
gclass
– Google Classroom Assignments CLI
Fetches courses, students, assignments and student-submitted URLs from Google Classroom API.
Forked from adrienjoly/classroom-submissions-to-pdf.
Usage
$ npx gclass list-courses # will list course_ids
$ npx gclass get-course <course_id> # will display metadata about the course
$ npx gclass list-students <course_id>
$ npx gclass list-assignments <course_id> # will list assignment_ids
$ npx gclass list-submissions <course_id> <assignment_id>
$ npx gclass list-submitted-urls <course_id> <assignment_id>
$ npx gclass generate-test-script <course_id> <assignment_id>
Setup
Before running, don't forget to:
- create an app and web client auth on Google Developer Console;
- and set the corresponding environment variables:
GCLA_CLIENT_ID
,GCLA_CLIENT_SECRET
andGCLA_REDIRECT_URL
(note: you can store them in a.env
file)
All npm
scripts that can be used are listed in the package.json
file.
Run tests
$ git clone https://github.com/adrienjoly/classroom-assignments-cli.git
$ cd classroom-assignments-cli
$ npm install
$ npm test # => tests the Google API