跳到主要内容
哒哒星球DADA PLANET

Skill · 已公开版本

recipe-create-classroom-course · 创建 Google Classroom 课程并邀请学生

通过 gws 命令行创建 Google Classroom 课程,邀请学生加入,并列出已选课学生名单。

先看看示例

作者提供的示例,实际效果取决于你的输入和使用工具。

输入

创建名为 Introduction to CS 的课程,设置 Period 1 与 Room 101,邀请 student@school.edu 以 STUDENT 角色加入,再列出学生名单。

输出

预期交付:新建的课程、发出的学生邀请,以及以表格形式展示的已选课学生列表。(编辑说明,非实际运行结果)

方法说明

---
name: recipe-create-classroom-course
description: "Create a Google Classroom course and invite students."
metadata:
  version: 0.22.5
  openclaw:
    category: "recipe"
    domain: "education"
    requires:
      bins:
        - gws
      skills:
        - gws-classroom
---

# Create a Google Classroom Course

> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-classroom`

Create a Google Classroom course and invite students.

## Steps

1. Create the course: `gws classroom courses create --json '{"name": "Introduction to CS", "section": "Period 1", "room": "Room 101", "ownerId": "me"}'`
2. Invite a student: `gws classroom invitations create --json '{"courseId": "COURSE_ID", "userId": "student@school.edu", "role": "STUDENT"}'`
3. List enrolled students: `gws classroom courses students list --params '{"courseId": "COURSE_ID"}' --format table`