Ce contenu n’est pas encore disponible dans votre langue.
Web Monetization links can be used with content syndication formats RSS 2.0, Atom XML, and JSON Feed. Feed readers and podcasting apps can expose a piece of content’s wallet address to a Web Monetization client, such as the Web Monetization browser extension or embedded SDK.
RSS 2.0
Web Monetization wallet addresses are represented in RSS 2.0 using the <atom:link> element. The rel attribute value must be monetization. The href attribute must be a URL of an Open Payments-enabled wallet address.
Monetization <atom:link> elements may be children of <channel> and <item> elements.
Monetization <atom:link> elements added as children of the <channel> element apply to the channel itself and its items.
An <item> element inherits the channel’s monetization links unless the <item> element has monetization <atom:link> child elements of its own.
Podcast example
Atom
Web Monetization wallet addresses are represented in Atom Syndication Format using the <link> element with the rel="monetization" attribute. The rel value must be monetization. The href value must be a URL of an Open Payments-enabled wallet address.
Monetization <link> elements may be added as children of <feed> and <entry> elements.
Monetization <link> elements added as children of the <feed> element apply to the feed itself and its entries.
An <entry> element inherits the feeds’s monetization links unless the <entry> element has monetization <link> child elements of its own.
Per the JSON Feed 1.1 specification, extensions must have a property name that begins with an underscore and be assigned an object.
_monetization extension object
about (optional, string) is a link to this page explaining the extension object’s purpose. It should appear in the first use of the extension object only.
links (required, array of strings) specifies one or more Open Payments-enabled wallet addresses.
The _monetization extension may be added to the top-level document and to individual items in the items array.
An item in the items array inherits the top-level _monetization values unless the item contains a _monetization extension object of its own.