GroupItems
เมธอด
API รองรับวิธีการต่อไปนี้สําหรับทรัพยากร groupItems
- list
- แสดงผลคอลเล็กชันรายการกลุ่มที่ตรงกับพารามิเตอร์คําขอ API
ลองใช้เลย
- แทรก
- สร้างรายการกลุ่ม
ลองใช้เลย
- ลบ
- นำรายการออกจากกลุ่ม
ลองใช้เลย
การนําเสนอทรัพยากร
โครงสร้าง JSON ด้านล่างแสดงรูปแบบของทรัพยากร groupItems
{
"kind": "youtube#groupItem",
"etag": etag,
"id": string,
"groupId": string,
"resource": {
"kind": string,
"id": string
}
}
พร็อพเพอร์ตี้
ตารางต่อไปนี้จะกำหนดพร็อพเพอร์ตี้ที่ปรากฏในทรัพยากรนี้
พร็อพเพอร์ตี้ |
kind |
string
ระบุประเภทของทรัพยากร API ค่าจะเป็น youtube#groupItem |
etag |
etag
แท็กของทรัพยากรนี้ |
id |
string
รหัสที่ YouTube ใช้ระบุทรัพยากร channel , video , playlist หรือ asset ที่รวมอยู่ในกลุ่ม โปรดทราบว่ารหัสนี้หมายถึงการรวมทรัพยากรนั้นไว้ในกลุ่มหนึ่งๆ โดยเฉพาะ และแตกต่างจากรหัสช่อง รหัสวิดีโอ รหัสเพลย์ลิสต์ หรือรหัสเนื้อหาที่ระบุทรัพยากรนั้นๆ ได้อย่างไม่ซ้ำกัน ค่าของพร็อพเพอร์ตี้ resource.id จะระบุรหัสช่อง วิดีโอ เพลย์ลิสต์ หรือเนื้อหาที่ไม่ซ้ำกัน |
groupId |
string
รหัสที่ YouTube ใช้เพื่อระบุกลุ่มที่มีสินค้านั้นๆ โดยเฉพาะ |
resource |
object
ออบเจ็กต์ resource มีข้อมูลที่ระบุรายการที่เพิ่มลงในกลุ่ม |
resource.kind |
string
ระบุประเภทของทรัพยากรที่จะเพิ่มไปยังกลุ่ม
ค่าที่ถูกต้องสำหรับพร็อพเพอร์ตี้นี้ ได้แก่
youtube#channel
youtube#playlist
youtube#video
youtubePartner#asset
|
resource.id |
string
รหัสช่อง วิดีโอ เพลย์ลิสต์ หรือเนื้อหาที่ YouTube ใช้เพื่อระบุรายการที่เพิ่มลงในกลุ่มโดยเฉพาะ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-09 UTC
[null,null,["อัปเดตล่าสุด 2024-11-09 UTC"],[[["The YouTube Analytics API provides methods to manage group items, enabling you to list, insert, and delete them within groups."],["Group items associate a YouTube resource like a channel, video, or playlist with a specific group for analysis."],["Each group item is uniquely identified by an ID and contains information about the resource it links to and the group it belongs to."],["The API uses a JSON structure to represent group items, including properties like `kind`, `etag`, `id`, `groupId`, and `resource`."],["The `resource` property within a group item further specifies the type and unique ID of the linked YouTube resource (channel, video, playlist, or asset)."]]],["The API for `groupItems` resources supports listing, inserting, and deleting items. `groupItems` contain properties like `kind`, `etag`, `id`, and `groupId`. The `resource` object within a `groupItem` identifies the item, specifying its `kind` (channel, playlist, video, or asset) and its unique `id`. The `id` in groupItem identifies a specific resource within a group and is different than the resources' ID, while the `groupId` is the identifier for the group containing the item.\n"]]