GroupItems
    
    
      
    
    
      
      使用集合让一切井井有条
    
    
      
      根据您的偏好保存内容并对其进行分类。
    
  
    
  
      
    
  
  
  
  
  
  
    
    
    
    
    
资源表示法
以下 JSON 结构显示了 groupItems 资源的格式:
{
  "kind": "youtube#groupItem",
  "etag": etag,
  "id": string,
  "groupId": string,
  "resource": {
    "kind": string,
    "id": string
  }
}
属性
下表定义了此资源中显示的属性:
  
    
      | 属性 | 
  
  
      
      | kind | string标识 API 资源的类型。该值将为
 youtube#groupItem。 | 
    
      | etag | etag此资源的 Etag。
 | 
    
      | id | string此 ID 用于由 YouTube 唯一标识群组中包含的
 channel、video、playlist或asset资源。请注意,此 ID 特指将该资源纳入特定资源组中,它不同于对资源本身进行唯一标识的频道 ID、视频 ID、播放列表 ID 或资产 ID。resource.id属性的值用于指定唯一的频道、视频、播放列表或资产 ID。 | 
    
      | groupId | stringYouTube 用来标识包含相应项的组的唯一 ID。
 | 
    
      | resource | object
 resource对象包含用于标识要添加到组的项的信息。 | 
    
      | resource.kind | string用于标识要添加到组中的资源类型。
 
 此属性的有效值如下:
 
  youtube#channelyoutube#playlistyoutube#videoyoutubePartner#asset | 
    
      | resource.id | stringYouTube 用于对添加到组中的内容进行唯一标识的频道、视频、播放列表或资产 ID。
 | 
  
     
  
  
  
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
  最后更新时间 (UTC):2025-08-21。
  
  
  
    
      [[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-21。"],[],["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"]]