Rumble JavaScript SDK Examples

Playground

Open console tab in developer tools to see output.

Show code of examples

    RumbleSDK.initialize({appID: appID});
    
    var _article = new RumbleSDK.Analytics.Article({
        channelID: 'channelID',
        articleID: 'articleID',
        isPremium: true,
        isBookmarked: false,
        isFromBookmarkedSection: false,
        isBreakingNews: true,
        articleTitle: 'articleTitle',
        authorName: 'authorName',
        channelName: 'channelName',
        URL: 'URL',
        position: 1
    });
    RumbleSDK.Analytics.sendArticleReadEvent(_article, 1000);
    
    RumbleSDK.Analytics.sendVideoStartedEvent('article-id', 'http://video.com/lions123')