gclass

0.4.1 • Public • Published

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:

  1. create an app and web client auth on Google Developer Console;
  2. and set the corresponding environment variables: GCLA_CLIENT_ID, GCLA_CLIENT_SECRET and GCLA_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

Readme

Keywords

none

Package Sidebar

Install

npm i gclass

Weekly Downloads

0

Version

0.4.1

License

none

Unpacked Size

287 kB

Total Files

9

Last publish

Collaborators

  • adrienjoly