ส่วนเสริมของ Google Classroom พร้อมให้บริการแก่นักพัฒนาซอฟต์แวร์แล้ว โปรดดูข้อมูลเพิ่มเติมใน
เอกสารส่วนเสริม
REST Resource: courses.topics
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แหล่งข้อมูล: หัวข้อ
หัวข้อที่ครูสร้างขึ้นสำหรับหลักสูตร
การแสดง JSON |
{
"courseId": string,
"topicId": string,
"name": string,
"updateTime": string
} |
ช่อง |
courseId |
string
ตัวระบุของหลักสูตร อ่านอย่างเดียว
|
topicId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับหัวข้อ อ่านอย่างเดียว
|
name |
string
ชื่อของหัวข้อที่ผู้ใช้สร้างขึ้น ระบบจะตัดช่องว่างที่นำหน้าและต่อท้ายออก หากมี นอกจากนี้ ระบบจะยุบช่องว่างหลายช่องที่อยู่ติดกันให้เหลือเพียงช่องเดียวภายในชื่อ ผลลัพธ์ต้องเป็นสตริงที่ไม่ว่าง ชื่อหัวข้อจะคำนึงถึงตัวพิมพ์เล็กและตัวพิมพ์ใหญ่ และต้องมีความยาวไม่เกิน 100 อักขระ
|
updateTime |
string (Timestamp format)
เวลาที่ระบบอัปเดตหัวข้อครั้งล่าสุด อ่านอย่างเดียว ใช้ RFC 3339 โดยเอาต์พุตที่สร้างขึ้นจะได้รับการแปลงเป็น Z เสมอ และใช้ตัวเลขเศษส่วน 0, 3, 6 หรือ 9 หลัก นอกจากนี้ ระบบยังยอมรับออฟเซ็ตอื่นๆ นอกเหนือจาก "Z" ด้วย ตัวอย่าง: "2014-10-02T15:01:23Z" , "2014-10-02T15:01:23.045123456Z" หรือ "2014-10-02T15:01:23+05:30"
|
เมธอด |
|
สร้างหัวข้อ |
|
ลบหัวข้อ |
|
แสดงผลหัวข้อ |
|
แสดงรายการหัวข้อที่ผู้ส่งคำขอได้รับอนุญาตให้ดู |
|
อัปเดตฟิลด์ของหัวข้ออย่างน้อย 1 ฟิลด์ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-26 UTC
[null,null,["อัปเดตล่าสุด 2025-08-26 UTC"],[],[],null,["- [Resource: Topic](#Topic)\n - [JSON representation](#Topic.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Topic Topic created by a teacher for the course\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------|\n| ``` { \"courseId\": string, \"topicId\": string, \"name\": string, \"updateTime\": string } ``` |\n\n| Fields ||\n|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `courseId` | `string` Identifier of the course. Read-only. |\n| `topicId` | `string` Unique identifier for the topic. Read-only. |\n| `name` | `string` The name of the topic, generated by the user. Leading and trailing whitespaces, if any, are trimmed. Also, multiple consecutive whitespaces are collapsed into one inside the name. The result must be a non-empty string. Topic names are case sensitive, and must be no longer than 100 characters. |\n| `updateTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` The time the topic was last updated by the system. Read-only. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. |\n\n| Methods ||\n|------------------------------------------------------------------------|---------------------------------------------------------------------|\n| [create](/workspace/classroom/reference/rest/v1/courses.topics/create) | Creates a topic. |\n| [delete](/workspace/classroom/reference/rest/v1/courses.topics/delete) | Deletes a topic. |\n| [get](/workspace/classroom/reference/rest/v1/courses.topics/get) | Returns a topic. |\n| [list](/workspace/classroom/reference/rest/v1/courses.topics/list) | Returns the list of topics that the requester is permitted to view. |\n| [patch](/workspace/classroom/reference/rest/v1/courses.topics/patch) | Updates one or more fields of a topic. |"]]