FanFundingEvents
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Nota: Este es un anuncio de baja.
La función Financiación de fans dejó de estar disponible y la API de Financiación de fans dejará de estar disponible el 28 de febrero de 2017. Este anuncio de baja coincide con el lanzamiento de la nueva función de YouTube,
Super Chat.
Un recurso fanFundingEvent
representa un evento de financiación de fans en un canal de YouTube. La financiación de fans es una manera monetaria de apoyar a los creadores de YouTube. Los eventos de financiación de fans ocurren cuando un usuario realiza un pago único y voluntario a un canal. Consulta el Centro de ayuda de YouTube para obtener más información sobre la financiación de fans.
Métodos
La API admite los siguientes métodos para los recursos de fanFundingEvents
:
- list
- Enumera los eventos de financiación de fans de un canal. El propietario del canal debe autorizar la solicitud a la API.
Pruébala ahora.
Representación de recursos
La siguiente estructura JSON muestra el formato de un recurso 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
}
}
Propiedades
La siguiente tabla define las propiedades que aparecen en este recurso:
Propiedades |
kind |
string Identifica el tipo de recurso de API. El valor será youtube#fanFundingEvent . |
etag |
etag
Es la Etag de este recurso. |
id |
string
ID que asigna YouTube para identificar de forma exclusiva el evento de financiación de fans. |
snippet |
object
El objeto snippet contiene información sobre el evento de financiación de fans. |
snippet.channelId |
string
ID del canal que recibió la financiación |
snippet.supporterDetails |
object
Detalles sobre el canal del colaborador. Este objeto solo está presente si el defensor hizo público el evento de financiación. |
snippet.supporterDetails.channelId |
string
El ID del canal de YouTube del colaborador. |
snippet.supporterDetails.channelUrl |
string
Es la URL del canal del colaborador. |
snippet.supporterDetails.displayName |
string
Es el nombre visible del canal del colaborador. |
snippet.supporterDetails.profileImageUrl |
string
Es la URL del avatar del canal del colaborador. |
snippet.createdAt |
datetime
Fecha y hora en que se produjo la financiación. El valor se especifica en el formato ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ ). |
snippet.amountMicros |
unsigned long
La cantidad de dinero que se contribuyó en el evento de financiación. El valor se expresa en micros de la moneda de financiación. Por ejemplo, si la persona que donó dinero contribuyó a un dólar (USD 1), el valor de la propiedad snippet.amountMicros es 1000000 . |
snippet.currency |
string
Es la moneda asociada con el importe de financiación. El valor debe ser un código de moneda ISO 4217. |
snippet.displayString |
string
Es una string diseñada para mostrarse que muestra el importe del fondo y la moneda. Si la solicitud fanFundingEvents.list especificó un idioma de aplicación con el parámetro hl , la string de visualización se localiza para mostrarla en ese idioma. Por ejemplo, en inglés, la moneda se mostraría como $1.50 , pero en francés se mostraría como 1,50$ . |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2023-02-22 (UTC)
[null,null,["Última actualización: 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$`. |"]]