ภาพรวมของ Groups Settings API
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Groups Settings API จะอัปเดตและเรียกดูข้อมูลการตั้งค่าสำหรับ Google Group ที่มีอยู่ คุณใช้ API ทำสิ่งต่อไปนี้ได้
- แก้ไขการตั้งค่าของกลุ่มสำหรับการเข้าถึงกลุ่มภายในและภายนอก
- แก้ไขการแจ้งเตือนของกลุ่ม
- กำหนดค่าการเก็บถาวรของการสนทนาและการกลั่นกรองข้อความ
- ปรับแต่งกลุ่มผู้ใช้ของบัญชี
ดูวิธีอื่นๆ ในการใช้ Google Groups หรือจัดการกลุ่มประเภทอื่นๆ ได้ที่เอกสารประกอบของ Cloud Identity
โมเดลข้อมูล Groups Settings API
Groups Settings API ทำงานกับทรัพยากร Groups
ซึ่งแสดงวิธีที่ผู้ใช้ภายในบัญชีสื่อสารและทำงานร่วมกันกับกลุ่มคนอื่นๆ แต่ละกลุ่มจะระบุด้วยอีเมลของกลุ่ม
รูปแบบข้อมูล API อิงตามคอลเล็กชัน Groups
ของกลุ่มบัญชี แต่ละกลุ่มมีการตั้งค่าการกําหนดค่าชุดเดียว
การดำเนินการของ Groups Settings API
คุณสามารถเรียกใช้เมธอดการตั้งค่ากลุ่มใน Groups Settings API ตามที่อธิบายไว้ในตารางต่อไปนี้
การดำเนินการ |
คำอธิบาย |
การแมป REST HTTP |
get |
รับการตั้งค่าของกลุ่มสําหรับบัญชีของลูกค้า การดำเนินการ GET ทั้งหมดต้องได้รับอนุญาตจากผู้ใช้ที่ตรวจสอบสิทธิ์แล้ว |
GET ใน URI ของกลุ่ม |
update |
อัปเดตการตั้งค่าของกลุ่มสําหรับบัญชีของลูกค้า การดำเนินการอัปเดตทั้งหมดต้องได้รับสิทธิ์จากผู้ใช้ที่ตรวจสอบสิทธิ์แล้ว |
PUT ใน URI ของกลุ่ม |
โดยค่าเริ่มต้น Groups Settings API จะแสดงผลข้อมูลในรูปแบบ JSON รูปแบบการแสดงข้อมูล Atom เป็นรูปแบบข้อมูลสำรอง ทั้งรูปแบบข้อมูล JSON และ Atom รองรับความสามารถในการอ่านและเขียนอย่างเต็มรูปแบบ
JSON เป็นรูปแบบอินเทอร์เน็ตทั่วไปที่มีวิธีการแสดงโครงสร้างข้อมูลที่กําหนดเอง ตามข้อมูลของ json.org ระบุว่า JSON เป็นรูปแบบข้อความที่ไม่ขึ้นอยู่กับภาษาใดๆ ทั้งสิ้น แต่ใช้รูปแบบที่คุ้นเคยกับโปรแกรมเมอร์ที่ใช้ภาษาตระกูล C ซึ่งรวมถึง C, C++, C#, Java, JavaScript, Perl และ Python
หากต้องการเปลี่ยนรูปแบบข้อมูลของ API ให้ใส่สตริงการค้นหา alt
ใน URI ของคำขอ เช่น
JSON
GET https://www.googleapis.com/groups/v1/groups/salesgroup@example.com?alt=json
Atom
GET https://www.googleapis.com/groups/v1/groups/salesgroup@example.com?alt=atom
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-29 UTC
[null,null,["อัปเดตล่าสุด 2025-08-29 UTC"],[],[],null,["# Groups Settings API overview\n\nThe Groups Settings API updates and retrieves settings for an existing\n[Google Group](https://support.google.com/a/topic/25838?&ref_topic=9197). Through\nthe API, you can do the following:\n\n- Modify a group's settings for internal and external group access.\n- Edit the group's notifications.\n- Configure discussion archiving and message moderation.\n- Customize your account's user groups.\n\nFor more ways to work with Google Groups, or manage other types of groups, see the\n[Cloud Identity documentation](https://cloud.google.com/identity/docs).\n\n### Groups Settings API data model\n\nThe Groups Settings API operates on a `Groups` resource which represents how users\nwithin an account communicate and collaborate with groups of other people. Each group is identified\nby the group's email address.\n\nThe API data model is based on the `Groups` collection of the account's groups. Each\ngroup has a unique set of configuration settings.\n\n### Groups Settings API operations\n\nYou can call group settings methods in the Groups Settings API, as described in the following\ntable:\n\n| Operation | Description | REST HTTP mappings |\n|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------|\n| `get` | Gets a group's settings for a customer's account. All get operations must be authorized by an [authenticated](/workspace/guides/auth-overview) user. | `GET` on a group URI. |\n| `update` | Updates a group's settings for a customer's account. All update operations must be authorized by an [authenticated](/workspace/guides/auth-overview) user. | `PUT` on a group URI. |\n\nJSON and Atom data formats\n--------------------------\n\nBy default, the Groups Settings API returns data in JSON format. The Atom notation is an alternate\ndata format. Both the JSON and Atom data formats support full read-write capabilities.\n\nJSON is a common\ninternet format that provides a method of representing arbitrary data structures. According to\n[json.org](http://www.json.org), JSON is a text format\nthat is completely language-independent but uses conventions that are familiar to programmers of\nthe C-family of languages, including C, C++, C#, Java, JavaScript, Perl, and Python.\n\n\u003cbr /\u003e\n\nTo change the API's data format, include the `alt` query string in your request's\nURI---for example:\n\n### JSON\n\n```\nGET https://www.googleapis.com/groups/v1/groups/salesgroup@example.com?alt=json\n```\n\n### Atom\n\n```\nGET https://www.googleapis.com/groups/v1/groups/salesgroup@example.com?alt=atom\n```"]]