ส่วนเสริมของ Google Classroom พร้อมให้บริการแก่นักพัฒนาซอฟต์แวร์แล้ว โปรดดูข้อมูลเพิ่มเติมใน
เอกสารส่วนเสริม
REST Resource: courses.teachers
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แหล่งข้อมูล: ครู
การแสดง JSON |
{
"courseId": string,
"userId": string,
"profile": {
object (UserProfile )
}
} |
ช่อง |
courseId |
string
ตัวระบุของหลักสูตร อ่านอย่างเดียว
|
userId |
string
ตัวระบุของผู้ใช้ เมื่อระบุเป็นตัวแปรบของคําขอ ตัวระบุนี้อาจเป็นค่าใดค่าหนึ่งต่อไปนี้
- ตัวระบุตัวเลขของผู้ใช้
- อีเมลของผู้ใช้
- สตริงตามตัวอักษร
"me" ที่ระบุผู้ใช้ที่ส่งคำขอ
|
profile |
object (UserProfile )
ข้อมูลผู้ใช้ส่วนกลางสำหรับครู อ่านอย่างเดียว
|
เมธอด |
|
สร้างครูของหลักสูตร |
|
นำครูผู้สอนที่ระบุออกจากหลักสูตรที่ระบุ |
|
แสดงผลครูของหลักสูตร |
|
แสดงรายการครูของหลักสูตรนี้ที่ผู้ขอได้รับอนุญาตให้ดู |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# REST Resource: courses.teachers\n\n- [Resource: Teacher](#Teacher)\n - [JSON representation](#Teacher.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Teacher\n-----------------\n\nTeacher of a course.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"courseId\": string, \"userId\": string, \"profile\": { object (/workspace/classroom/reference/rest/v1/userProfiles#UserProfile) } } ``` |\n\n| Fields ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `courseId` | `string` Identifier of the course. Read-only. |\n| `userId` | `string` Identifier of the user. When specified as a parameter of a request, this identifier can be one of the following: - the numeric identifier for the user - the email address of the user - the string literal `\"me\"`, indicating the requesting user |\n| `profile` | `object (`[UserProfile](/workspace/classroom/reference/rest/v1/userProfiles#UserProfile)`)` Global user information for the teacher. Read-only. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------|------------------------------------------------------------------------------------|\n| ### [create](/workspace/classroom/reference/rest/v1/courses.teachers/create) | Creates a teacher of a course. |\n| ### [delete](/workspace/classroom/reference/rest/v1/courses.teachers/delete) | Removes the specified teacher from the specified course. |\n| ### [get](/workspace/classroom/reference/rest/v1/courses.teachers/get) | Returns a teacher of a course. |\n| ### [list](/workspace/classroom/reference/rest/v1/courses.teachers/list) | Returns a list of teachers of this course that the requester is permitted to view. |"]]