FanFundingEvents
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
注意:這是淘汰公告內容。
粉絲贊助功能已淘汰,2017 年 2 月 28 日 Fan Fund API 也將停用。這項淘汰公告與 YouTube 新推出的
超級留言功能相輔相成。
fanFundingEvent
資源代表 YouTube 頻道上的粉絲贊助活動。粉絲贊助功能可以為 YouTube 創作者提供營利支援。使用者針對頻道進行一次性自費付款時,就會發生支持者贊助事件。如要進一步瞭解粉絲贊助,請造訪 YouTube 說明中心。
方法
這個 API 支援下列 fanFundingEvents
資源的方法:
- list
- 列出頻道的支持者贊助活動。API 要求必須獲得頻道擁有者的授權。立即試用。
資源表示法
以下 JSON 結構顯示了 fanFundingEvents
資源的格式:
{
"kind": "youtube#fanFundingEvent",
"etag": etag,
"id": string,
"snippet": {
"channelId": string,
"supporterDetails": {
"channelId": string,
"channelUrl": string,
"displayName": string,
"profileImageUrl": string
},
"commentText": string,
"createdAt": datetime,
"amountMicros": unsigned long,
"currency": string,
"displayString": string
}
}
屬性
下表定義此資源中顯示的屬性:
屬性 |
kind |
string 識別 API 資源類型。這個值會是 youtube#fanFundingEvent 。 |
etag |
etag
這項資源的 Etag。 |
id |
string
YouTube 指派的 ID 用來辨識支持者贊助事件。 |
snippet |
object
snippet 物件包含支持者贊助事件的相關資訊。 |
snippet.channelId |
string
獲得資金的頻道 ID。 |
snippet.supporterDetails |
object
支持者頻道的詳細資料。這個物件只會在支持者公開贊助贊助事件時顯示。 |
snippet.supporterDetails.channelId |
string
支持者的 YouTube 頻道 ID。 |
snippet.supporterDetails.channelUrl |
string
支持者頻道的網址。 |
snippet.supporterDetails.displayName |
string
支持者頻道的顯示名稱。 |
snippet.supporterDetails.profileImageUrl |
string
支持者頻道的顯示圖片網址。 |
snippet.createdAt |
datetime
資金存入的日期和時間。這個值以 ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ ) 格式指定。 |
snippet.amountMicros |
unsigned long
募款活動提供的金額。此值的單位為贊助貨幣的百萬分之一。舉例來說,如果資金來源為 $1 美元 ($1),則 snippet.amountMicros 屬性值為 1000000 。 |
snippet.currency |
string
與付款金額相關的幣別。這個值會以 ISO 4217 貨幣代碼表示。 |
snippet.displayString |
string
用來顯示基金金額和貨幣的字串。如果 fanFundingEvents.list 要求以 hl 參數指定應用程式語言,顯示字串就會以該語言顯示。例如,在英文中,貨幣會顯示為 $1.50 ,但在法文中則會顯示為 1,50$ 。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-02-22 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2023-02-22 (世界標準時間)。"],[[["The Fan Funding feature has been deprecated, and its API will be turned off on February 28, 2017, in conjunction with the launch of YouTube's Super Chat feature."],["The `fanFundingEvent` resource represents a one-time, voluntary monetary payment from a user to a YouTube channel as part of the now deprecated Fan Funding feature."],["The `fanFundingEvents` API supports a `list` method for retrieving fan funding events for a channel, which requires authorization from the channel owner."],["A `fanFundingEvent` resource includes details such as the supporter's information (if made public), the amount funded, the currency used, and a display string of the funding amount."],["The `snippet` object within the `fanFundingEvent` resource contains information about the funding event, including the channel that received the funding, supporter details, comment text, and the date, time, and amount of the funding."]]],["The Fan Funding feature is deprecated, with its API shutting down on February 28, 2017. The `fanFundingEvent` resource represents a voluntary, one-time payment to a YouTube channel. The API allows listing fan funding events for a channel via the `list` method, which requires channel owner authorization. Each event's data includes details like the supporter's channel ID, comment, and the funding amount, currency, and the display string. YouTube has released Super Chat as a replacement.\n"]]