Sponsors
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Lưu ý: Tài nguyên này đã ngừng hoạt động kể từ ngày 31 tháng 3 năm 2020. Tài nguyên này đã được thay thế bằng
tài nguyên
member
. Bạn có thể tìm thấy thông tin về tài nguyên đó trong tài liệu về API Dữ liệu YouTube.
Trong quá trình ngừng sử dụng này, phương thức
sponsors.list
sẽ không còn được hỗ trợ
kể từ ngày 30 tháng 9 năm 2020. Ứng dụng API nên cập nhật các lệnh gọi đến phương thức
sponsors.list
để sử dụng phương thức
members.list
.
Tài nguyên sponsor
đại diện cho hội viên của kênh (trước đây gọi là "tài trợ") cho một kênh YouTube.
Một thành viên hỗ trợ định kỳ cho nhà sáng tạo và nhận
các lợi ích đặc biệt. Ví dụ: Hội viên có thể trò chuyện khi nhà sáng tạo bật chế độ chỉ dành cho hội viên để trò chuyện.
Phương pháp
API hỗ trợ các phương thức sau cho tài nguyên sponsors
:
- list
- Liệt kê các nhà tài trợ cho một kênh. Yêu cầu API phải được chủ sở hữu kênh cho phép.
Thử ngay.
Thuộc tính
Bảng sau đây xác định các thuộc tính xuất hiện trong tài nguyên này:
Thuộc tính |
kind |
string
Xác định loại tài nguyên API. Giá trị sẽ là youtube#sponsor . |
etag |
etag
Etag của tài nguyên này. |
id |
string
Mã nhận dạng mà YouTube gán để nhận dạng duy nhất nhà tài trợ. |
snippet |
object
Đối tượng snippet chứa thông tin chi tiết về nhà tài trợ. |
snippet.channelId |
string
Mã nhận dạng này xác định kênh đang được tài trợ. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2023-02-22 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2023-02-22 UTC."],[[["\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. |"]]