Download the PHP package cba85/google-classroom-cli without Composer
On this page you can find all versions of the php package cba85/google-classroom-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cba85/google-classroom-cli
More information about cba85/google-classroom-cli
Files in cba85/google-classroom-cli
Package google-classroom-cli
Short Description A PHP CLI to use Google Classroom API.
License MIT
Homepage https://github.com/cba85/google-classroom-cli
Informations about the package google-classroom-cli
Google Classroom
A CLI to use Google Classroom API.
Fetches courses, students, assignments and student-submitted URLs from Google Classroom.
Why?
I want to use Google Classroom to manage my classes (students and assignments). I'd like to fetch URLs (containing Github repositories) submitted by the students for each assignments to automatically retrieve their projet.
That's why this projet only uses Google Classroom read-only API permissions and just some ressources of the API useful for myself are available.
Requirements
Composer
Make sure Composer is installed globally.
Install
Then make sure you have the global Composer binaries directory in your PATH.
This directory is platform-dependent, see Composer documentation for details.
Update
Google Classroom API setup
- Create an app and web client auth on Google Developer Console
- Download the
credentials.json
file and move it to theauth/
folder of the application.If you use the application as a global command, move the
credentials.json
file to~/.composer/vendor/cba85/google-classroom-cli/auth/
folder. - First time you launch the application, you'll have to grant access of your Google application using Google OAuth2 server to retrieve an access token. Then, enter the verification code into the CLI prompt. Your access token will be saved in
auth/token.json
file.
Usage
Notes
list-submitted-urls
command will list all the urls submitted by the students if the "course work" type is "assignment". If the "course work" type is a "short answer question", it will retrieve the answer and expect it to be an url.