Sponsors
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
注意:此资源自 2020 年 3 月 31 日起已弃用。我们已将其替换为
member
资源。您可以在 YouTube Data API 文档中查看有关该资源的信息。
自弃用以来,2020 年 9 月 30 日当天或之后将不再支持
sponsors.list
方法。API 客户端应更新对
sponsors.list
方法的调用,以改用
members.list
方法。
sponsor
资源表示 YouTube 频道的频道会员(以前称为“赞助商”)。
会员可定期向创作者提供资金支持、获享特殊福利。例如,如果创作者启用了聊天的会员专享模式,会员就可以聊天。
方法
该 API 支持 sponsors
资源的以下方法:
- list
- 列出频道的赞助商。API 请求必须由频道所有者授权。
立即试用。
属性
下表定义了此资源中显示的属性:
属性 |
kind |
string
标识 API 资源类型。值为 youtube#sponsor 。 |
etag |
etag
此资源的 Etag。 |
id |
string
YouTube 为唯一标识赞助者而分配的 ID。 |
snippet |
object
snippet 对象包含赞助者的详细信息。 |
snippet.channelId |
string
此 ID 用于标识正在赞助的频道。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-02-22。
[null,null,["最后更新时间 (UTC):2023-02-22。"],[[["\u003cp\u003eThis \u003ccode\u003esponsors\u003c/code\u003e resource is deprecated as of March 31, 2020, and has been replaced by the \u003ccode\u003emember\u003c/code\u003e resource, with the \u003ccode\u003esponsors.list\u003c/code\u003e method no longer supported after September 30, 2020.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003esponsor\u003c/code\u003e resource represents a YouTube channel member who provides recurring monetary support and receives special benefits.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esponsors.list\u003c/code\u003e method allowed API clients to list the sponsors for a channel, but now they should use \u003ccode\u003emembers.list\u003c/code\u003e instead.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esponsors\u003c/code\u003e resource contains properties such as \u003ccode\u003ekind\u003c/code\u003e, \u003ccode\u003eetag\u003c/code\u003e, \u003ccode\u003eid\u003c/code\u003e, and \u003ccode\u003esnippet\u003c/code\u003e which includes detailed information like the channel ID, display name, profile image URL, and the date they became a sponsor.\u003c/p\u003e\n"]]],["The `sponsors` resource, representing channel members, was deprecated on March 31, 2020, and replaced by the `members` resource. The `sponsors.list` method will be unsupported after September 30, 2020, requiring API clients to use `members.list` instead. A sponsor provides recurring support and receives benefits. The resource contains properties such as `kind`, `etag`, `id`, and `snippet`. `snippet` include the channel's ID, details about the sponsor, and when the user became a sponsor.\n"],null,["# Sponsors\n\nNote: This resource is deprecated as of March 31, 2020. It has been replaced by the [member](/youtube/v3/docs/members) resource. You can find information about that resource in the YouTube Data API documentation. \n\nAs part of this deprecation, the `sponsors.list` method will no longer be supported on or after September 30, 2020. API clients should update calls to the `sponsors.list` method to use the [members.list](/youtube/v3/docs/members/list) method instead.\n\nA **sponsor** resource represents a channel member (formerly known as a \"sponsor\") for a YouTube channel.\nA member provides recurring monetary support to a creator and receives\nspecial benefits. For example, members are able to chat when the creator turns on members-only mode for a chat.\n\nMethods\n-------\n\nThe API supports the following methods for `sponsors` resources:\n\n[list](/youtube/v3/live/docs/sponsors/list)\n: Lists sponsors for a channel. The API request must be authorized by the channel owner.\n [Try it now](/youtube/v3/live/docs/sponsors/list#try-it).\n\nResource representation\n-----------------------\n\nThe following JSON structure shows the format of a `sponsors` resource: \n\n```text\n{\n \"kind\": \"youtube#sponsor\",\n \"etag\": etag,\n \"id\": string,\n \"snippet\": {\n \"channelId\": string,\n \"sponsorDetails\": {\n \"channelId\": string,\n \"channelUrl\": string,\n \"displayName\": string,\n \"profileImageUrl\": string\n },\n \"sponsorSince\": datetime\n }\n}\n```\n\n### Properties\n\nThe following table defines the properties that appear in this resource:\n\n| Properties ||\n|------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Identifies the API resource's type. The value will be `youtube#sponsor`. |\n| `etag` | `etag` The Etag of this resource. |\n| `id` | `string` The ID that YouTube assigns to uniquely identify the sponsor. |\n| `snippet` | `object` The `snippet` object contains details about the sponsor. |\n| snippet.`channelId` | `string` This ID identifies the channel being sponsored. |\n| snippet.`sponsorDetails` | `object` This object contains details about the sponsor. |\n| snippet.sponsorDetails.`channelId` | `string` The YouTube channel ID. |\n| snippet.sponsorDetails.`channelUrl` | `string` The channel's URL. |\n| snippet.sponsorDetails.`displayName` | `string` The channel's display name. |\n| snippet.sponsorDetails.`profileImageUrl` | `string` The channels's avatar URL. |\n| snippet.`sponsorSince` | `datetime` The date and time when the user became a sponsor. The value is specified in [ISO 8601](//www.w3.org/TR/NOTE-datetime) (`YYYY-MM-DDThh:mm:ss.sZ`) format. |"]]