定制 cba85/google-classroom-cli 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cba85/google-classroom-cli

Composer 安装命令:

composer require cba85/google-classroom-cli

包简介

A PHP CLI to use Google Classroom API.

README 文档

README

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

$ composer global require cba85/google-classroom-cli

Then make sure you have the global Composer binaries directory in your PATH.

This directory is platform-dependent, see Composer documentation for details.

Update

$ composer global update cba85/google-classroom-cli

Google Classroom API setup

  1. Create an app and web client auth on Google Developer Console
  2. Download the credentials.json file and move it to the auth/ 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.

  1. 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

$ gclass list-courses
$ gclass list-students courseId
$ gclass list-assignments courseId
$ gclass list-submissions courseId assignmentId
$ gclass list-submitted-urls courseId assignmentId

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.

Dependencies

Documentation

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固