FanFundingEvents
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หมายเหตุ: นี่คือประกาศการเลิกใช้งาน
เราจะเลิกใช้งานฟีเจอร์การให้เงินสนับสนุนของแฟนๆ และ API ของการให้เงินสนับสนุนของแฟนๆ จะปิดลงในวันที่ 28 กุมภาพันธ์ 2017 ประกาศเกี่ยวกับการเลิกใช้งานนี้สอดคล้องกับการเปิดตัวฟีเจอร์
Super Chat ใหม่ของ 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 กําหนดเพื่อระบุกิจกรรมการให้เงินสนับสนุนของแฟนๆ ที่ไม่ซ้ํากัน |
snippet |
object
ออบเจ็กต์ snippet มีข้อมูลเกี่ยวกับเหตุการณ์การให้เงินสนับสนุนของแฟนๆ |
snippet.channelId |
string
รหัสของช่องที่ได้รับเงินสนับสนุน |
snippet.supporterDetails |
object
รายละเอียดเกี่ยวกับช่องของผู้สนับสนุน ออบเจ็กต์นี้จะปรากฏต่อเมื่อผู้สนับสนุนเผยแพร่กิจกรรมการระดมทุนต่อสาธารณะเท่านั้น |
snippet.supporterDetails.channelId |
string
รหัสช่อง YouTube ของผู้สนับสนุน |
snippet.supporterDetails.channelUrl |
string
URL ช่องของผู้สนับสนุน |
snippet.supporterDetails.displayName |
string
ชื่อที่แสดงของช่องของผู้สนับสนุน |
snippet.supporterDetails.profileImageUrl |
string
URL รูปโปรไฟล์สําหรับช่องของผู้สนับสนุน |
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 Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-02-22 UTC
[null,null,["อัปเดตล่าสุด 2023-02-22 UTC"],[[["\u003cp\u003eThe 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003efanFundingEvent\u003c/code\u003e resource represents a one-time, voluntary monetary payment from a user to a YouTube channel as part of the now deprecated Fan Funding feature.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003efanFundingEvents\u003c/code\u003e API supports a \u003ccode\u003elist\u003c/code\u003e method for retrieving fan funding events for a channel, which requires authorization from the channel owner.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003efanFundingEvent\u003c/code\u003e 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esnippet\u003c/code\u003e object within the \u003ccode\u003efanFundingEvent\u003c/code\u003e 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.\u003c/p\u003e\n"]]],["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"],null,["# FanFundingEvents\n\n**Note:** This is a deprecation announcement. \n\nThe Fan Funding feature has been deprecated, and the Fan Funding API will be turned off on February 28, 2017. This deprecation announcement coincides with the release of YouTube's new [Super Chat](https://youtube.googleblog.com/2017/01/can-we-chat-hello-super-chat.html) feature.\nA **fanFundingEvent** resource represents a Fan Funding event on a YouTube channel. Fan Funding provides a way to monetarily support YouTube creators. A Fan Funding event occurs when a user makes a one-time, voluntary payment to a channel. See the [YouTube Help Center](https://support.google.com/youtube/answer/6052077) to learn more about Fan Funding.\n\nMethods\n-------\n\nThe API supports the following methods for `fanFundingEvents` resources:\n\n[list](/youtube/v3/live/docs/fanFundingEvents/list)\n: Lists fan funding events for a channel. The API request must be authorized by the channel owner.\n [Try it now](/youtube/v3/live/docs/fanFundingEvents/list#try-it).\n\nResource representation\n-----------------------\n\nThe following JSON structure shows the format of a `fanFundingEvents` resource: \n\n```text\n{\n \"kind\": \"youtube#fanFundingEvent\",\n \"etag\": etag,\n \"id\": string,\n \"snippet\": {\n \"channelId\": string,\n \"supporterDetails\": {\n \"channelId\": string,\n \"channelUrl\": string,\n \"displayName\": string,\n \"profileImageUrl\": string\n },\n \"commentText\": string,\n \"createdAt\": datetime,\n \"amountMicros\": unsigned long,\n \"currency\": string,\n \"displayString\": string\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#fanFundingEvent`. |\n| `etag` | `etag` The Etag of this resource. |\n| `id` | `string` The ID that YouTube assigns to uniquely identify the fan funding event. |\n| `snippet` | `object` The `snippet` object contains information about the fan funding event. |\n| snippet.`channelId` | `string` The ID of the channel that received the funding. |\n| snippet.`supporterDetails` | `object` Details about the supporter's channel. This object is only present if the supporter made the funding event public. |\n| snippet.supporterDetails.`channelId` | `string` The supporter's YouTube channel ID. |\n| snippet.supporterDetails.`channelUrl` | `string` The URL of the supporter's channel. |\n| snippet.supporterDetails.`displayName` | `string` The display name of the supporter's channel. |\n| snippet.supporterDetails.`profileImageUrl` | `string` The avatar URL for the supporter's channel. |\n| snippet.`commentText` | `string` The text contents of the supporter's comment. |\n| snippet.`createdAt` | `datetime` The date and time when the funding occurred. The value is specified in [ISO 8601](//www.w3.org/TR/NOTE-datetime) (`YYYY-MM-DDThh:mm:ss.sZ`) format. |\n| snippet.`amountMicros` | `unsigned long` The amount of money contributed in the funding event. The value is in micros of the funding currency. For example, if the funder contributed one dollar ($1), the `snippet.amountMicros` property value is `1000000`. |\n| snippet.`currency` | `string` The currency associated with the funding amount. The value is an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. |\n| snippet.`displayString` | `string` A string, intended for display, that shows the fund amount and currency. If the `fanFundingEvents.list` request specified an application language with the [hl](/youtube/v3/live/docs/fanFundingEvents/list#hl) parameter, the display string is localized for display in that language. For example, in English, currency would be displayed as `$1.50`, but in French, it would be displayed as `1,50$`. |"]]