SuperAPI AI 工具集

recipe-create-classroom-course

办公与效率

查看项目

更新于 10-16 09:39

技能介绍

用途:创建 Google Classroom 课程并邀请学生,适用于在命令行中快速完成课程开设与选课邀请。

前置条件:执行本配方前,需先加载 gws-classroom 技能。

主要步骤与命令:

  1. 创建课程: gws classroom courses create --json '{"name": "Introduction to CS", "section": "Period 1", "room": "Room 101", "ownerId": "me"}' 其中可指定课程名称(name)、班级(section)、教室(room)和所有者(ownerId)。
  2. 邀请学生: gws classroom invitations create --json '{"courseId": "COURSE_ID", "userId": "student@school.edu", "role": "STUDENT"}' 需提供课程 ID(courseId)、学生邮箱(userId)和角色(role,值为 STUDENT)。
  3. 列出已注册学生: gws classroom courses students list --params '{"courseId": "COURSE_ID"}' --format table 按课程 ID 查询,并以表格格式输出学生列表。

适用场景:教师、助教或教务人员在命令行环境下批量或脚本化地创建 Google Classroom 课程、发送学生邀请、查看选课学生名单。

限制:资料未提供其他限制信息;执行前必须加载 gws-classroom 技能。具体参数取值、权限要求及错误处理方式暂未提供。