FanFundingEvents
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
注意:这是关于弃用的公告。
粉丝资助功能已弃用,我们将于 2017 年 2 月 28 日停用 Fan Funding 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$ 。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):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"]],["最后更新时间 (UTC):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"]]