Google Classroom 外掛程式現已全面開放開發人員使用!詳情請參閱
外掛程式說明文件。
REST Resource: invitations
資源:邀請
JSON 表示法 |
{
"id": string,
"userId": string,
"courseId": string,
"role": enum (CourseRole )
} |
欄位 |
id |
string
Classroom 指派的 ID。 唯讀。
|
userId |
string
受邀使用者的 ID。 如果指定為要求的參數,這個 ID 可設為下列其中一個值:
- 使用者的數字 ID
- 使用者的電子郵件地址
- 字串常值
"me" ,表示提出要求的使用者
|
courseId |
string
邀請使用者加入的課程 ID。
|
role |
enum (CourseRole )
邀請使用者取得的角色。不得為 COURSE_ROLE_UNSPECIFIED 。
|
CourseRole
列舉 |
COURSE_ROLE_UNSPECIFIED |
沒有課程角色。 |
STUDENT |
課程中的學生。 |
TEACHER |
課程老師。 |
OWNER |
課程擁有者。 |
方法 |
|
接受邀請、移除邀請,並視情況將受邀的使用者新增至指定課程的老師或學生。 |
|
建立邀請。 |
|
刪除邀請。 |
|
傳回邀請。 |
|
傳回允許提出要求的使用者檢視的邀請清單,且只限符合清單要求的使用者。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-27 (世界標準時間)。
[null,null,["上次更新時間:2025-02-27 (世界標準時間)。"],[[["This documentation describes the Invitation resource in Classroom API, used to invite users to courses."],["Invitations include details like the invited user's ID, the course ID, and the intended role (student, teacher, or owner)."],["You can manage invitations using methods like create, delete, get, list, and accept, to handle course memberships."],["The CourseRole enum defines the possible roles a user can be invited to have within a course."],["A JSON representation showcases the structure of an invitation object with its properties and data types."]]],[]]