PlaylistImages: update
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
修改播放列表图片。
配额影响:调用此方法将产生 50 个单位的配额费用。
请求
HTTP 请求
PUT https://www.googleapis.com/youtube/v3/playlistImages
授权
此请求需要获得以下至少一个范围的授权(详细了解身份验证和授权)。
范围 |
https://www.googleapis.com/auth/youtubepartner |
https://www.googleapis.com/auth/youtube |
https://www.googleapis.com/auth/youtube.force-ssl |
参数
下表列出了此查询支持的参数。列出的所有参数均为查询参数。
参数 |
必需参数 |
part |
string
part 参数指定了一个
包含一个或多个 playlistImage 资源的逗号分隔列表
API 响应将包含的属性。
如果参数
表示包含子属性的属性,子属性
会包含在响应中。
|
可选参数 |
onBehalfOfContentOwner |
string
注意:onBehalfOfContentOwner 参数仅适用于 YouTube 内容合作伙伴,且只能用于获得适当授权的请求。
此参数适用于拥有和管理许多不同 YouTube 频道的 YouTube 内容合作伙伴。它让与内容所有者相关联的用户只需进行身份验证一次,即可访问和管理内容所有者的所有视频和频道数据,而无需为每个频道提供身份验证凭据。
当该参数存在时,其值用于标识内容所有者,请求的授权凭据则用于识别有权代表内容所有者执行操作的 YouTube 用户。在 YouTube 创作者工作室设置中,用户进行身份验证时所用的账号必须与指定的内容所有者相关联。 |
请求正文
在请求正文中提供 playlistImages 资源。
对于该资源:
-
您必须为以下属性指定一个值:
snippet.playlistId
snippet.type
-
您可以为以下属性设置值:
snippet.width
snippet.height
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-16。
[[["易于理解","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):2024-08-16。"],[[["This method allows modification of a playlist image via the YouTube API."],["Utilizing this method incurs a quota cost of 50 units per call."],["Authorization is required, with scopes such as `https://www.googleapis.com/auth/youtubepartner`, `https://www.googleapis.com/auth/youtube`, or `https://www.googleapis.com/auth/youtube.force-ssl` being necessary."],["The `part` parameter is required, while `onBehalfOfContentOwner` is an optional parameter intended for YouTube content partners."],["The request body must contain a `playlistImages` resource with specified values for `snippet.playlistId` and `snippet.type`, and can optionally include `snippet.width` and `snippet.height`."]]],[]]