Blink

Blink

    Content management container

    A CSS .class selector that you can use in your application to allow Blink do the content management for your resources (i.e. articles).

    Usage

       <div class="blink-content">
            <!-- Your web application resource content (i.e. an article) to be managed by Blink --> 
       </div>
    
       <!-- OR -->
       
       <div id="blink-content">
            <!-- Your web application resource content (i.e. an article) to be managed by Blink --> 
       </div>
    

    Live example

    Here is a fully working example showcasing a static HTML web page integrating Blink and enabling content management for an article.

    Selection attributes

    We recommend using class as selection attribute. However, Blink SDK supports both id and class selection attributes.

    Attributes

    parametertyperequireddescription
    resource-idstring☑Article unique identifier. If the user payed for it in the past, the article content will be shown
    resource-priceinteger☑Price amount specified in currency sub-units (1 USD = 100 )
    paywall-expirationinteger☑Epoch milliseconds timestamp specifying when the article will become free
    resource-titlestring☐Article title. If not provided, defaults to the current page title
    resource-urlstring☐Article URL. If not provided, defaults to the current page URL

    Notes

    • All the attributes can be passed as data attributes, by using "data-blink-" prefix
    • When Blink detects a content management container, if its expiration date is in the future, the article content will be hidden and a Read/Subscribe paywall will be shown instead
    • If the user is already subscribed or already paid for the article, the article full content will be shown
    • If an article becomes free while reading, the paywall will only disappear after the next page refresh
    • Usage
    • Live example
    • Selection attributes
    • Attributes
    • Notes
    Blink
    Docs
    Getting StartedPublic API
    Integration
    Donation
    Blink
    Copyright © 2021 Blink Ledger Systems Inc. All rights reserved